mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Fix channel badges not scaling properly
This commit is contained in:
parent
4752a3a4d4
commit
eb04e1c3df
|
@ -600,12 +600,13 @@ void TwitchChannel::refreshBadges()
|
||||||
auto jsonVersion = jsonVersion_->toObject();
|
auto jsonVersion = jsonVersion_->toObject();
|
||||||
auto emote = std::make_shared<Emote>(Emote{
|
auto emote = std::make_shared<Emote>(Emote{
|
||||||
EmoteName{},
|
EmoteName{},
|
||||||
ImageSet{Image::fromUrl(
|
ImageSet{
|
||||||
{jsonVersion["image_url_1x"].toString()}),
|
Image::fromUrl({jsonVersion["image_url_1x"].toString()},
|
||||||
Image::fromUrl(
|
1),
|
||||||
{jsonVersion["image_url_2x"].toString()}),
|
Image::fromUrl({jsonVersion["image_url_2x"].toString()},
|
||||||
Image::fromUrl(
|
.5),
|
||||||
{jsonVersion["image_url_4x"].toString()})},
|
Image::fromUrl({jsonVersion["image_url_4x"].toString()},
|
||||||
|
.25)},
|
||||||
Tooltip{jsonRoot["description"].toString()},
|
Tooltip{jsonRoot["description"].toString()},
|
||||||
Url{jsonVersion["clickURL"].toString()}});
|
Url{jsonVersion["clickURL"].toString()}});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue