diff --git a/src/singletons/emotemanager.cpp b/src/singletons/emotemanager.cpp index ddbbcf6ea..84ae75add 100644 --- a/src/singletons/emotemanager.cpp +++ b/src/singletons/emotemanager.cpp @@ -542,14 +542,17 @@ void EmoteManager::loadFFZEmotes() // emoteName is used for giving a name to the emote in case it doesn't exist util::EmoteData EmoteManager::getTwitchEmoteById(long id, const QString &emoteName) { - return _twitchEmoteFromCache.getOrAdd(id, [this, &emoteName, &id] { + QString _emoteName = emoteName; + _emoteName.replace("<", "<"); + + return _twitchEmoteFromCache.getOrAdd(id, [this, &emoteName, &_emoteName, &id] { util::EmoteData newEmoteData; newEmoteData.image1x = new LazyLoadedImage(GetTwitchEmoteLink(id, "1.0"), 1, emoteName, - emoteName + "
Twitch Emote 1x"); + _emoteName + "
Twitch Emote 1x"); newEmoteData.image2x = new LazyLoadedImage(GetTwitchEmoteLink(id, "2.0"), .5, emoteName, - emoteName + "
Twitch Emote 2x"); + _emoteName + "
Twitch Emote 2x"); newEmoteData.image3x = new LazyLoadedImage(GetTwitchEmoteLink(id, "3.0"), .25, emoteName, - emoteName + "
Twitch Emote 3x"); + _emoteName + "
Twitch Emote 3x"); return newEmoteData; }); diff --git a/src/widgets/tooltipwidget.cpp b/src/widgets/tooltipwidget.cpp index cdb41ec31..5d6466ef6 100644 --- a/src/widgets/tooltipwidget.cpp +++ b/src/widgets/tooltipwidget.cpp @@ -19,6 +19,7 @@ TooltipWidget::TooltipWidget(BaseWidget *parent) palette.setColor(QPalette::WindowText, white); palette.setColor(QPalette::Background, black); this->setPalette(palette); + this->displayText->setStyleSheet("color: #ffffff"); this->setWindowOpacity(0.8); this->setFont(singletons::FontManager::getInstance().getFont(singletons::FontManager::Type::MediumSmall, this->getDpiMultiplier())); @@ -27,6 +28,7 @@ TooltipWidget::TooltipWidget(BaseWidget *parent) this->setWindowFlags(Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint); displayText->setAlignment(Qt::AlignHCenter); + displayText->setText("lmao xD"); auto layout = new QVBoxLayout(); layout->setContentsMargins(10, 5, 10, 5); layout->addWidget(displayText);