mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 15:03:13 +08:00
Fix truncating sprite text usage
This commit is contained in:
parent
2fbd67cf26
commit
bf71099e57
@ -280,15 +280,14 @@ namespace osu.Game.Screens.Select
|
|||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
TitleLabel = new OsuSpriteText
|
TitleLabel = new TruncatingSpriteText
|
||||||
{
|
{
|
||||||
Shadow = true,
|
Shadow = true,
|
||||||
Current = { BindTarget = titleBinding },
|
Current = { BindTarget = titleBinding },
|
||||||
Font = OsuFont.TorusAlternate.With(size: 40, weight: FontWeight.SemiBold),
|
Font = OsuFont.TorusAlternate.With(size: 40, weight: FontWeight.SemiBold),
|
||||||
RelativeSizeAxes = Axes.X,
|
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.
|
// 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,
|
Shadow = true,
|
||||||
@ -296,7 +295,6 @@ namespace osu.Game.Screens.Select
|
|||||||
// Not sure if this should be semi bold or medium
|
// Not sure if this should be semi bold or medium
|
||||||
Font = OsuFont.Torus.With(size: 20, weight: FontWeight.SemiBold),
|
Font = OsuFont.Torus.With(size: 20, weight: FontWeight.SemiBold),
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
Truncate = true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user