mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +01:00
WebView: Add support for changing default background color
BUG: 390316
This commit is contained in:
parent
49f48bdd1a
commit
a89a9a8ddc
|
@ -49,6 +49,7 @@
|
|||
#include <QScrollBar>
|
||||
#include <QPrintDialog>
|
||||
#include <QPrinter>
|
||||
#include <QQuickWidget>
|
||||
|
||||
bool WebView::s_forceContextMenuOnMouseRelease = false;
|
||||
|
||||
|
@ -86,6 +87,9 @@ WebView::WebView(QWidget* parent)
|
|||
return;
|
||||
}
|
||||
m_rwhvqt->installEventFilter(this);
|
||||
if (QQuickWidget *w = qobject_cast<QQuickWidget*>(m_rwhvqt)) {
|
||||
w->setClearColor(palette().color(QPalette::Window));
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
@ -345,3 +345,9 @@ QFrame[js-frame2="true"]
|
|||
border-top: 0px;
|
||||
background-color: #f3f3f3;
|
||||
}
|
||||
|
||||
/*WebView*/
|
||||
WebView
|
||||
{
|
||||
background: white;
|
||||
}
|
||||
|
|
|
@ -274,3 +274,9 @@ QFrame[js-frame2="true"]
|
|||
border-top: 0px;
|
||||
background-color: #f3f3f3;
|
||||
}
|
||||
|
||||
/*WebView*/
|
||||
WebView
|
||||
{
|
||||
background: white;
|
||||
}
|
||||
|
|
|
@ -349,3 +349,9 @@ QFrame[js-frame2="true"]
|
|||
border-top: 0px;
|
||||
background-color: #f3f3f3;
|
||||
}
|
||||
|
||||
/*WebView*/
|
||||
WebView
|
||||
{
|
||||
background: white;
|
||||
}
|
||||
|
|
|
@ -436,3 +436,9 @@ QFrame[js-frame2="true"]
|
|||
border-top: 0px;
|
||||
background-color: #f3f3f3;
|
||||
}
|
||||
|
||||
/*WebView*/
|
||||
WebView
|
||||
{
|
||||
background: white;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user