Bold @username

This commit is contained in:
apa420
2018-07-04 12:22:01 +02:00
committed by fourtf
parent acf77beff2
commit 318e8b6234
3 changed files with 12 additions and 0 deletions
@@ -230,6 +230,12 @@ MessagePtr TwitchMessageBuilder::build()
// Actually just text
QString linkString = this->matchLink(string);
if (string[0] == '@' && app->settings->usernameBold) {
this->emplace<TextElement>(string, MessageElement::Text, textColor,
FontStyle::ChatMediumBold);
string = "";
}
Link link;
if (linkString.isEmpty()) {
@@ -509,6 +515,8 @@ void TwitchMessageBuilder::parseHighlights()
this->message->flags |= Message::Highlighted;
}
}
for (const HighlightPhrase &highlight : activeHighlights) {
}
}
void TwitchMessageBuilder::appendTwitchEmote(const Communi::IrcMessage *ircMessage,