1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 15:53:21 +08:00

Make line slightly thicker (to display better at low resolutions)

Also tidies up code.
This commit is contained in:
Dean Herbert 2019-08-13 00:21:47 +09:00
parent a7ae0e6677
commit 433b701df3

View File

@ -32,7 +32,7 @@ namespace osu.Game.Overlays.BeatmapSet
AddItem(BeatmapLeaderboardScope.Country);
AddItem(BeatmapLeaderboardScope.Friend);
AddInternal(new Line
AddInternal(new GradientLine
{
Anchor = Anchor.BottomCentre,
Origin = Anchor.BottomCentre,
@ -78,19 +78,20 @@ namespace osu.Game.Overlays.BeatmapSet
}
}
private class Line : GridContainer
private class GradientLine : GridContainer
{
public Line()
public GradientLine()
{
Height = 1;
RelativeSizeAxes = Axes.X;
Width = 0.8f;
Size = new Vector2(0.8f, 1.5f);
ColumnDimensions = new[]
{
new Dimension(),
new Dimension(mode: GridSizeMode.Relative, size: 0.4f),
new Dimension(),
};
Content = new[]
{
new Drawable[]