1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-06 08:22:56 +08:00

Rework padding

This commit is contained in:
Andrei Zavatski 2020-08-02 21:44:34 +03:00
parent 7d83cdbf1c
commit bddc61756a
3 changed files with 16 additions and 7 deletions

View File

@ -36,7 +36,13 @@ namespace osu.Game.Tests.Visual.UserInterface
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
Colour = colourProvider.Background4 Colour = colourProvider.Background4
}, },
new DashboardBeatmapListing(new_beatmaps, popular_beatmaps) new Container
{
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Padding = new MarginPadding { Horizontal = 10 },
Child = new DashboardBeatmapListing(new_beatmaps, popular_beatmaps)
}
} }
}); });
} }

View File

@ -41,16 +41,20 @@ namespace osu.Game.Overlays.Dashboard.Dashboard
Height = 60; Height = 60;
Children = new Drawable[] Children = new Drawable[]
{ {
hoverBackground = new Box new Container
{
RelativeSizeAxes = Axes.Both,
Padding = new MarginPadding { Horizontal = -10 },
Child = hoverBackground = new Box
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
Colour = ColourProvider.Background3, Colour = ColourProvider.Background3,
Alpha = 0 Alpha = 0
}
}, },
new Container new Container
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
Padding = new MarginPadding { Horizontal = 10 },
Child = new GridContainer Child = new GridContainer
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,

View File

@ -41,8 +41,7 @@ namespace osu.Game.Overlays.Dashboard.Dashboard
{ {
Font = OsuFont.GetFont(size: 16, weight: FontWeight.Bold), Font = OsuFont.GetFont(size: 16, weight: FontWeight.Bold),
Colour = colourProvider.Light1, Colour = colourProvider.Light1,
Text = Title, Text = Title
Padding = new MarginPadding { Left = 10 }
} }
} }
}; };