1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 23:27:25 +08:00

Fix some styling issues with the verify screen layout

This commit is contained in:
Dean Herbert 2021-04-13 19:55:17 +09:00
parent 03ba04e8ce
commit 464fc02875

View File

@ -38,9 +38,6 @@ namespace osu.Game.Screens.Edit.Verify
Padding = new MarginPadding { Horizontal = horizontal_inset }; Padding = new MarginPadding { Horizontal = horizontal_inset };
RowSize = new Dimension(GridSizeMode.Absolute, row_height); RowSize = new Dimension(GridSizeMode.Absolute, row_height);
Masking = true;
CornerRadius = 6;
AddInternal(backgroundFlow = new FillFlowContainer AddInternal(backgroundFlow = new FillFlowContainer
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
@ -118,6 +115,17 @@ namespace osu.Game.Screens.Edit.Verify
} }
}; };
protected override Drawable CreateHeader(int index, TableColumn column) => new HeaderText(column?.Header ?? string.Empty);
private class HeaderText : OsuSpriteText
{
public HeaderText(string text)
{
Text = text.ToUpper();
Font = OsuFont.GetFont(size: 12, weight: FontWeight.Bold);
}
}
public class RowBackground : OsuClickableContainer public class RowBackground : OsuClickableContainer
{ {
private readonly Issue issue; private readonly Issue issue;