mirror of
https://github.com/osukey/osukey.git
synced 2025-08-06 16:13:57 +09:00
Added background colour for better info visibility
This commit is contained in:
@ -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 };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user