mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
If bold usernames was ticked it wouldn't show who the automod caught
This commit is contained in:
parent
be881f17f4
commit
ee0b115484
1 changed files with 8 additions and 0 deletions
|
@ -35,6 +35,9 @@ std::pair<MessagePtr, MessagePtr> makeAutomodMessage(
|
|||
Image::fromPixmap(getApp()->resources->twitch.automod),
|
||||
MessageElementFlag::BadgeChannelAuthority)
|
||||
->setTooltip("AutoMod");
|
||||
builder.emplace<TextElement>("AutoMod:", MessageElementFlag::BoldUsername,
|
||||
MessageColor(QColor("blue")),
|
||||
FontStyle::ChatMediumBold);
|
||||
builder.emplace<TextElement>(
|
||||
"AutoMod:", MessageElementFlag::NonBoldUsername,
|
||||
MessageColor(QColor("blue")));
|
||||
|
@ -63,6 +66,11 @@ std::pair<MessagePtr, MessagePtr> makeAutomodMessage(
|
|||
builder.emplace<TimestampElement>();
|
||||
builder.message().flags.set(MessageFlag::PubSub);
|
||||
|
||||
builder
|
||||
.emplace<TextElement>(
|
||||
action.target.name + ":", MessageElementFlag::BoldUsername,
|
||||
MessageColor(QColor("red")), FontStyle::ChatMediumBold)
|
||||
->setLink({Link::UserInfo, action.target.name});
|
||||
builder
|
||||
.emplace<TextElement>(action.target.name + ":",
|
||||
MessageElementFlag::NonBoldUsername,
|
||||
|
|
Loading…
Reference in a new issue