mirror of
https://github.com/osukey/osukey.git
synced 2025-05-18 20:17:23 +09: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.
|
// 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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user