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,22 +69,36 @@ 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[] Children = new Drawable[]
{ {
timingPointCount = new InfoString(@"Timing points amount"), new Box
currentTimingPoint = new InfoString(@"Current timing point"), {
beatCount = new InfoString(@"Beats amount (in the current timing point)"), RelativeSizeAxes = Axes.Both,
currentBeat = new InfoString(@"Current beat"), Colour = Color4.Black.Opacity(150),
beatsPerMinute = new InfoString(@"BPM"), },
adjustedBeatLength = new InfoString(@"Adjusted beat length"), new FillFlowContainer
{
Anchor = Anchor.BottomLeft,
Origin = Anchor.BottomLeft,
AutoSizeAxes = Axes.Both,
Direction = FillDirection.Vertical,
Children = new Drawable[]
{
timingPointCount = new InfoString(@"Timing points amount"),
currentTimingPoint = new InfoString(@"Current timing point"),
beatCount = new InfoString(@"Beats amount (in the current timing point)"),
currentBeat = new InfoString(@"Current beat"),
beatsPerMinute = new InfoString(@"BPM"),
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 };
} }
} }
} }