mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 22:22:55 +08:00
Adjust setting section appearance & spacings
This commit is contained in:
parent
4c293b637f
commit
e23a54f1e6
@ -30,8 +30,7 @@ namespace osu.Game.Overlays.Settings
|
|||||||
public IEnumerable<IFilterable> FilterableChildren => Children.OfType<IFilterable>();
|
public IEnumerable<IFilterable> FilterableChildren => Children.OfType<IFilterable>();
|
||||||
public virtual IEnumerable<string> FilterTerms => new[] { Header.ToString() };
|
public virtual IEnumerable<string> FilterTerms => new[] { Header.ToString() };
|
||||||
|
|
||||||
private const int header_size = 26;
|
private const int header_size = 24;
|
||||||
private const int margin = 20;
|
|
||||||
private const int border_size = 4;
|
private const int border_size = 4;
|
||||||
|
|
||||||
public bool MatchingFilter
|
public bool MatchingFilter
|
||||||
@ -77,8 +76,8 @@ namespace osu.Game.Overlays.Settings
|
|||||||
{
|
{
|
||||||
Padding = new MarginPadding
|
Padding = new MarginPadding
|
||||||
{
|
{
|
||||||
Top = margin + border_size,
|
Top = 28,
|
||||||
Bottom = margin + 10,
|
Bottom = 40,
|
||||||
},
|
},
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
AutoSizeAxes = Axes.Y,
|
AutoSizeAxes = Axes.Y,
|
||||||
@ -86,13 +85,11 @@ namespace osu.Game.Overlays.Settings
|
|||||||
{
|
{
|
||||||
header = new OsuSpriteText
|
header = new OsuSpriteText
|
||||||
{
|
{
|
||||||
Font = OsuFont.GetFont(size: header_size),
|
Font = OsuFont.TorusAlternate.With(size: header_size),
|
||||||
Text = Header,
|
Text = Header,
|
||||||
Colour = colours.Yellow,
|
|
||||||
Margin = new MarginPadding
|
Margin = new MarginPadding
|
||||||
{
|
{
|
||||||
Left = SettingsPanel.CONTENT_MARGINS,
|
Horizontal = SettingsPanel.CONTENT_MARGINS
|
||||||
Right = SettingsPanel.CONTENT_MARGINS
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
FlowContent
|
FlowContent
|
||||||
|
Loading…
Reference in New Issue
Block a user