From 029d544720ef7cf02f4e37f5d938c8f129dac192 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Fri, 9 Jan 2026 17:42:54 +0900 Subject: [PATCH] Adjust switch buttons to make the state more obvious --- osu.Game/Graphics/UserInterfaceV2/SwitchButton.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/osu.Game/Graphics/UserInterfaceV2/SwitchButton.cs b/osu.Game/Graphics/UserInterfaceV2/SwitchButton.cs index f2d2f9c618..ce4b1e93c7 100644 --- a/osu.Game/Graphics/UserInterfaceV2/SwitchButton.cs +++ b/osu.Game/Graphics/UserInterfaceV2/SwitchButton.cs @@ -51,7 +51,6 @@ namespace osu.Game.Graphics.UserInterfaceV2 { RelativeSizeAxes = Axes.Both, AlwaysPresent = true, - Alpha = 0 }, new Container { @@ -92,7 +91,6 @@ namespace osu.Game.Graphics.UserInterfaceV2 private void updateState() { nub.MoveToX(Current.Value ? nubContainer.DrawWidth - nub.DrawWidth : 0, 200, Easing.OutQuint); - fill.FadeTo(Current.Value ? 1 : 0, 250, Easing.OutQuint); updateColours(); } @@ -139,7 +137,7 @@ namespace osu.Game.Graphics.UserInterfaceV2 bool hover = IsHovered && !Current.Disabled; borderColour = hover ? colourProvider.Highlight1.Opacity(0.5f) : colourProvider.Highlight1.Opacity(0.3f); - switchColour = hover ? colourProvider.Highlight1 : colourProvider.Light4; + switchColour = hover || Current.Value ? colourProvider.Highlight1 : colourProvider.Light4; if (!Current.Value) { @@ -147,7 +145,7 @@ namespace osu.Game.Graphics.UserInterfaceV2 switchColour = switchColour.MultiplyAlpha(0.8f); } - fill.Colour = colourProvider.Background6; + fill.Colour = Current.Value ? colourProvider.Colour4.Darken(0.2f) : colourProvider.Background6; } nubContainer.FadeColour(switchColour, 250, Easing.OutQuint);