Browse Source

White background fixed

sisyphus
JezerM 4 years ago
parent
commit
9cd0696ed1
  1. 6
      web-greeter/globals.py

6
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()

Loading…
Cancel
Save