mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 09:03:50 +09:00
Adjust horizontal spacing in settings panel
This commit is contained in:
@ -23,7 +23,7 @@ namespace osu.Game.Overlays
|
|||||||
[Cached]
|
[Cached]
|
||||||
public abstract class SettingsPanel : OsuFocusedOverlayContainer
|
public abstract class SettingsPanel : OsuFocusedOverlayContainer
|
||||||
{
|
{
|
||||||
public const float CONTENT_MARGINS = 15;
|
public const float CONTENT_MARGINS = 20;
|
||||||
|
|
||||||
public const float TRANSITION_LENGTH = 600;
|
public const float TRANSITION_LENGTH = 600;
|
||||||
|
|
||||||
@ -106,17 +106,23 @@ namespace osu.Game.Overlays
|
|||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
ExpandableHeader = CreateHeader(),
|
ExpandableHeader = CreateHeader(),
|
||||||
SelectedSection = { BindTarget = CurrentSection },
|
SelectedSection = { BindTarget = CurrentSection },
|
||||||
FixedHeader = searchTextBox = new SeekLimitedSearchTextBox
|
FixedHeader = new Container
|
||||||
|
{
|
||||||
|
RelativeSizeAxes = Axes.X,
|
||||||
|
AutoSizeAxes = Axes.Y,
|
||||||
|
Padding = new MarginPadding
|
||||||
|
{
|
||||||
|
Vertical = 20,
|
||||||
|
Horizontal = CONTENT_MARGINS
|
||||||
|
},
|
||||||
|
Anchor = Anchor.TopCentre,
|
||||||
|
Origin = Anchor.TopCentre,
|
||||||
|
Child = searchTextBox = new SeekLimitedSearchTextBox
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
Origin = Anchor.TopCentre,
|
Origin = Anchor.TopCentre,
|
||||||
Anchor = Anchor.TopCentre,
|
Anchor = Anchor.TopCentre,
|
||||||
Width = 0.95f,
|
}
|
||||||
Margin = new MarginPadding
|
|
||||||
{
|
|
||||||
Top = 20,
|
|
||||||
Bottom = 20
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
Footer = CreateFooter().With(f => f.Alpha = 0)
|
Footer = CreateFooter().With(f => f.Alpha = 0)
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user