mirror of
https://github.com/ppy/osu.git
synced 2024-11-13 15:27:30 +08:00
Merge pull request #19295 from frenzibyte/filter-control-available-area
Fix sorting mode not filling up to usable area in filter control
This commit is contained in:
commit
1d69090301
@ -115,42 +115,53 @@ namespace osu.Game.Screens.Select
|
|||||||
Origin = Anchor.BottomLeft,
|
Origin = Anchor.BottomLeft,
|
||||||
Anchor = Anchor.BottomLeft,
|
Anchor = Anchor.BottomLeft,
|
||||||
},
|
},
|
||||||
new FillFlowContainer
|
new GridContainer
|
||||||
{
|
{
|
||||||
Anchor = Anchor.BottomRight,
|
Anchor = Anchor.BottomRight,
|
||||||
Origin = Anchor.BottomRight,
|
Origin = Anchor.BottomRight,
|
||||||
Direction = FillDirection.Horizontal,
|
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
AutoSizeAxes = Axes.Y,
|
AutoSizeAxes = Axes.Y,
|
||||||
Spacing = new Vector2(OsuTabControl<SortMode>.HORIZONTAL_SPACING, 0),
|
ColumnDimensions = new[]
|
||||||
Children = new Drawable[]
|
|
||||||
{
|
{
|
||||||
new OsuTabControlCheckbox
|
new Dimension(GridSizeMode.AutoSize),
|
||||||
|
new Dimension(GridSizeMode.Absolute, OsuTabControl<SortMode>.HORIZONTAL_SPACING),
|
||||||
|
new Dimension(),
|
||||||
|
new Dimension(GridSizeMode.Absolute, OsuTabControl<SortMode>.HORIZONTAL_SPACING),
|
||||||
|
new Dimension(GridSizeMode.AutoSize),
|
||||||
|
},
|
||||||
|
RowDimensions = new[] { new Dimension(GridSizeMode.AutoSize) },
|
||||||
|
Content = new[]
|
||||||
|
{
|
||||||
|
new[]
|
||||||
{
|
{
|
||||||
Text = "Show converted",
|
new OsuSpriteText
|
||||||
Current = config.GetBindable<bool>(OsuSetting.ShowConvertedBeatmaps),
|
{
|
||||||
Anchor = Anchor.BottomRight,
|
Text = SortStrings.Default,
|
||||||
Origin = Anchor.BottomRight,
|
Font = OsuFont.GetFont(size: 14),
|
||||||
},
|
Margin = new MarginPadding(5),
|
||||||
sortTabs = new OsuTabControl<SortMode>
|
Anchor = Anchor.BottomRight,
|
||||||
{
|
Origin = Anchor.BottomRight,
|
||||||
RelativeSizeAxes = Axes.X,
|
},
|
||||||
Width = 0.5f,
|
Empty(),
|
||||||
Height = 24,
|
sortTabs = new OsuTabControl<SortMode>
|
||||||
AutoSort = true,
|
{
|
||||||
Anchor = Anchor.BottomRight,
|
RelativeSizeAxes = Axes.X,
|
||||||
Origin = Anchor.BottomRight,
|
Height = 24,
|
||||||
AccentColour = colours.GreenLight,
|
AutoSort = true,
|
||||||
Current = { BindTarget = sortMode }
|
Anchor = Anchor.BottomRight,
|
||||||
},
|
Origin = Anchor.BottomRight,
|
||||||
new OsuSpriteText
|
AccentColour = colours.GreenLight,
|
||||||
{
|
Current = { BindTarget = sortMode }
|
||||||
Text = SortStrings.Default,
|
},
|
||||||
Font = OsuFont.GetFont(size: 14),
|
Empty(),
|
||||||
Margin = new MarginPadding(5),
|
new OsuTabControlCheckbox
|
||||||
Anchor = Anchor.BottomRight,
|
{
|
||||||
Origin = Anchor.BottomRight,
|
Text = "Show converted",
|
||||||
},
|
Current = config.GetBindable<bool>(OsuSetting.ShowConvertedBeatmaps),
|
||||||
|
Anchor = Anchor.BottomRight,
|
||||||
|
Origin = Anchor.BottomRight,
|
||||||
|
},
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user