1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 02:43:19 +08:00

Add tint to user's score container background

This commit is contained in:
Ganendra Afrasya 2019-11-01 22:46:13 +07:00
parent 036e67bbc2
commit d9a91100fb

View File

@ -21,6 +21,7 @@ using osu.Game.Users.Drawables;
using osuTK; using osuTK;
using osuTK.Graphics; using osuTK.Graphics;
using Humanizer; using Humanizer;
using osu.Game.Online.API;
namespace osu.Game.Online.Leaderboards namespace osu.Game.Online.Leaderboards
{ {
@ -59,7 +60,7 @@ namespace osu.Game.Online.Leaderboards
} }
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load() private void load(IAPIProvider api, OsuColour colour)
{ {
var user = score.User; var user = score.User;
@ -100,7 +101,7 @@ namespace osu.Game.Online.Leaderboards
background = new Box background = new Box
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
Colour = Color4.Black, Colour = user.Id == api.LocalUser.Value.Id ? colour.YellowLight : Color4.Black,
Alpha = background_alpha, Alpha = background_alpha,
}, },
}, },