1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

WebScrollBar: Add workaround for Breeze style

This commit is contained in:
David Rosca 2017-01-31 22:06:48 +01:00
parent c6a7935a67
commit 534eb14432
2 changed files with 6 additions and 2 deletions

View File

@ -86,6 +86,6 @@ void WebScrollBar::performScroll()
void WebScrollBar::paintEvent(QPaintEvent *ev)
{
QPainter painter(this);
painter.fillRect(ev->rect(), m_view->page()->backgroundColor());
painter.fillRect(ev->rect(), palette().background());
QScrollBar::paintEvent(ev);
}

View File

@ -65,7 +65,11 @@ private:
option.rect = rect();
QPainter p(this);
style()->drawPrimitive(QStyle::PE_PanelScrollAreaCorner, &option, &p, this);
if (mApp->styleName() == QL1S("breeze")) {
p.fillRect(ev->rect(), option.palette.background());
} else {
style()->drawPrimitive(QStyle::PE_PanelScrollAreaCorner, &option, &p, this);
}
}
WebView *m_view;