Bold @username
This commit is contained in:
@@ -230,6 +230,12 @@ MessagePtr TwitchMessageBuilder::build()
|
|||||||
// Actually just text
|
// Actually just text
|
||||||
QString linkString = this->matchLink(string);
|
QString linkString = this->matchLink(string);
|
||||||
|
|
||||||
|
if (string[0] == '@' && app->settings->usernameBold) {
|
||||||
|
this->emplace<TextElement>(string, MessageElement::Text, textColor,
|
||||||
|
FontStyle::ChatMediumBold);
|
||||||
|
string = "";
|
||||||
|
}
|
||||||
|
|
||||||
Link link;
|
Link link;
|
||||||
|
|
||||||
if (linkString.isEmpty()) {
|
if (linkString.isEmpty()) {
|
||||||
@@ -509,6 +515,8 @@ void TwitchMessageBuilder::parseHighlights()
|
|||||||
this->message->flags |= Message::Highlighted;
|
this->message->flags |= Message::Highlighted;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
for (const HighlightPhrase &highlight : activeHighlights) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void TwitchMessageBuilder::appendTwitchEmote(const Communi::IrcMessage *ircMessage,
|
void TwitchMessageBuilder::appendTwitchEmote(const Communi::IrcMessage *ircMessage,
|
||||||
|
|||||||
@@ -108,6 +108,8 @@ public:
|
|||||||
|
|
||||||
BoolSetting inlineWhispers = {"/whispers/enableInlineWhispers", true};
|
BoolSetting inlineWhispers = {"/whispers/enableInlineWhispers", true};
|
||||||
|
|
||||||
|
BoolSetting usernameBold = {"/appearence/messages/boldUsernames", false};
|
||||||
|
|
||||||
/// External tools
|
/// External tools
|
||||||
// Streamlink
|
// Streamlink
|
||||||
BoolSetting streamlinkUseCustomPath = {"/external/streamlink/useCustomPath", false};
|
BoolSetting streamlinkUseCustomPath = {"/external/streamlink/useCustomPath", false};
|
||||||
|
|||||||
@@ -24,6 +24,7 @@
|
|||||||
#define PLAY_SOUND "Play sound when your name is mentioned"
|
#define PLAY_SOUND "Play sound when your name is mentioned"
|
||||||
#define FLASH_TASKBAR "Flash taskbar when your name is mentioned"
|
#define FLASH_TASKBAR "Flash taskbar when your name is mentioned"
|
||||||
#define ALWAYS_PLAY "Always play highlight sound (Even if Chatterino is focused)"
|
#define ALWAYS_PLAY "Always play highlight sound (Even if Chatterino is focused)"
|
||||||
|
#define USERNAME_BOLD "Make @username bold"
|
||||||
|
|
||||||
namespace chatterino {
|
namespace chatterino {
|
||||||
|
|
||||||
@@ -104,6 +105,7 @@ HighlightingPage::HighlightingPage()
|
|||||||
}
|
}
|
||||||
|
|
||||||
layout.append(createCheckBox(ALWAYS_PLAY, app->settings->highlightAlwaysPlaySound));
|
layout.append(createCheckBox(ALWAYS_PLAY, app->settings->highlightAlwaysPlaySound));
|
||||||
|
layout.append(createCheckBox(USERNAME_BOLD, app->settings->usernameBold));
|
||||||
}
|
}
|
||||||
|
|
||||||
// ---- misc
|
// ---- misc
|
||||||
|
|||||||
Reference in New Issue
Block a user