mirror of
https://github.com/ppy/osu.git
synced 2025-01-21 19:52:55 +08:00
Merge pull request #27106 from Joehuu/match-profile-icons
Fix profile current location and interests icons not matching web
This commit is contained in:
commit
bd226859fb
@ -206,6 +206,12 @@ namespace osu.Game.Tests.Visual.Online
|
||||
Total = 50
|
||||
},
|
||||
SupportLevel = 2,
|
||||
Location = "Somewhere",
|
||||
Interests = "Rhythm games",
|
||||
Occupation = "Gamer",
|
||||
Twitter = "test_user",
|
||||
Discord = "test_user",
|
||||
Website = "https://google.com",
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -144,8 +144,8 @@ namespace osu.Game.Overlays.Profile.Header
|
||||
|
||||
bool anyInfoAdded = false;
|
||||
|
||||
anyInfoAdded |= tryAddInfo(FontAwesome.Solid.MapMarker, user.Location);
|
||||
anyInfoAdded |= tryAddInfo(FontAwesome.Solid.Heart, user.Interests);
|
||||
anyInfoAdded |= tryAddInfo(FontAwesome.Solid.MapMarkerAlt, user.Location);
|
||||
anyInfoAdded |= tryAddInfo(FontAwesome.Regular.Heart, user.Interests);
|
||||
anyInfoAdded |= tryAddInfo(FontAwesome.Solid.Suitcase, user.Occupation);
|
||||
|
||||
if (anyInfoAdded)
|
||||
@ -171,7 +171,7 @@ namespace osu.Game.Overlays.Profile.Header
|
||||
|
||||
bottomLinkContainer.AddIcon(icon, text =>
|
||||
{
|
||||
text.Font = text.Font.With(size: 10);
|
||||
text.Font = text.Font.With(icon.Family, 10, icon.Weight);
|
||||
text.Colour = iconColour;
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user