Fixed code, things that fourtf asked for
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user