Added background colour for better info visibility

This commit is contained in:
EVAST9919
2017-07-09 13:54:38 +03:00
parent bd45e1f1e7
commit 62fc55521c

View File

@ -16,6 +16,7 @@ using osu.Framework.Lists;
using System; using System;
using System.Globalization; using System.Globalization;
using osu.Framework.Allocation; using osu.Framework.Allocation;
using osu.Framework.Extensions.Color4Extensions;
namespace osu.Desktop.VisualTests.Tests namespace osu.Desktop.VisualTests.Tests
{ {
@ -68,14 +69,26 @@ namespace osu.Desktop.VisualTests.Tests
AutoSizeAxes = Axes.Y; AutoSizeAxes = Axes.Y;
Children = new Drawable[] Children = new Drawable[]
{ {
new FillFlowContainer new Container
{ {
Name = @"Info Layer", Name = @"Info Layer",
Anchor = Anchor.BottomLeft, Anchor = Anchor.BottomLeft,
Origin = Anchor.BottomLeft, Origin = Anchor.BottomLeft,
Direction = FillDirection.Vertical,
AutoSizeAxes = Axes.Both, AutoSizeAxes = Axes.Both,
Margin = new MarginPadding { Bottom = flash_layer_heigth, }, Margin = new MarginPadding { Bottom = flash_layer_heigth },
Children = new Drawable[]
{
new Box
{
RelativeSizeAxes = Axes.Both,
Colour = Color4.Black.Opacity(150),
},
new FillFlowContainer
{
Anchor = Anchor.BottomLeft,
Origin = Anchor.BottomLeft,
AutoSizeAxes = Axes.Both,
Direction = FillDirection.Vertical,
Children = new Drawable[] Children = new Drawable[]
{ {
timingPointCount = new InfoString(@"Timing points amount"), timingPointCount = new InfoString(@"Timing points amount"),
@ -85,6 +98,8 @@ namespace osu.Desktop.VisualTests.Tests
beatsPerMinute = new InfoString(@"BPM"), beatsPerMinute = new InfoString(@"BPM"),
adjustedBeatLength = new InfoString(@"Adjusted beat length"), adjustedBeatLength = new InfoString(@"Adjusted beat length"),
} }
}
}
}, },
new Container new Container
{ {
@ -182,7 +197,7 @@ namespace osu.Desktop.VisualTests.Tests
Direction = FillDirection.Horizontal; Direction = FillDirection.Horizontal;
Add(new OsuSpriteText { Text = header + @": ", TextSize = text_size }); Add(new OsuSpriteText { Text = header + @": ", TextSize = text_size });
Add(valueText = new OsuSpriteText() { TextSize = text_size }); Add(valueText = new OsuSpriteText() { TextSize = text_size });
Margin = new MarginPadding { Vertical = margin, }; Margin = new MarginPadding { Vertical = margin, Horizontal = margin };
} }
} }
} }