mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 14:32:55 +08:00
Adjust settings dropdown spacings
This commit is contained in:
parent
5ddb7f74e2
commit
1fba932e84
@ -6,6 +6,7 @@ using System.Linq;
|
||||
using osu.Framework.Bindables;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Game.Graphics.UserInterface;
|
||||
using osuTK;
|
||||
|
||||
namespace osu.Game.Overlays.Settings
|
||||
{
|
||||
@ -27,6 +28,11 @@ namespace osu.Game.Overlays.Settings
|
||||
|
||||
public override IEnumerable<string> FilterTerms => base.FilterTerms.Concat(Control.Items.Select(i => i.ToString()));
|
||||
|
||||
public SettingsDropdown()
|
||||
{
|
||||
FlowContent.Spacing = new Vector2(0, 10);
|
||||
}
|
||||
|
||||
protected sealed override Drawable CreateControl() => CreateDropdown();
|
||||
|
||||
protected virtual OsuDropdown<T> CreateDropdown() => new DropdownControl();
|
||||
@ -35,7 +41,6 @@ namespace osu.Game.Overlays.Settings
|
||||
{
|
||||
public DropdownControl()
|
||||
{
|
||||
Margin = new MarginPadding { Top = 5 };
|
||||
RelativeSizeAxes = Axes.X;
|
||||
}
|
||||
|
||||
|
@ -16,7 +16,6 @@ namespace osu.Game.Overlays.Settings
|
||||
{
|
||||
public DropdownControl()
|
||||
{
|
||||
Margin = new MarginPadding { Top = 5 };
|
||||
RelativeSizeAxes = Axes.X;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user