mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
fixed scrollbar meme
This commit is contained in:
parent
097f4ccb3a
commit
beda9e555f
1 changed files with 16 additions and 18 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue