1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 21:03:08 +08:00

Change hover colour for news title

This commit is contained in:
Andrei Zavatski 2020-08-11 20:17:29 +03:00
parent fdfda453c7
commit 84655b0798

View File

@ -24,7 +24,7 @@ namespace osu.Game.Overlays.Dashboard.Home.News
}
[BackgroundDependencyLoader]
private void load(GameHost host)
private void load(GameHost host, OverlayColourProvider colourProvider)
{
Child = new TextFlowContainer(t =>
{
@ -36,6 +36,8 @@ namespace osu.Game.Overlays.Dashboard.Home.News
Text = post.Title
};
HoverColour = colourProvider.Light1;
TooltipText = "view in browser";
Action = () => host.OpenUrlExternally("https://osu.ppy.sh/home/news/" + post.Slug);
}