mirror of
https://github.com/osukey/osukey.git
synced 2025-06-05 12:57:39 +09:00
Apply suggestions
This commit is contained in:
parent
280a009784
commit
f1e54d2745
@ -1,4 +1,4 @@
|
|||||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||||
// See the LICENCE file in the repository root for full licence text.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
@ -73,7 +73,7 @@ namespace osu.Game.Overlays.Rankings.Tables
|
|||||||
RelativeSizeAxes = Axes.Y;
|
RelativeSizeAxes = Axes.Y;
|
||||||
TextAnchor = Anchor.CentreLeft;
|
TextAnchor = Anchor.CentreLeft;
|
||||||
|
|
||||||
if (country.FullName != null)
|
if (!string.IsNullOrEmpty(country.FullName))
|
||||||
AddLink(country.FullName, () => rankings?.ShowCountry(country));
|
AddLink(country.FullName, () => rankings?.ShowCountry(country));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -76,7 +76,10 @@ namespace osu.Game.Overlays.Rankings.Tables
|
|||||||
var isHighlighted = HighlightedColumn() == title;
|
var isHighlighted = HighlightedColumn() == title;
|
||||||
var isGrade = GradeColumns().Contains(title);
|
var isGrade = GradeColumns().Contains(title);
|
||||||
|
|
||||||
return new HeaderText(title, isHighlighted) { Margin = new MarginPadding { Vertical = 5, Horizontal = isGrade ? 20 : 10 } };
|
return new HeaderText(title, isHighlighted)
|
||||||
|
{
|
||||||
|
Margin = new MarginPadding { Vertical = 5, Horizontal = isGrade ? 20 : 10 }
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
protected abstract Country GetCountry(TModel item);
|
protected abstract Country GetCountry(TModel item);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user