mirror of
https://github.com/ppy/osu
synced 2025-01-05 05:39:49 +00:00
Make InternalPadding a bit simpler
This commit is contained in:
parent
787d4da153
commit
7ed215c521
@ -29,10 +29,9 @@ namespace osu.Game.Overlays.SearchableList
|
||||
protected virtual Drawable CreateSupplementaryControls() => null;
|
||||
|
||||
/// <summary>
|
||||
/// Add padding to internal components of the control.
|
||||
/// This does not affect the background and the tab strip.
|
||||
/// The amount of padding added to content (does not affect background or tab control strip).
|
||||
/// </summary>
|
||||
protected virtual float InternalPadding => 0;
|
||||
protected virtual float ContentHorizontalPadding => SearchableListOverlay.WIDTH_PADDING;
|
||||
|
||||
protected SearchableListFilterControl()
|
||||
{
|
||||
@ -71,7 +70,7 @@ namespace osu.Game.Overlays.SearchableList
|
||||
Padding = new MarginPadding
|
||||
{
|
||||
Top = padding,
|
||||
Horizontal = SearchableListOverlay.WIDTH_PADDING + InternalPadding
|
||||
Horizontal = ContentHorizontalPadding
|
||||
},
|
||||
Children = new Drawable[]
|
||||
{
|
||||
|
@ -13,7 +13,7 @@ namespace osu.Game.Screens.Multi.Lounge.Components
|
||||
protected override Color4 BackgroundColour => OsuColour.FromHex(@"362e42");
|
||||
protected override PrimaryFilter DefaultTab => PrimaryFilter.Open;
|
||||
|
||||
protected override float InternalPadding => OsuScreen.HORIZONTAL_OVERFLOW_PADDING;
|
||||
protected override float ContentHorizontalPadding => base.ContentHorizontalPadding + OsuScreen.HORIZONTAL_OVERFLOW_PADDING;
|
||||
|
||||
public FilterControl()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user