mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 01:52:55 +08:00
Remove horizontal padding on toolbar ruleset selector (#6780)
Remove horizontal padding on toolbar ruleset selector
This commit is contained in:
commit
9db73d33cc
@ -18,8 +18,6 @@ namespace osu.Game.Overlays.Toolbar
|
|||||||
{
|
{
|
||||||
public class ToolbarRulesetSelector : RulesetSelector
|
public class ToolbarRulesetSelector : RulesetSelector
|
||||||
{
|
{
|
||||||
private const float padding = 10;
|
|
||||||
|
|
||||||
protected Drawable ModeButtonLine { get; private set; }
|
protected Drawable ModeButtonLine { get; private set; }
|
||||||
|
|
||||||
public ToolbarRulesetSelector()
|
public ToolbarRulesetSelector()
|
||||||
@ -39,7 +37,7 @@ namespace osu.Game.Overlays.Toolbar
|
|||||||
},
|
},
|
||||||
ModeButtonLine = new Container
|
ModeButtonLine = new Container
|
||||||
{
|
{
|
||||||
Size = new Vector2(padding * 2 + ToolbarButton.WIDTH, 3),
|
Size = new Vector2(ToolbarButton.WIDTH, 3),
|
||||||
Anchor = Anchor.BottomLeft,
|
Anchor = Anchor.BottomLeft,
|
||||||
Origin = Anchor.TopLeft,
|
Origin = Anchor.TopLeft,
|
||||||
Masking = true,
|
Masking = true,
|
||||||
@ -91,7 +89,6 @@ namespace osu.Game.Overlays.Toolbar
|
|||||||
RelativeSizeAxes = Axes.Y,
|
RelativeSizeAxes = Axes.Y,
|
||||||
AutoSizeAxes = Axes.X,
|
AutoSizeAxes = Axes.X,
|
||||||
Direction = FillDirection.Horizontal,
|
Direction = FillDirection.Horizontal,
|
||||||
Padding = new MarginPadding { Left = padding, Right = padding },
|
|
||||||
};
|
};
|
||||||
|
|
||||||
protected override bool OnKeyDown(KeyDownEvent e)
|
protected override bool OnKeyDown(KeyDownEvent e)
|
||||||
|
Loading…
Reference in New Issue
Block a user