1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 17:52:56 +08:00

Match header titles with web (pt size)

This commit is contained in:
Dean Herbert 2019-05-16 18:53:20 +09:00
parent 19a179db92
commit 409d89eecf
5 changed files with 18 additions and 18 deletions

View File

@ -66,11 +66,11 @@ namespace osu.Game.Graphics.UserInterface
{
titleText = new OsuSpriteText
{
Font = OsuFont.GetFont(size: 25),
Font = OsuFont.GetFont(size: 30, weight: FontWeight.Light),
},
pageText = new OsuSpriteText
{
Font = OsuFont.GetFont(size: 25),
Font = OsuFont.GetFont(size: 30, weight: FontWeight.Light),
}
}
}

View File

@ -64,17 +64,17 @@ namespace osu.Game.Overlays.Changelog
new SpriteText
{
Text = build.UpdateStream.DisplayName,
Font = OsuFont.GetFont(weight: FontWeight.Medium, size: 28), // web: 24,
Font = OsuFont.GetFont(weight: FontWeight.Medium, size: 24),
},
new SpriteText
{
Text = " ",
Font = OsuFont.GetFont(weight: FontWeight.Medium, size: 28), // web: 24,
Font = OsuFont.GetFont(weight: FontWeight.Medium, size: 24),
},
new SpriteText
{
Text = build.DisplayVersion,
Font = OsuFont.GetFont(weight: FontWeight.Light, size: 28), // web: 24,
Font = OsuFont.GetFont(weight: FontWeight.Light, size: 24),
Colour = StreamColour.FromStreamName(build.UpdateStream.Name),
},
}
@ -97,7 +97,7 @@ namespace osu.Game.Overlays.Changelog
// do we need .ToUniversalTime() here?
// also, this should be a temporary solution to weekdays in >localized< date strings
Text = build.CreatedAt.Date.ToLongDateString().Replace(build.CreatedAt.ToString("dddd") + ", ", ""),
Font = OsuFont.GetFont(weight: FontWeight.Medium, size: 17), // web: 14,
Font = OsuFont.GetFont(weight: FontWeight.Medium, size: 14),
Colour = OsuColour.FromHex(@"FD5"),
Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre,
@ -126,7 +126,7 @@ namespace osu.Game.Overlays.Changelog
// do we need .ToUniversalTime() here?
// also, this should be a temporary solution to weekdays in >localized< date strings
Text = build.CreatedAt.Date.ToLongDateString().Replace(build.CreatedAt.ToString("dddd") + ", ", ""),
Font = OsuFont.GetFont(weight: FontWeight.Light, size: 28), // web: 24,
Font = OsuFont.GetFont(weight: FontWeight.Light, size: 24),
Colour = OsuColour.FromHex(@"FD5"),
Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre,
@ -150,12 +150,12 @@ namespace osu.Game.Overlays.Changelog
new SpriteText
{
Text = build.UpdateStream.DisplayName,
Font = OsuFont.GetFont(weight: FontWeight.Medium, size: 20), // web: 19,
Font = OsuFont.GetFont(weight: FontWeight.Medium, size: 19),
},
new SpriteText
{
Text = build.DisplayVersion,
Font = OsuFont.GetFont(weight: FontWeight.Light, size: 20), // web: 19,
Font = OsuFont.GetFont(weight: FontWeight.Light, size: 19),
Colour = StreamColour.FromStreamName(build.UpdateStream.Name),
},
},
@ -214,7 +214,7 @@ namespace osu.Game.Overlays.Changelog
ChangelogEntries.Add(new SpriteText
{
Text = category.Key,
Font = OsuFont.GetFont(weight: FontWeight.Bold, size: 24), // web: 24,
Font = OsuFont.GetFont(weight: FontWeight.Bold, size: 24),
Margin = new MarginPadding { Top = 35, Bottom = 15 },
});
@ -252,7 +252,7 @@ namespace osu.Game.Overlays.Changelog
Online.Chat.LinkAction.External, null, null,
t => t.Font = OsuFont.GetFont(size: 14));
else
title.AddText(entry.GithubUser.DisplayName, t => t.Font = OsuFont.GetFont(size: 14)); //web: 12;
title.AddText(entry.GithubUser.DisplayName, t => t.Font = OsuFont.GetFont(size: 12));
ChangelogEntries.Add(title);
@ -267,7 +267,7 @@ namespace osu.Game.Overlays.Changelog
// todo: use markdown parsing once API returns markdown
messageContainer.AddText(Regex.Replace(entry.MessageHtml, @"<(.|\n)*?>", string.Empty), t =>
{
t.Font = OsuFont.GetFont(size: 14); // web: 12,
t.Font = OsuFont.GetFont(size: 12);
t.Colour = new Color4(235, 184, 254, 255);
});

View File

@ -108,12 +108,12 @@ namespace osu.Game.Overlays.Changelog
new OsuSpriteText
{
Text = "Changelog ",
Font = OsuFont.GetFont(weight: FontWeight.Light, size: 38), // web: 30,
Font = OsuFont.GetFont(weight: FontWeight.Light, size: 30),
},
titleStream = new OsuSpriteText
{
Text = "Listing",
Font = OsuFont.GetFont(weight: FontWeight.Light, size: 38), // web: 30,
Font = OsuFont.GetFont(weight: FontWeight.Light, size: 30),
Colour = colours.Violet,
},
}

View File

@ -35,7 +35,7 @@ namespace osu.Game.Overlays.Changelog.Header
{
Text = new SpriteText
{
Font = OsuFont.GetFont(size: 21), // web: 16,
Font = OsuFont.GetFont(size: 16),
Text = displayText,
Anchor = Anchor.Centre,
Origin = Anchor.Centre,

View File

@ -56,18 +56,18 @@ namespace osu.Game.Overlays.Changelog
new SpriteText
{
Text = stream.DisplayName,
Font = OsuFont.GetFont(weight: FontWeight.Bold, size: 14), // web: 12,
Font = OsuFont.GetFont(weight: FontWeight.Bold, size: 12),
Margin = new MarginPadding { Top = 6 },
},
new SpriteText
{
Text = stream.LatestBuild.DisplayVersion,
Font = OsuFont.GetFont(weight: FontWeight.Light, size: 20), // web: 16,
Font = OsuFont.GetFont(weight: FontWeight.Light, size: 16),
},
new SpriteText
{
Text = stream.LatestBuild.Users > 0 ? $"{stream.LatestBuild.Users:N0} users online" : null,
Font = OsuFont.GetFont(weight: FontWeight.Regular, size: 12), // web: 10,
Font = OsuFont.GetFont(weight: FontWeight.Regular, size: 10),
Colour = new Color4(203, 164, 218, 255),
},
}