mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 12:33:01 +08:00
Rework padding
This commit is contained in:
parent
7d83cdbf1c
commit
bddc61756a
@ -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)
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -41,16 +41,20 @@ namespace osu.Game.Overlays.Dashboard.Dashboard
|
||||
Height = 60;
|
||||
Children = new Drawable[]
|
||||
{
|
||||
hoverBackground = new Box
|
||||
new Container
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
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,
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user