Added image to streamermode user popup (#1995)

* Added image to streamermode user popup

* Update CHANGELOG.md

* swapparoo

Co-authored-by: fourtf <tf.four@gmail.com>
This commit is contained in:
apa420 2020-09-27 00:22:06 +02:00 committed by GitHub
parent b4ef4fe54d
commit 3450b1cc9d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 9 additions and 1 deletions

View file

@ -8,6 +8,7 @@
- Minor: Disable checking for updates on unsupported platforms (#1874)
- Minor: User popup will now automatically display messages as they are received
- Minor: Changed the English in two rate-limited system messages (#1878)
- Minor: Added image for streamer mode in the user popup icon.
- Minor: Added vip and unvip buttons.
- Bugfix: Fix bug preventing users from setting the highlight color of the second entry in the "User" highlights tab (#1898)
- Bugfix: Fix bug where the "check user follow state" event could trigger a network request requesting the user to follow or unfollow a user. By itself its quite harmless as it just repeats to Twitch the same follow state we had, so no follows should have been lost by this but it meant there was a rogue network request that was fired that could cause a crash (#1906)

View file

@ -80,6 +80,7 @@
<file>split/move.png</file>
<file>split/right.png</file>
<file>split/up.png</file>
<file>streamerMode.png</file>
<file>switcher/plus.svg</file>
<file>switcher/switch.svg</file>
<file>tlds.txt</file>

BIN
resources/streamerMode.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

View file

@ -41,6 +41,7 @@ Resources2::Resources2()
this->split.move = QPixmap(":/split/move.png");
this->split.right = QPixmap(":/split/right.png");
this->split.up = QPixmap(":/split/up.png");
this->streamerMode = QPixmap(":/streamerMode.png");
this->twitch.admin = QPixmap(":/twitch/admin.png");
this->twitch.automod = QPixmap(":/twitch/automod.png");
this->twitch.broadcaster = QPixmap(":/twitch/broadcaster.png");

View file

@ -55,6 +55,7 @@ public:
QPixmap right;
QPixmap up;
} split;
QPixmap streamerMode;
struct {
QPixmap admin;
QPixmap automod;

View file

@ -577,7 +577,11 @@ void UserInfoPopup::updateUserData()
[] {
// failure
});
if (!isInStreamerMode())
if (isInStreamerMode())
{
this->ui_.avatarButton->setPixmap(getResources().streamerMode);
}
else
{
this->loadAvatar(user.profileImageUrl);
}