Use `@2x` variant of profile badges

This commit is contained in:
Joseph Madamba 2023-09-06 16:17:53 -07:00
parent 9b202b5f21
commit 5ee412cc9a
No known key found for this signature in database
GPG Key ID: 8B746C7BDDF0BD76
2 changed files with 8 additions and 3 deletions

View File

@ -134,14 +134,16 @@ public void TestLoading()
{
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",

View File

@ -16,9 +16,12 @@ public class Badge
[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;
}