mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 23:12:55 +08:00
Bring StreamBadge visual proportions closer to the upstream design
This commit is contained in:
parent
2906f4b401
commit
a7a6e52c16
@ -18,7 +18,7 @@ namespace osu.Game.Overlays.Changelog
|
|||||||
{
|
{
|
||||||
public class StreamBadge : ClickableContainer
|
public class StreamBadge : ClickableContainer
|
||||||
{
|
{
|
||||||
private const float badge_height = 56.5f;
|
private const float badge_height = 66.5f;
|
||||||
private const float badge_width = 100;
|
private const float badge_width = 100;
|
||||||
private const float transition_duration = 100;
|
private const float transition_duration = 100;
|
||||||
|
|
||||||
@ -40,7 +40,7 @@ namespace osu.Game.Overlays.Changelog
|
|||||||
LatestBuild = latestBuild;
|
LatestBuild = latestBuild;
|
||||||
Height = badge_height;
|
Height = badge_height;
|
||||||
Width = LatestBuild.IsFeatured ? badge_width * 2 : badge_width;
|
Width = LatestBuild.IsFeatured ? badge_width * 2 : badge_width;
|
||||||
Margin = new MarginPadding(5);
|
Padding = new MarginPadding(5);
|
||||||
isActivated = true;
|
isActivated = true;
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
@ -55,24 +55,21 @@ namespace osu.Game.Overlays.Changelog
|
|||||||
{
|
{
|
||||||
Text = LatestBuild.UpdateStream.DisplayName,
|
Text = LatestBuild.UpdateStream.DisplayName,
|
||||||
Font = @"Exo2.0-Bold",
|
Font = @"Exo2.0-Bold",
|
||||||
TextSize = 16,
|
TextSize = 14, // web: 12,
|
||||||
Margin = new MarginPadding
|
Margin = new MarginPadding { Top = 6, },
|
||||||
{
|
|
||||||
Top = 7,
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
new SpriteText
|
new SpriteText
|
||||||
{
|
{
|
||||||
Text = LatestBuild.DisplayVersion,
|
Text = LatestBuild.DisplayVersion,
|
||||||
Font = @"Exo2.0-Light",
|
Font = @"Exo2.0-Light",
|
||||||
TextSize = 21,
|
TextSize = 20, // web: 16,
|
||||||
},
|
},
|
||||||
new SpriteText
|
new SpriteText
|
||||||
{
|
{
|
||||||
Text = LatestBuild.Users > 0 ?
|
Text = LatestBuild.Users > 0 ?
|
||||||
$"{LatestBuild.Users:N0} users online" :
|
$"{LatestBuild.Users:N0} users online" :
|
||||||
null,
|
null,
|
||||||
TextSize = 12,
|
TextSize = 12, // web: 10,
|
||||||
Font = @"Exo2.0-Regular",
|
Font = @"Exo2.0-Regular",
|
||||||
Colour = new Color4(203, 164, 218, 255),
|
Colour = new Color4(203, 164, 218, 255),
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user