1
0

allow override of QT_QUICK_CONTROLS_STYLE

This commit is contained in:
Sander van Grieken
2021-09-10 12:04:36 +02:00
parent ba7bcbfcbc
commit f8ce681f5e

View File

@@ -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