Add Basic Elevated Message support (#4016)
This commit is contained in:
@@ -257,6 +257,8 @@ void Scrollbar::paintEvent(QPaintEvent *)
|
||||
bool enableRedeemedHighlights = getSettings()->enableRedeemedHighlight;
|
||||
bool enableFirstMessageHighlights =
|
||||
getSettings()->enableFirstMessageHighlight;
|
||||
bool enableElevatedMessageHighlights =
|
||||
getSettings()->enableElevatedMessageHighlight;
|
||||
|
||||
// painter.fillRect(QRect(xOffset, 0, width(), this->buttonHeight),
|
||||
// this->themeManager->ScrollbarArrow);
|
||||
@@ -313,6 +315,12 @@ void Scrollbar::paintEvent(QPaintEvent *)
|
||||
continue;
|
||||
}
|
||||
|
||||
if (highlight.isElevatedMessageHighlight() &&
|
||||
!enableElevatedMessageHighlights)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
QColor color = highlight.getColor();
|
||||
color.setAlpha(255);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user