1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-19 18:26:34 +01:00

WebView: Add support for changing default background color

BUG: 390316
This commit is contained in:
David Rosca 2018-02-24 18:00:53 +01:00
parent 49f48bdd1a
commit a89a9a8ddc
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8
5 changed files with 28 additions and 0 deletions

View File

@ -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));
}
});
});
}

View File

@ -345,3 +345,9 @@ QFrame[js-frame2="true"]
border-top: 0px;
background-color: #f3f3f3;
}
/*WebView*/
WebView
{
background: white;
}

View File

@ -274,3 +274,9 @@ QFrame[js-frame2="true"]
border-top: 0px;
background-color: #f3f3f3;
}
/*WebView*/
WebView
{
background: white;
}

View File

@ -349,3 +349,9 @@ QFrame[js-frame2="true"]
border-top: 0px;
background-color: #f3f3f3;
}
/*WebView*/
WebView
{
background: white;
}

View File

@ -436,3 +436,9 @@ QFrame[js-frame2="true"]
border-top: 0px;
background-color: #f3f3f3;
}
/*WebView*/
WebView
{
background: white;
}