Add highlight color and show in mentions to automod messages (#5215)
This commit is contained in:
@@ -373,7 +373,19 @@ void MessageLayout::updateBuffer(QPixmap *buffer,
|
||||
else if (this->message_->flags.has(MessageFlag::AutoMod) ||
|
||||
this->message_->flags.has(MessageFlag::LowTrustUsers))
|
||||
{
|
||||
backgroundColor = QColor("#404040");
|
||||
if (ctx.preferences.enableAutomodHighlight &&
|
||||
(this->message_->flags.has(MessageFlag::AutoModOffendingMessage) ||
|
||||
this->message_->flags.has(
|
||||
MessageFlag::AutoModOffendingMessageHeader)))
|
||||
{
|
||||
backgroundColor = blendColors(
|
||||
backgroundColor,
|
||||
*ctx.colorProvider.color(ColorType::AutomodHighlight));
|
||||
}
|
||||
else
|
||||
{
|
||||
backgroundColor = QColor("#404040");
|
||||
}
|
||||
}
|
||||
else if (this->message_->flags.has(MessageFlag::Debug))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user