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),
|
Image::fromPixmap(getApp()->resources->twitch.automod),
|
||||||
MessageElementFlag::BadgeChannelAuthority)
|
MessageElementFlag::BadgeChannelAuthority)
|
||||||
->setTooltip("AutoMod");
|
->setTooltip("AutoMod");
|
||||||
|
builder.emplace<TextElement>("AutoMod:", MessageElementFlag::BoldUsername,
|
||||||
|
MessageColor(QColor("blue")),
|
||||||
|
FontStyle::ChatMediumBold);
|
||||||
builder.emplace<TextElement>(
|
builder.emplace<TextElement>(
|
||||||
"AutoMod:", MessageElementFlag::NonBoldUsername,
|
"AutoMod:", MessageElementFlag::NonBoldUsername,
|
||||||
MessageColor(QColor("blue")));
|
MessageColor(QColor("blue")));
|
||||||
|
@ -63,6 +66,11 @@ std::pair<MessagePtr, MessagePtr> makeAutomodMessage(
|
||||||
builder.emplace<TimestampElement>();
|
builder.emplace<TimestampElement>();
|
||||||
builder.message().flags.set(MessageFlag::PubSub);
|
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
|
builder
|
||||||
.emplace<TextElement>(action.target.name + ":",
|
.emplace<TextElement>(action.target.name + ":",
|
||||||
MessageElementFlag::NonBoldUsername,
|
MessageElementFlag::NonBoldUsername,
|
||||||
|
|
Loading…
Reference in a new issue