mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 00:53:56 +09:00
Make PR-link surrounding parenthesis white
This commit is contained in:
@ -221,15 +221,13 @@ namespace osu.Game.Overlays.Changelog
|
|||||||
});
|
});
|
||||||
foreach (ChangelogEntry entry in category.Value)
|
foreach (ChangelogEntry entry in category.Value)
|
||||||
{
|
{
|
||||||
OsuTextFlowContainer title;
|
OsuTextFlowContainer title = new OsuTextFlowContainer
|
||||||
|
|
||||||
ChangelogEntries.Add(title = new OsuTextFlowContainer
|
|
||||||
{
|
{
|
||||||
Direction = FillDirection.Full,
|
Direction = FillDirection.Full,
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
AutoSizeAxes = Axes.Y,
|
AutoSizeAxes = Axes.Y,
|
||||||
Margin = new MarginPadding { Vertical = 5 },
|
Margin = new MarginPadding { Vertical = 5 },
|
||||||
});
|
};
|
||||||
title.AddIcon(FontAwesome.fa_check, t =>
|
title.AddIcon(FontAwesome.fa_check, t =>
|
||||||
{
|
{
|
||||||
t.TextSize = 12;
|
t.TextSize = 12;
|
||||||
@ -238,24 +236,27 @@ namespace osu.Game.Overlays.Changelog
|
|||||||
title.AddText(entry.Title, t => { t.TextSize = 18; });
|
title.AddText(entry.Title, t => { t.TextSize = 18; });
|
||||||
if (!string.IsNullOrEmpty(entry.Repository))
|
if (!string.IsNullOrEmpty(entry.Repository))
|
||||||
{
|
{
|
||||||
title.AddText($" ({entry.Repository.Substring(4)}#{entry.GithubPullRequestId})", t =>
|
title.AddText(" (", t => t.TextSize = 18);
|
||||||
|
title.AddText($"{entry.Repository.Replace("ppy/", "")}#{entry.GithubPullRequestId}", t =>
|
||||||
{
|
{
|
||||||
t.TextSize = 18;
|
t.TextSize = 18;
|
||||||
t.Colour = Color4.SkyBlue;
|
t.Colour = Color4.SkyBlue;
|
||||||
});
|
});
|
||||||
|
title.AddText(")", t => t.TextSize = 18);
|
||||||
}
|
}
|
||||||
title.AddText($" by\u00A0{entry.GithubUser.DisplayName}", t => t.TextSize = 14); //web: 12;
|
title.AddText($" by\u00A0{entry.GithubUser.DisplayName}", t => t.TextSize = 14); //web: 12;
|
||||||
TextFlowContainer messageContainer;
|
ChangelogEntries.Add(title);
|
||||||
ChangelogEntries.Add(messageContainer = new OsuTextFlowContainer
|
TextFlowContainer messageContainer = new TextFlowContainer
|
||||||
{
|
{
|
||||||
AutoSizeAxes = Axes.Y,
|
AutoSizeAxes = Axes.Y,
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
});
|
};
|
||||||
messageContainer.AddText($"{entry.MessageHtml?.Replace("<p>", "").Replace("</p>", "")}\n", t =>
|
messageContainer.AddText($"{entry.MessageHtml?.Replace("<p>", "").Replace("</p>", "")}\n", t =>
|
||||||
{
|
{
|
||||||
t.TextSize = 14; // web: 12,
|
t.TextSize = 14; // web: 12,
|
||||||
t.Colour = new Color4(235, 184, 254, 255);
|
t.Colour = new Color4(235, 184, 254, 255);
|
||||||
});
|
});
|
||||||
|
ChangelogEntries.Add(messageContainer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user