Bold @username
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user