From f39615a374afce4c880e02c645a888b8ceffd60e Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Mon, 23 Feb 2026 15:59:09 +0900 Subject: [PATCH] Move spacing local to usages --- osu.Game/Overlays/Toolbar/ToolbarButton.cs | 1 - osu.Game/Overlays/Toolbar/ToolbarMusicButton.cs | 2 +- osu.Game/Overlays/Toolbar/ToolbarUserButton.cs | 5 ++++- .../Overlays/Toolbar/TransientUserStatisticsUpdateDisplay.cs | 1 - 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/osu.Game/Overlays/Toolbar/ToolbarButton.cs b/osu.Game/Overlays/Toolbar/ToolbarButton.cs index c535137c74..b0a6841a2f 100644 --- a/osu.Game/Overlays/Toolbar/ToolbarButton.cs +++ b/osu.Game/Overlays/Toolbar/ToolbarButton.cs @@ -117,7 +117,6 @@ namespace osu.Game.Overlays.Toolbar Flow = new FillFlowContainer { Direction = FillDirection.Horizontal, - Spacing = new Vector2(5), Anchor = Anchor.TopCentre, Origin = Anchor.TopCentre, Padding = new MarginPadding { Left = Toolbar.HEIGHT / 2, Right = Toolbar.HEIGHT / 2 }, diff --git a/osu.Game/Overlays/Toolbar/ToolbarMusicButton.cs b/osu.Game/Overlays/Toolbar/ToolbarMusicButton.cs index 51b95b7d32..e6ffc1ad5e 100644 --- a/osu.Game/Overlays/Toolbar/ToolbarMusicButton.cs +++ b/osu.Game/Overlays/Toolbar/ToolbarMusicButton.cs @@ -43,7 +43,7 @@ namespace osu.Game.Overlays.Toolbar Origin = Anchor.CentreLeft, Width = 3f, Height = IconContainer.Height, - Margin = new MarginPadding { Horizontal = 2.5f }, + Margin = new MarginPadding { Left = 7.5f, Right = 2.5f }, Masking = true, Children = new[] { diff --git a/osu.Game/Overlays/Toolbar/ToolbarUserButton.cs b/osu.Game/Overlays/Toolbar/ToolbarUserButton.cs index f2ff08b526..d8350ce451 100644 --- a/osu.Game/Overlays/Toolbar/ToolbarUserButton.cs +++ b/osu.Game/Overlays/Toolbar/ToolbarUserButton.cs @@ -89,7 +89,10 @@ namespace osu.Game.Overlays.Toolbar }, } }, - new TransientUserStatisticsUpdateDisplay() + new TransientUserStatisticsUpdateDisplay + { + Alpha = 0, + } }); apiState = api.State.GetBoundCopy(); diff --git a/osu.Game/Overlays/Toolbar/TransientUserStatisticsUpdateDisplay.cs b/osu.Game/Overlays/Toolbar/TransientUserStatisticsUpdateDisplay.cs index 3a91fc47f6..e5df7a65dc 100644 --- a/osu.Game/Overlays/Toolbar/TransientUserStatisticsUpdateDisplay.cs +++ b/osu.Game/Overlays/Toolbar/TransientUserStatisticsUpdateDisplay.cs @@ -32,7 +32,6 @@ namespace osu.Game.Overlays.Toolbar private void load(UserStatisticsWatcher? userStatisticsWatcher) { RelativeSizeAxes = Axes.Y; - Alpha = 0; InternalChild = new FillFlowContainer {