From 9cd0696ed1c9bfeab8b4607dedfc3e01c4f5e129 Mon Sep 17 00:00:00 2001 From: JezerM Date: Thu, 24 Jun 2021 18:20:32 -0600 Subject: [PATCH] White background fixed --- web-greeter/globals.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/web-greeter/globals.py b/web-greeter/globals.py index 3814336..9480d68 100644 --- a/web-greeter/globals.py +++ b/web-greeter/globals.py @@ -49,6 +49,9 @@ from bridge import ( ThemeUtils, ) +from PyQt5.QtWidgets import QMainWindow +from PyQt5.QtGui import QColor + # Typing Helpers BridgeObj = Type[BridgeObject] @@ -69,6 +72,9 @@ class WebGreeter(App): self.theme_utils = ThemeUtils(self.greeter, self.config) self._web_container.bridge_objects = (self.greeter, self.greeter_config, self.theme_utils) + page = self._main_window.widget.centralWidget().page() + page.setBackgroundColor(QColor(0,0,0)) + self._web_container.initialize_bridge_objects() self._web_container.load_script(':/_greeter/js/bundle.js', 'Web Greeter Bundle') self.load_theme()