fixed scrollbar meme
This commit is contained in:
@@ -286,19 +286,16 @@ void Scrollbar::paintEvent(QPaintEvent *)
|
|||||||
|
|
||||||
if (!highlight.isNull())
|
if (!highlight.isNull())
|
||||||
{
|
{
|
||||||
if (highlight.isRedeemedHighlight() && !enableRedeemedHighlights)
|
if (!highlight.isRedeemedHighlight() || enableRedeemedHighlights)
|
||||||
{
|
{
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
QColor color = highlight.getColor();
|
QColor color = highlight.getColor();
|
||||||
color.setAlpha(255);
|
color.setAlpha(255);
|
||||||
|
|
||||||
switch (highlight.getStyle())
|
switch (highlight.getStyle())
|
||||||
{
|
{
|
||||||
case ScrollbarHighlight::Default: {
|
case ScrollbarHighlight::Default: {
|
||||||
painter.fillRect(w / 8 * 3, int(y), w / 4, highlightHeight,
|
painter.fillRect(w / 8 * 3, int(y), w / 4,
|
||||||
color);
|
highlightHeight, color);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -310,6 +307,7 @@ void Scrollbar::paintEvent(QPaintEvent *)
|
|||||||
case ScrollbarHighlight::None:;
|
case ScrollbarHighlight::None:;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
y += dY;
|
y += dY;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user