diff --git a/src/lib/webengine/webpage.cpp b/src/lib/webengine/webpage.cpp --- a/src/lib/webengine/webpage.cpp +++ b/src/lib/webengine/webpage.cpp @@ -83,6 +83,8 @@ QWebChannel *channel = new QWebChannel(this); ExternalJsObject::setupWebChannel(channel, this); setWebChannel(channel, SafeJsWorld); + // Prevents white flashes. + setBackgroundColor(Qt::transparent); connect(this, &QWebEnginePage::loadProgress, this, &WebPage::progress); connect(this, &QWebEnginePage::loadFinished, this, &WebPage::finished); diff --git a/themes/chrome/main.css b/themes/chrome/main.css --- a/themes/chrome/main.css +++ b/themes/chrome/main.css @@ -345,9 +345,3 @@ border-top: 0px; background-color: #f3f3f3; } - -/*WebView*/ -WebView -{ - background: white; -} diff --git a/themes/linux/main.css b/themes/linux/main.css --- a/themes/linux/main.css +++ b/themes/linux/main.css @@ -278,9 +278,3 @@ border-top: 0px; background-color: #f3f3f3; } - -/*WebView*/ -WebView -{ - background: white; -} diff --git a/themes/mac/main.css b/themes/mac/main.css --- a/themes/mac/main.css +++ b/themes/mac/main.css @@ -349,9 +349,3 @@ border-top: 0px; background-color: #f3f3f3; } - -/*WebView*/ -WebView -{ - background: white; -} diff --git a/themes/windows/main.css b/themes/windows/main.css --- a/themes/windows/main.css +++ b/themes/windows/main.css @@ -436,9 +436,3 @@ border-top: 0px; background-color: #f3f3f3; } - -/*WebView*/ -WebView -{ - background: white; -}