1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 14:13:18 +08:00

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.
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Sprites;
using osu.Game.Graphics;
namespace osu.Game.Screens.Select.FooterV2
{
public partial class FooterButtonModsV2 : FooterButtonV2
{
[BackgroundDependencyLoader]
private void load()
private void load(OsuColour colour)
{
Text = "Mods";
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.
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Sprites;
using osu.Game.Graphics;
namespace osu.Game.Screens.Select.FooterV2
{
public partial class FooterButtonOptionsV2 : FooterButtonV2
{
[BackgroundDependencyLoader]
private void load()
private void load(OsuColour colour)
{
Text = "Options";
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;
[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
Icon = FontAwesome.Solid.Random;
AccentColour = Colour4.FromHex("#66CCFF");
AccentColour = colour.Blue1;
TextContainer.Add(persistentText = new Container
{
Anchor = Anchor.Centre,