Use OsuColour instead of hex for button accent colour

This commit is contained in:
mk56-spn 2022-12-02 19:16:25 +01:00
parent c5bad816db
commit 7373d79ba6
3 changed files with 8 additions and 8 deletions

View File

@ -2,19 +2,19 @@
// See the LICENCE file in the repository root for full licence text. // See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation; using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Sprites; using osu.Framework.Graphics.Sprites;
using osu.Game.Graphics;
namespace osu.Game.Screens.Select.FooterV2 namespace osu.Game.Screens.Select.FooterV2
{ {
public partial class FooterButtonModsV2 : FooterButtonV2 public partial class FooterButtonModsV2 : FooterButtonV2
{ {
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load() private void load(OsuColour colour)
{ {
Text = "Mods"; Text = "Mods";
Icon = FontAwesome.Solid.ArrowsAlt; Icon = FontAwesome.Solid.ArrowsAlt;
AccentColour = Colour4.FromHex("#B2FF66"); AccentColour = colour.Lime1;
} }
} }
} }

View File

@ -2,19 +2,19 @@
// See the LICENCE file in the repository root for full licence text. // See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation; using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Sprites; using osu.Framework.Graphics.Sprites;
using osu.Game.Graphics;
namespace osu.Game.Screens.Select.FooterV2 namespace osu.Game.Screens.Select.FooterV2
{ {
public partial class FooterButtonOptionsV2 : FooterButtonV2 public partial class FooterButtonOptionsV2 : FooterButtonV2
{ {
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load() private void load(OsuColour colour)
{ {
Text = "Options"; Text = "Options";
Icon = FontAwesome.Solid.Cog; Icon = FontAwesome.Solid.Cog;
AccentColour = Colour4.FromHex("#8C66FF"); AccentColour = colour.Purple1;
} }
} }
} }

View File

@ -26,11 +26,11 @@ namespace osu.Game.Screens.Select.FooterV2
private bool rewindSearch; private bool rewindSearch;
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load() private void load(OsuColour colour)
{ {
//TODO: use https://fontawesome.com/icons/shuffle?s=solid&f=classic when local Fontawesome is updated //TODO: use https://fontawesome.com/icons/shuffle?s=solid&f=classic when local Fontawesome is updated
Icon = FontAwesome.Solid.Random; Icon = FontAwesome.Solid.Random;
AccentColour = Colour4.FromHex("#66CCFF"); AccentColour = colour.Blue1;
TextContainer.Add(persistentText = new Container TextContainer.Add(persistentText = new Container
{ {
Anchor = Anchor.Centre, Anchor = Anchor.Centre,