From d42c5481b0ae05a39556f1bf0da25f1df798c307 Mon Sep 17 00:00:00 2001 From: Jorolf Date: Wed, 15 Feb 2017 05:48:49 +0100 Subject: [PATCH] Make mode selector selected line non-relative. (#352) * mode selector line has the correct length now * calculation is now a 'one-liner' * Line length is absolute now * Line length is calculated inline --- osu.Game/Overlays/Toolbar/ToolbarModeSelector.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/osu.Game/Overlays/Toolbar/ToolbarModeSelector.cs b/osu.Game/Overlays/Toolbar/ToolbarModeSelector.cs index af543ae559..d8ad235cec 100644 --- a/osu.Game/Overlays/Toolbar/ToolbarModeSelector.cs +++ b/osu.Game/Overlays/Toolbar/ToolbarModeSelector.cs @@ -41,12 +41,11 @@ namespace osu.Game.Overlays.Toolbar Direction = FlowDirections.Horizontal, Anchor = Anchor.TopCentre, Origin = Anchor.TopCentre, - Padding = new MarginPadding { Left = 10, Right = 10 }, + Padding = new MarginPadding { Left = padding, Right = padding }, }, modeButtonLine = new Container { - RelativeSizeAxes = Axes.X, - Size = new Vector2(0.3f, 3), + Size = new Vector2(padding * 2 + ToolbarButton.WIDTH, 3), Anchor = Anchor.BottomLeft, Origin = Anchor.TopLeft, Masking = true,