Skip to content

Commit

Permalink
fix formatting ci
Browse files Browse the repository at this point in the history
  • Loading branch information
TroyKomodo committed Apr 5, 2022
1 parent ec7d0a0 commit 132b406
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/providers/seventv/SeventvEmotes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,19 +66,22 @@ namespace {
auto size2x = heightArr.at(1).toDouble();
auto size3x = heightArr.at(2).toDouble();
auto size4x = heightArr.at(3).toDouble();
if (heightArr.size() != 4 || size2x <= 48) {
if (heightArr.size() != 4 || size2x <= 48)
{
size2x = 0.66;
size3x = 0.42;
} else {
}
else
{
size2x = 0.5;
size3x = 0.33;
}

auto emote = Emote(
{name,
ImageSet{Image::fromUrl(getEmoteLink(id, "1x"), 1),
Image::fromUrl(getEmoteLink(id, "2x"), size2x),
Image::fromUrl(getEmoteLink(id, "3x"), size3x),
Image::fromUrl(getEmoteLink(id, "2x"), size2x),
Image::fromUrl(getEmoteLink(id, "3x"), size3x),
Image::fromUrl(getEmoteLink(id, "4x"), 0.25)},
Tooltip{QString("%1<br>%2 7TV Emote<br>By: %3")
.arg(name.string, (isGlobal ? "Global" : "Channel"),
Expand Down

0 comments on commit 132b406

Please sign in to comment.