1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 09:32:55 +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,
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;
Children = new Drawable[]
{
hoverBackground = new Box
new Container
{
RelativeSizeAxes = Axes.Both,
Colour = ColourProvider.Background3,
Alpha = 0
Padding = new MarginPadding { Horizontal = -10 },
Child = hoverBackground = new Box
{
RelativeSizeAxes = Axes.Both,
Colour = ColourProvider.Background3,
Alpha = 0
}
},
new Container
{
RelativeSizeAxes = Axes.Both,
Padding = new MarginPadding { Horizontal = 10 },
Child = new GridContainer
{
RelativeSizeAxes = Axes.Both,

View File

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