Boldness is now fontStyle

This commit is contained in:
apa420
2018-07-04 13:54:01 +02:00
committed by fourtf
parent 31a38d19a7
commit 4491bba5ec
@@ -229,10 +229,10 @@ MessagePtr TwitchMessageBuilder::build()
// Actually just text
QString linkString = this->matchLink(string);
auto Boldness = FontStyle::ChatMedium;
auto fontstyle = FontStyle::ChatMedium;
if (string[0] == '@' && app->settings->usernameBold) {
Boldness = FontStyle::ChatMediumBold;
fontstyle = FontStyle::ChatMediumBold;
}
Link link;
@@ -261,7 +261,7 @@ MessagePtr TwitchMessageBuilder::build()
}
this->emplace<TextElement>(string, MessageElement::Text, textColor,
Boldness) //
fontStyle) //
->setLink(link);
} else { // is emoji
this->emplace<EmoteElement>(emoteData, EmoteElement::EmojiAll);