1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 10:33:07 +08:00

Fix truncating sprite text usage

This commit is contained in:
Joseph Madamba 2023-09-04 11:34:21 -07:00
parent 2fbd67cf26
commit bf71099e57
No known key found for this signature in database
GPG Key ID: 8B746C7BDDF0BD76

View File

@ -280,15 +280,14 @@ namespace osu.Game.Screens.Select
RelativeSizeAxes = Axes.X,
Children = new Drawable[]
{
TitleLabel = new OsuSpriteText
TitleLabel = new TruncatingSpriteText
{
Shadow = true,
Current = { BindTarget = titleBinding },
Font = OsuFont.TorusAlternate.With(size: 40, weight: FontWeight.SemiBold),
RelativeSizeAxes = Axes.X,
Truncate = true
},
ArtistLabel = new OsuSpriteText
ArtistLabel = new TruncatingSpriteText
{
// TODO : figma design has a diffused shadow, instead of the solid one present here, not possible currently as far as i'm aware.
Shadow = true,
@ -296,7 +295,6 @@ namespace osu.Game.Screens.Select
// Not sure if this should be semi bold or medium
Font = OsuFont.Torus.With(size: 20, weight: FontWeight.SemiBold),
RelativeSizeAxes = Axes.X,
Truncate = true
}
}
}