Add Basic Elevated Message support (#4016)
This commit is contained in:
@@ -310,8 +310,16 @@ void MessageLayout::updateBuffer(QPixmap *buffer, int /*messageIndex*/,
|
||||
}
|
||||
}();
|
||||
|
||||
if (this->message_->flags.has(MessageFlag::FirstMessage) &&
|
||||
getSettings()->enableFirstMessageHighlight.getValue())
|
||||
if (this->message_->flags.has(MessageFlag::ElevatedMessage) &&
|
||||
getSettings()->enableElevatedMessageHighlight.getValue())
|
||||
{
|
||||
backgroundColor = blendColors(backgroundColor,
|
||||
*ColorProvider::instance().color(
|
||||
ColorType::ElevatedMessageHighlight));
|
||||
}
|
||||
|
||||
else if (this->message_->flags.has(MessageFlag::FirstMessage) &&
|
||||
getSettings()->enableFirstMessageHighlight.getValue())
|
||||
{
|
||||
backgroundColor = blendColors(
|
||||
backgroundColor,
|
||||
|
||||
Reference in New Issue
Block a user