mirror of
https://github.com/osukey/osukey.git
synced 2025-08-06 16:13:57 +09:00
Update row attribute background colour to fit screen
This commit is contained in:
@ -19,6 +19,8 @@ namespace osu.Game.Screens.Edit.Timing
|
|||||||
|
|
||||||
private readonly string label;
|
private readonly string label;
|
||||||
|
|
||||||
|
protected Drawable Background { get; private set; }
|
||||||
|
|
||||||
protected FillFlowContainer Content { get; private set; }
|
protected FillFlowContainer Content { get; private set; }
|
||||||
|
|
||||||
public RowAttribute(ControlPoint point, string label)
|
public RowAttribute(ControlPoint point, string label)
|
||||||
@ -41,11 +43,11 @@ namespace osu.Game.Screens.Edit.Timing
|
|||||||
Masking = true;
|
Masking = true;
|
||||||
CornerRadius = 3;
|
CornerRadius = 3;
|
||||||
|
|
||||||
InternalChildren = new Drawable[]
|
InternalChildren = new[]
|
||||||
{
|
{
|
||||||
new Box
|
Background = new Box
|
||||||
{
|
{
|
||||||
Colour = overlayColours.Background4,
|
Colour = overlayColours.Background5,
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
},
|
},
|
||||||
Content = new FillFlowContainer
|
Content = new FillFlowContainer
|
||||||
|
@ -7,6 +7,7 @@ using osu.Framework.Extensions;
|
|||||||
using osu.Game.Beatmaps.ControlPoints;
|
using osu.Game.Beatmaps.ControlPoints;
|
||||||
using osu.Game.Beatmaps.Timing;
|
using osu.Game.Beatmaps.Timing;
|
||||||
using osu.Game.Graphics.Sprites;
|
using osu.Game.Graphics.Sprites;
|
||||||
|
using osu.Game.Overlays;
|
||||||
|
|
||||||
namespace osu.Game.Screens.Edit.Timing.RowAttributes
|
namespace osu.Game.Screens.Edit.Timing.RowAttributes
|
||||||
{
|
{
|
||||||
@ -24,10 +25,12 @@ namespace osu.Game.Screens.Edit.Timing.RowAttributes
|
|||||||
}
|
}
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load()
|
private void load(OverlayColourProvider colourProvider)
|
||||||
{
|
{
|
||||||
Content.Add(text = new AttributeText(Point));
|
Content.Add(text = new AttributeText(Point));
|
||||||
|
|
||||||
|
Background.Colour = colourProvider.Background4;
|
||||||
|
|
||||||
timeSignature.BindValueChanged(_ => updateText());
|
timeSignature.BindValueChanged(_ => updateText());
|
||||||
beatLength.BindValueChanged(_ => updateText(), true);
|
beatLength.BindValueChanged(_ => updateText(), true);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user