WebView: Add support for changing default background color

BUG: 390316
remotes/origin/Falkon/3.0
David Rosca 8 years ago
parent 49f48bdd1a
commit a89a9a8ddc
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8
  1. 4
      src/lib/webengine/webview.cpp
  2. 6
      themes/chrome/main.css
  3. 6
      themes/linux/main.css
  4. 6
      themes/mac/main.css
  5. 6
      themes/windows/main.css

@ -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…
Cancel
Save