Browse Source

allow override of QT_QUICK_CONTROLS_STYLE

patch-4
Sander van Grieken 3 years ago
parent
commit
f8ce681f5e
  1. 4
      electrum/gui/qml/__init__.py

4
electrum/gui/qml/__init__.py

@ -88,7 +88,9 @@ class ElectrumGui(Logger):
QGuiApplication.setDesktopFileName('electrum.desktop')
if hasattr(QtCore.Qt, "AA_EnableHighDpiScaling"):
QtCore.QCoreApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling);
os.environ["QT_QUICK_CONTROLS_STYLE"] = "Material"
if not "QT_QUICK_CONTROLS_STYLE" in os.environ:
os.environ["QT_QUICK_CONTROLS_STYLE"] = "Material"
self.gui_thread = threading.current_thread()
self.config = config

Loading…
Cancel
Save