mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Merge pull request #929 from apa420/apa-move-turbo-badge
Moved turbo badge to vanity
This commit is contained in:
commit
7b51123dad
2 changed files with 8 additions and 8 deletions
|
@ -1123,13 +1123,6 @@ void TwitchMessageBuilder::appendTwitchBadges()
|
||||||
MessageElementFlag::BadgeChannelAuthority)
|
MessageElementFlag::BadgeChannelAuthority)
|
||||||
->setTooltip("Twitch Channel Moderator");
|
->setTooltip("Twitch Channel Moderator");
|
||||||
}
|
}
|
||||||
else if (badge == "turbo/1")
|
|
||||||
{
|
|
||||||
this->emplace<ImageElement>(
|
|
||||||
Image::fromPixmap(app->resources->twitch.turbo),
|
|
||||||
MessageElementFlag::BadgeGlobalAuthority)
|
|
||||||
->setTooltip("Twitch Turbo Subscriber");
|
|
||||||
}
|
|
||||||
else if (badge == "broadcaster/1")
|
else if (badge == "broadcaster/1")
|
||||||
{
|
{
|
||||||
this->emplace<ImageElement>(
|
this->emplace<ImageElement>(
|
||||||
|
@ -1137,6 +1130,13 @@ void TwitchMessageBuilder::appendTwitchBadges()
|
||||||
MessageElementFlag::BadgeChannelAuthority)
|
MessageElementFlag::BadgeChannelAuthority)
|
||||||
->setTooltip("Twitch Broadcaster");
|
->setTooltip("Twitch Broadcaster");
|
||||||
}
|
}
|
||||||
|
else if (badge == "turbo/1")
|
||||||
|
{
|
||||||
|
this->emplace<ImageElement>(
|
||||||
|
Image::fromPixmap(app->resources->twitch.turbo),
|
||||||
|
MessageElementFlag::BadgeVanity)
|
||||||
|
->setTooltip("Twitch Turbo Subscriber");
|
||||||
|
}
|
||||||
else if (badge == "premium/1")
|
else if (badge == "premium/1")
|
||||||
{
|
{
|
||||||
this->emplace<ImageElement>(
|
this->emplace<ImageElement>(
|
||||||
|
|
|
@ -230,7 +230,7 @@ void GeneralPage::initLayout(SettingsLayout &layout)
|
||||||
s.emojiSet);
|
s.emojiSet);
|
||||||
|
|
||||||
layout.addTitle("Badges");
|
layout.addTitle("Badges");
|
||||||
layout.addCheckbox("Show authority badges (staff, admin, turbo, etc)",
|
layout.addCheckbox("Show authority badges (staff, admin)",
|
||||||
getSettings()->showBadgesGlobalAuthority);
|
getSettings()->showBadgesGlobalAuthority);
|
||||||
layout.addCheckbox("Show channel badges (broadcaster, moderator)",
|
layout.addCheckbox("Show channel badges (broadcaster, moderator)",
|
||||||
getSettings()->showBadgesChannelAuthority);
|
getSettings()->showBadgesChannelAuthority);
|
||||||
|
|
Loading…
Reference in a new issue