From 5ee412cc9a1975196d0fc0127875227f474410e5 Mon Sep 17 00:00:00 2001 From: Joseph Madamba Date: Wed, 6 Sep 2023 16:17:53 -0700 Subject: [PATCH] Use `@2x` variant of profile badges --- osu.Game.Tests/Visual/Online/TestSceneUserProfileOverlay.cs | 6 ++++-- osu.Game/Users/Badge.cs | 5 ++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/osu.Game.Tests/Visual/Online/TestSceneUserProfileOverlay.cs b/osu.Game.Tests/Visual/Online/TestSceneUserProfileOverlay.cs index 4278c46d6a..b57b0b7312 100644 --- a/osu.Game.Tests/Visual/Online/TestSceneUserProfileOverlay.cs +++ b/osu.Game.Tests/Visual/Online/TestSceneUserProfileOverlay.cs @@ -134,14 +134,16 @@ namespace osu.Game.Tests.Visual.Online { AwardedAt = DateTimeOffset.FromUnixTimeSeconds(1505741569), Description = "Outstanding help by being a voluntary test subject.", - ImageUrl = "https://assets.ppy.sh/profile-badges/contributor.jpg", + ImageUrl = "https://assets.ppy.sh/profile-badges/contributor-new@2x.png", + ImageUrlLowRes = "https://assets.ppy.sh/profile-badges/contributor-new.png", Url = "https://osu.ppy.sh/wiki/en/People/Community_Contributors", }, new Badge { AwardedAt = DateTimeOffset.FromUnixTimeSeconds(1505741569), Description = "Badge without a url.", - ImageUrl = "https://assets.ppy.sh/profile-badges/contributor.jpg", + ImageUrl = "https://assets.ppy.sh/profile-badges/contributor@2x.png", + ImageUrlLowRes = "https://assets.ppy.sh/profile-badges/contributor.png", }, }, Title = "osu!volunteer", diff --git a/osu.Game/Users/Badge.cs b/osu.Game/Users/Badge.cs index b87e2ddecd..42f2234744 100644 --- a/osu.Game/Users/Badge.cs +++ b/osu.Game/Users/Badge.cs @@ -16,9 +16,12 @@ namespace osu.Game.Users [JsonProperty("description")] public string Description; - [JsonProperty("image_url")] + [JsonProperty("image@2x_url")] public string ImageUrl; + [JsonProperty("image_url")] + public string ImageUrlLowRes; + [JsonProperty("url")] public string Url; }