Adjust colours to actually match web

This commit is contained in:
Bartłomiej Dach 2024-11-04 12:02:20 +01:00
parent 1a92e5ad19
commit cb833007e0
No known key found for this signature in database

View File

@ -178,6 +178,8 @@ namespace osu.Game.Overlays.Profile.Header.Components
private void updateColor() private void updateColor()
{ {
// https://github.com/ppy/osu-web/blob/0a5367a4a68a6cdf450eb483251b3cf03b3ac7d2/resources/css/bem/user-action-button.less
switch (status.Value) switch (status.Value)
{ {
case FriendStatus.Self: case FriendStatus.Self:
@ -188,15 +190,15 @@ namespace osu.Game.Overlays.Profile.Header.Components
break; break;
case FriendStatus.NotMutual: case FriendStatus.NotMutual:
IdleColour = colour.Green; IdleColour = colour.Green.Opacity(0.7f);
HoverColour = colour.Green.Lighten(0.1f); HoverColour = IdleColour.Lighten(0.05f);
SetBackgroundColour(colour.Green, 200); SetBackgroundColour(IdleColour, 200);
break; break;
case FriendStatus.Mutual: case FriendStatus.Mutual:
IdleColour = colour.Pink; IdleColour = colour.Pink.Opacity(0.7f);
HoverColour = colour.Pink1.Lighten(0.1f); HoverColour = IdleColour.Lighten(0.05f);
SetBackgroundColour(colour.Pink, 200); SetBackgroundColour(colour.Pink.Opacity(0.7f), 200);
break; break;
} }
} }