Fixed code, things that fourtf asked for

This commit is contained in:
apa420 2018-07-04 13:50:26 +02:00 committed by fourtf
parent 4bf174376a
commit 31a38d19a7

View file

@ -229,11 +229,10 @@ MessagePtr TwitchMessageBuilder::build()
// Actually just text // Actually just text
QString linkString = this->matchLink(string); QString linkString = this->matchLink(string);
auto Boldness = FontStyle::ChatMedium;
if (string[0] == '@' && app->settings->usernameBold) { if (string[0] == '@' && app->settings->usernameBold) {
this->emplace<TextElement>(string, MessageElement::Text, textColor, Boldness = FontStyle::ChatMediumBold;
FontStyle::ChatMediumBold);
string = "";
} }
Link link; Link link;
@ -261,7 +260,8 @@ MessagePtr TwitchMessageBuilder::build()
textColor = MessageColor(MessageColor::Link); textColor = MessageColor(MessageColor::Link);
} }
this->emplace<TextElement>(string, MessageElement::Text, textColor) // this->emplace<TextElement>(string, MessageElement::Text, textColor,
Boldness) //
->setLink(link); ->setLink(link);
} else { // is emoji } else { // is emoji
this->emplace<EmoteElement>(emoteData, EmoteElement::EmojiAll); this->emplace<EmoteElement>(emoteData, EmoteElement::EmojiAll);