mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 20:22: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.Bindables;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Game.Graphics.UserInterface;
|
using osu.Game.Graphics.UserInterface;
|
||||||
|
using osuTK;
|
||||||
|
|
||||||
namespace osu.Game.Overlays.Settings
|
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 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 sealed override Drawable CreateControl() => CreateDropdown();
|
||||||
|
|
||||||
protected virtual OsuDropdown<T> CreateDropdown() => new DropdownControl();
|
protected virtual OsuDropdown<T> CreateDropdown() => new DropdownControl();
|
||||||
@ -35,7 +41,6 @@ namespace osu.Game.Overlays.Settings
|
|||||||
{
|
{
|
||||||
public DropdownControl()
|
public DropdownControl()
|
||||||
{
|
{
|
||||||
Margin = new MarginPadding { Top = 5 };
|
|
||||||
RelativeSizeAxes = Axes.X;
|
RelativeSizeAxes = Axes.X;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,7 +16,6 @@ namespace osu.Game.Overlays.Settings
|
|||||||
{
|
{
|
||||||
public DropdownControl()
|
public DropdownControl()
|
||||||
{
|
{
|
||||||
Margin = new MarginPadding { Top = 5 };
|
|
||||||
RelativeSizeAxes = Axes.X;
|
RelativeSizeAxes = Axes.X;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user