mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 18:56:34 +01:00
WebScrollBar: Add workaround for Breeze style
This commit is contained in:
parent
c6a7935a67
commit
534eb14432
@ -86,6 +86,6 @@ void WebScrollBar::performScroll()
|
|||||||
void WebScrollBar::paintEvent(QPaintEvent *ev)
|
void WebScrollBar::paintEvent(QPaintEvent *ev)
|
||||||
{
|
{
|
||||||
QPainter painter(this);
|
QPainter painter(this);
|
||||||
painter.fillRect(ev->rect(), m_view->page()->backgroundColor());
|
painter.fillRect(ev->rect(), palette().background());
|
||||||
QScrollBar::paintEvent(ev);
|
QScrollBar::paintEvent(ev);
|
||||||
}
|
}
|
||||||
|
@ -65,7 +65,11 @@ private:
|
|||||||
option.rect = rect();
|
option.rect = rect();
|
||||||
|
|
||||||
QPainter p(this);
|
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;
|
WebView *m_view;
|
||||||
|
Loading…
Reference in New Issue
Block a user