diff --git a/resources/resources_autogenerated.qrc b/resources/resources_autogenerated.qrc index 96204e348..3b86592c1 100644 --- a/resources/resources_autogenerated.qrc +++ b/resources/resources_autogenerated.qrc @@ -74,5 +74,6 @@ twitch/subscriber.png twitch/turbo.png twitch/verified.png + twitch/vip.png - \ No newline at end of file + diff --git a/resources/twitch/vip.png b/resources/twitch/vip.png new file mode 100644 index 000000000..50518a1de Binary files /dev/null and b/resources/twitch/vip.png differ diff --git a/src/autogenerated/ResourcesAutogen.cpp b/src/autogenerated/ResourcesAutogen.cpp index 59f5fce70..d77d620d9 100644 --- a/src/autogenerated/ResourcesAutogen.cpp +++ b/src/autogenerated/ResourcesAutogen.cpp @@ -43,6 +43,7 @@ Resources2::Resources2() this->twitch.subscriber = QPixmap(":/twitch/subscriber.png"); this->twitch.turbo = QPixmap(":/twitch/turbo.png"); this->twitch.verified = QPixmap(":/twitch/verified.png"); + this->twitch.vip = QPixmap(":/twitch/vip.png"); } -} // namespace chatterino \ No newline at end of file +} // namespace chatterino diff --git a/src/autogenerated/ResourcesAutogen.hpp b/src/autogenerated/ResourcesAutogen.hpp index 1c8a0bce4..c865f4054 100644 --- a/src/autogenerated/ResourcesAutogen.hpp +++ b/src/autogenerated/ResourcesAutogen.hpp @@ -55,7 +55,8 @@ public: QPixmap subscriber; QPixmap turbo; QPixmap verified; + QPixmap vip; } twitch; }; -} // namespace chatterino \ No newline at end of file +} // namespace chatterino diff --git a/src/providers/twitch/TwitchMessageBuilder.cpp b/src/providers/twitch/TwitchMessageBuilder.cpp index b68eb8d8a..2392d6b1f 100644 --- a/src/providers/twitch/TwitchMessageBuilder.cpp +++ b/src/providers/twitch/TwitchMessageBuilder.cpp @@ -1082,6 +1082,13 @@ void TwitchMessageBuilder::appendTwitchBadges() MessageElementFlag::BadgeChannelAuthority) ->setTooltip("Twitch Channel Moderator"); } + else if (badge == "vip/1") + { + this->emplace( + Image::fromPixmap(app->resources->twitch.vip), + MessageElementFlag::BadgeChannelAuthority) + ->setTooltip("VIP"); + } else if (badge == "broadcaster/1") { this->emplace(