1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-23 04:59:53 +08:00

Adjust toggleable subsection colour to always be bright when enabled

This commit is contained in:
Dean Herbert
2026-01-09 17:48:44 +09:00
committed by Salman Alshamrani
Unverified
parent 029d544720
commit ed091dc9cd
@@ -13,6 +13,7 @@ using osu.Game.Graphics.Sprites;
using osu.Game.Graphics.UserInterface;
using osu.Game.Graphics.UserInterfaceV2;
using osuTK;
using osuTK.Graphics;
namespace osu.Game.Overlays.Settings.Sections
{
@@ -169,10 +170,13 @@ namespace osu.Game.Overlays.Settings.Sections
private void updateDisplay()
{
if (toggleable && IsHovered)
headerText.FadeColour(colourProvider.Light1, 300, Easing.OutQuint);
else
headerText.FadeColour(Current.Value ? colourProvider.Content1 : colourProvider.Foreground1, 300, Easing.OutQuint);
// default, toggled on (or not toggleable)
Color4 col = colourProvider.Content1;
if (toggleable && !Current.Value)
col = IsHovered ? colourProvider.Light1 : colourProvider.Foreground1;
headerText.FadeColour(col, 300, Easing.OutQuint);
}
}
}