mirror of
https://github.com/ppy/osu.git
synced 2025-02-14 04:52:55 +08:00
Fix padding of shortcut in toast when widest
This commit is contained in:
parent
7b37b15976
commit
af9bb6f277
@ -67,7 +67,7 @@ namespace osu.Game.Overlays.OSD
|
|||||||
ValueText = new OsuSpriteText
|
ValueText = new OsuSpriteText
|
||||||
{
|
{
|
||||||
Font = OsuFont.GetFont(size: 24, weight: FontWeight.Light),
|
Font = OsuFont.GetFont(size: 24, weight: FontWeight.Light),
|
||||||
Padding = new MarginPadding { Left = 10, Right = 10 },
|
Padding = new MarginPadding { Horizontal = 10 },
|
||||||
Name = "Value",
|
Name = "Value",
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
@ -79,7 +79,7 @@ namespace osu.Game.Overlays.OSD
|
|||||||
Origin = Anchor.BottomCentre,
|
Origin = Anchor.BottomCentre,
|
||||||
Name = "Shortcut",
|
Name = "Shortcut",
|
||||||
Alpha = 0.3f,
|
Alpha = 0.3f,
|
||||||
Margin = new MarginPadding { Bottom = 15 },
|
Margin = new MarginPadding { Bottom = 15, Horizontal = 10 },
|
||||||
Font = OsuFont.GetFont(size: 12, weight: FontWeight.Bold),
|
Font = OsuFont.GetFont(size: 12, weight: FontWeight.Bold),
|
||||||
Text = string.IsNullOrEmpty(shortcut.ToString()) ? (LocalisableString)"NO KEY BOUND" : shortcut.ToUpper()
|
Text = string.IsNullOrEmpty(shortcut.ToString()) ? (LocalisableString)"NO KEY BOUND" : shortcut.ToUpper()
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user