mirror of
https://github.com/ppy/osu
synced 2025-04-29 14:28:11 +00:00
Match header titles with web (pt size)
This commit is contained in:
parent
19a179db92
commit
409d89eecf
@ -66,11 +66,11 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
{
|
{
|
||||||
titleText = new OsuSpriteText
|
titleText = new OsuSpriteText
|
||||||
{
|
{
|
||||||
Font = OsuFont.GetFont(size: 25),
|
Font = OsuFont.GetFont(size: 30, weight: FontWeight.Light),
|
||||||
},
|
},
|
||||||
pageText = new OsuSpriteText
|
pageText = new OsuSpriteText
|
||||||
{
|
{
|
||||||
Font = OsuFont.GetFont(size: 25),
|
Font = OsuFont.GetFont(size: 30, weight: FontWeight.Light),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -64,17 +64,17 @@ namespace osu.Game.Overlays.Changelog
|
|||||||
new SpriteText
|
new SpriteText
|
||||||
{
|
{
|
||||||
Text = build.UpdateStream.DisplayName,
|
Text = build.UpdateStream.DisplayName,
|
||||||
Font = OsuFont.GetFont(weight: FontWeight.Medium, size: 28), // web: 24,
|
Font = OsuFont.GetFont(weight: FontWeight.Medium, size: 24),
|
||||||
},
|
},
|
||||||
new SpriteText
|
new SpriteText
|
||||||
{
|
{
|
||||||
Text = " ",
|
Text = " ",
|
||||||
Font = OsuFont.GetFont(weight: FontWeight.Medium, size: 28), // web: 24,
|
Font = OsuFont.GetFont(weight: FontWeight.Medium, size: 24),
|
||||||
},
|
},
|
||||||
new SpriteText
|
new SpriteText
|
||||||
{
|
{
|
||||||
Text = build.DisplayVersion,
|
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),
|
Colour = StreamColour.FromStreamName(build.UpdateStream.Name),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@ -97,7 +97,7 @@ namespace osu.Game.Overlays.Changelog
|
|||||||
// do we need .ToUniversalTime() here?
|
// do we need .ToUniversalTime() here?
|
||||||
// also, this should be a temporary solution to weekdays in >localized< date strings
|
// also, this should be a temporary solution to weekdays in >localized< date strings
|
||||||
Text = build.CreatedAt.Date.ToLongDateString().Replace(build.CreatedAt.ToString("dddd") + ", ", ""),
|
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"),
|
Colour = OsuColour.FromHex(@"FD5"),
|
||||||
Anchor = Anchor.TopCentre,
|
Anchor = Anchor.TopCentre,
|
||||||
Origin = Anchor.TopCentre,
|
Origin = Anchor.TopCentre,
|
||||||
@ -126,7 +126,7 @@ namespace osu.Game.Overlays.Changelog
|
|||||||
// do we need .ToUniversalTime() here?
|
// do we need .ToUniversalTime() here?
|
||||||
// also, this should be a temporary solution to weekdays in >localized< date strings
|
// also, this should be a temporary solution to weekdays in >localized< date strings
|
||||||
Text = build.CreatedAt.Date.ToLongDateString().Replace(build.CreatedAt.ToString("dddd") + ", ", ""),
|
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"),
|
Colour = OsuColour.FromHex(@"FD5"),
|
||||||
Anchor = Anchor.TopCentre,
|
Anchor = Anchor.TopCentre,
|
||||||
Origin = Anchor.TopCentre,
|
Origin = Anchor.TopCentre,
|
||||||
@ -150,12 +150,12 @@ namespace osu.Game.Overlays.Changelog
|
|||||||
new SpriteText
|
new SpriteText
|
||||||
{
|
{
|
||||||
Text = build.UpdateStream.DisplayName,
|
Text = build.UpdateStream.DisplayName,
|
||||||
Font = OsuFont.GetFont(weight: FontWeight.Medium, size: 20), // web: 19,
|
Font = OsuFont.GetFont(weight: FontWeight.Medium, size: 19),
|
||||||
},
|
},
|
||||||
new SpriteText
|
new SpriteText
|
||||||
{
|
{
|
||||||
Text = build.DisplayVersion,
|
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),
|
Colour = StreamColour.FromStreamName(build.UpdateStream.Name),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -214,7 +214,7 @@ namespace osu.Game.Overlays.Changelog
|
|||||||
ChangelogEntries.Add(new SpriteText
|
ChangelogEntries.Add(new SpriteText
|
||||||
{
|
{
|
||||||
Text = category.Key,
|
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 },
|
Margin = new MarginPadding { Top = 35, Bottom = 15 },
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -252,7 +252,7 @@ namespace osu.Game.Overlays.Changelog
|
|||||||
Online.Chat.LinkAction.External, null, null,
|
Online.Chat.LinkAction.External, null, null,
|
||||||
t => t.Font = OsuFont.GetFont(size: 14));
|
t => t.Font = OsuFont.GetFont(size: 14));
|
||||||
else
|
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);
|
ChangelogEntries.Add(title);
|
||||||
|
|
||||||
@ -267,7 +267,7 @@ namespace osu.Game.Overlays.Changelog
|
|||||||
// todo: use markdown parsing once API returns markdown
|
// todo: use markdown parsing once API returns markdown
|
||||||
messageContainer.AddText(Regex.Replace(entry.MessageHtml, @"<(.|\n)*?>", string.Empty), t =>
|
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);
|
t.Colour = new Color4(235, 184, 254, 255);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -108,12 +108,12 @@ namespace osu.Game.Overlays.Changelog
|
|||||||
new OsuSpriteText
|
new OsuSpriteText
|
||||||
{
|
{
|
||||||
Text = "Changelog ",
|
Text = "Changelog ",
|
||||||
Font = OsuFont.GetFont(weight: FontWeight.Light, size: 38), // web: 30,
|
Font = OsuFont.GetFont(weight: FontWeight.Light, size: 30),
|
||||||
},
|
},
|
||||||
titleStream = new OsuSpriteText
|
titleStream = new OsuSpriteText
|
||||||
{
|
{
|
||||||
Text = "Listing",
|
Text = "Listing",
|
||||||
Font = OsuFont.GetFont(weight: FontWeight.Light, size: 38), // web: 30,
|
Font = OsuFont.GetFont(weight: FontWeight.Light, size: 30),
|
||||||
Colour = colours.Violet,
|
Colour = colours.Violet,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -35,7 +35,7 @@ namespace osu.Game.Overlays.Changelog.Header
|
|||||||
{
|
{
|
||||||
Text = new SpriteText
|
Text = new SpriteText
|
||||||
{
|
{
|
||||||
Font = OsuFont.GetFont(size: 21), // web: 16,
|
Font = OsuFont.GetFont(size: 16),
|
||||||
Text = displayText,
|
Text = displayText,
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
|
@ -56,18 +56,18 @@ namespace osu.Game.Overlays.Changelog
|
|||||||
new SpriteText
|
new SpriteText
|
||||||
{
|
{
|
||||||
Text = stream.DisplayName,
|
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 },
|
Margin = new MarginPadding { Top = 6 },
|
||||||
},
|
},
|
||||||
new SpriteText
|
new SpriteText
|
||||||
{
|
{
|
||||||
Text = stream.LatestBuild.DisplayVersion,
|
Text = stream.LatestBuild.DisplayVersion,
|
||||||
Font = OsuFont.GetFont(weight: FontWeight.Light, size: 20), // web: 16,
|
Font = OsuFont.GetFont(weight: FontWeight.Light, size: 16),
|
||||||
},
|
},
|
||||||
new SpriteText
|
new SpriteText
|
||||||
{
|
{
|
||||||
Text = stream.LatestBuild.Users > 0 ? $"{stream.LatestBuild.Users:N0} users online" : null,
|
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),
|
Colour = new Color4(203, 164, 218, 255),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user