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,28 +286,26 @@ void Scrollbar::paintEvent(QPaintEvent *)
|
|||
|
||||
if (!highlight.isNull())
|
||||
{
|
||||
if (highlight.isRedeemedHighlight() && !enableRedeemedHighlights)
|
||||
if (!highlight.isRedeemedHighlight() || enableRedeemedHighlights)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
QColor color = highlight.getColor();
|
||||
color.setAlpha(255);
|
||||
|
||||
QColor color = highlight.getColor();
|
||||
color.setAlpha(255);
|
||||
switch (highlight.getStyle())
|
||||
{
|
||||
case ScrollbarHighlight::Default: {
|
||||
painter.fillRect(w / 8 * 3, int(y), w / 4,
|
||||
highlightHeight, color);
|
||||
}
|
||||
break;
|
||||
|
||||
switch (highlight.getStyle())
|
||||
{
|
||||
case ScrollbarHighlight::Default: {
|
||||
painter.fillRect(w / 8 * 3, int(y), w / 4, highlightHeight,
|
||||
color);
|
||||
case ScrollbarHighlight::Line: {
|
||||
painter.fillRect(0, int(y), w, 1, color);
|
||||
}
|
||||
break;
|
||||
|
||||
case ScrollbarHighlight::None:;
|
||||
}
|
||||
break;
|
||||
|
||||
case ScrollbarHighlight::Line: {
|
||||
painter.fillRect(0, int(y), w, 1, color);
|
||||
}
|
||||
break;
|
||||
|
||||
case ScrollbarHighlight::None:;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue