Skip to content

Commit

Permalink
Use colours to distinguish buttons better
Browse files Browse the repository at this point in the history
  • Loading branch information
bdach committed Aug 21, 2024
1 parent a633fcd commit c4f08b4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion osu.Game/Screens/Edit/Timing/ControlPointList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using osu.Framework.Graphics.Containers;
using osu.Framework.Input.Events;
using osu.Game.Beatmaps.ControlPoints;
using osu.Game.Graphics;
using osu.Game.Graphics.UserInterface;
using osu.Game.Graphics.UserInterfaceV2;
using osuTK;
Expand All @@ -30,7 +31,7 @@ public partial class ControlPointList : CompositeDrawable
private Bindable<ControlPointGroup?> selectedGroup { get; set; } = null!;

[BackgroundDependencyLoader]
private void load()
private void load(OsuColour colours)
{
RelativeSizeAxes = Axes.Both;

Expand Down Expand Up @@ -59,13 +60,15 @@ private void load()
Action = delete,
Anchor = Anchor.BottomRight,
Origin = Anchor.BottomRight,
BackgroundColour = colours.Red3,
},
addButton = new RoundedButton
{
Action = addNew,
Size = new Vector2(160, 30),
Anchor = Anchor.BottomRight,
Origin = Anchor.BottomRight,
BackgroundColour = colours.Green3,
},
new RoundedButton
{
Expand Down

0 comments on commit c4f08b4

Please sign in to comment.