mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Fixed code, things that fourtf asked for
This commit is contained in:
parent
4bf174376a
commit
31a38d19a7
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue