Prechádzať zdrojové kódy

Use a black background.

Resizing the KonvergoWindow shows the #111 HTML body above a #000 application window. Go black.

# Conflicts:
#	src/ui/KonvergoWindow.cpp
Matt Seeley 7 rokov pred
rodič
commit
e503e30377
2 zmenil súbory, kde vykonal 2 pridanie a 5 odobranie
  1. 2 2
      src/ui/KonvergoWindow.cpp
  2. 0 3
      src/ui/webview.qml

+ 2 - 2
src/ui/KonvergoWindow.cpp

@@ -68,7 +68,7 @@ KonvergoWindow::KonvergoWindow(QWindow* parent) :
   // will be visible on top of the video as part of the Konvergo window.
   setColor(QColor("transparent"));
 #else
-  setColor(QColor("#111111"));
+  setColor(QColor("#000000"));
 #endif
 
   QRect loadedGeo = loadGeometry();
@@ -345,7 +345,7 @@ void KonvergoWindow::playerWindowVisible(bool visible)
   // adjust webengineview transparecy depending on player visibility
   QQuickItem *web = findChild<QQuickItem *>("web");
   if (web)
-    web->setProperty("backgroundColor", visible ? "transparent" : "#111111");
+    web->setProperty("backgroundColor", visible ? "transparent" : "#000000");
 
 #ifdef Q_OS_MAC
   // On OSX, initializing VideoTooolbox (hardware decoder API) will mysteriously

+ 0 - 3
src/ui/webview.qml

@@ -151,9 +151,6 @@ KonvergoWindow
 
     Component.onCompleted:
     {
-      // set the transparency
-      // (setting this here as a UserAgent workaround at least for qt5.5)
-      backgroundColor : "#111111"
       forceActiveFocus()
       mainWindow.reloadWebClient.connect(reload)
     }