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:
parent
c5bad816db
commit
7373d79ba6
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user