Fix 'First Message' scrollbar highlights not being disabled (#3325)

Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
Ryan
2021-10-30 07:24:38 -04:00
committed by GitHub
parent 8ead95b959
commit e24dffa961
5 changed files with 22 additions and 3 deletions
+8
View File
@@ -251,6 +251,8 @@ void Scrollbar::paintEvent(QPaintEvent *)
painter.fillRect(rect(), this->theme->scrollbars.background);
bool enableRedeemedHighlights = getSettings()->enableRedeemedHighlight;
bool enableFirstMessageHighlights =
getSettings()->enableFirstMessageHighlight;
// painter.fillRect(QRect(xOffset, 0, width(), this->buttonHeight),
// this->themeManager->ScrollbarArrow);
@@ -301,6 +303,12 @@ void Scrollbar::paintEvent(QPaintEvent *)
continue;
}
if (highlight.isFirstMessageHighlight() &&
!enableFirstMessageHighlights)
{
continue;
}
QColor color = highlight.getColor();
color.setAlpha(255);