Use colours to distinguish buttons better

This commit is contained in:
Bartłomiej Dach 2024-08-21 09:05:10 +02:00
parent a633fcdb49
commit c4f08b42ab
No known key found for this signature in database

View File

@ -9,6 +9,7 @@ using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Containers;
using osu.Framework.Input.Events; using osu.Framework.Input.Events;
using osu.Game.Beatmaps.ControlPoints; using osu.Game.Beatmaps.ControlPoints;
using osu.Game.Graphics;
using osu.Game.Graphics.UserInterface; using osu.Game.Graphics.UserInterface;
using osu.Game.Graphics.UserInterfaceV2; using osu.Game.Graphics.UserInterfaceV2;
using osuTK; using osuTK;
@ -30,7 +31,7 @@ namespace osu.Game.Screens.Edit.Timing
private Bindable<ControlPointGroup?> selectedGroup { get; set; } = null!; private Bindable<ControlPointGroup?> selectedGroup { get; set; } = null!;
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load() private void load(OsuColour colours)
{ {
RelativeSizeAxes = Axes.Both; RelativeSizeAxes = Axes.Both;
@ -59,6 +60,7 @@ namespace osu.Game.Screens.Edit.Timing
Action = delete, Action = delete,
Anchor = Anchor.BottomRight, Anchor = Anchor.BottomRight,
Origin = Anchor.BottomRight, Origin = Anchor.BottomRight,
BackgroundColour = colours.Red3,
}, },
addButton = new RoundedButton addButton = new RoundedButton
{ {
@ -66,6 +68,7 @@ namespace osu.Game.Screens.Edit.Timing
Size = new Vector2(160, 30), Size = new Vector2(160, 30),
Anchor = Anchor.BottomRight, Anchor = Anchor.BottomRight,
Origin = Anchor.BottomRight, Origin = Anchor.BottomRight,
BackgroundColour = colours.Green3,
}, },
new RoundedButton new RoundedButton
{ {