allow override of QT_QUICK_CONTROLS_STYLE
This commit is contained in:
@@ -88,7 +88,9 @@ class ElectrumGui(Logger):
|
|||||||
QGuiApplication.setDesktopFileName('electrum.desktop')
|
QGuiApplication.setDesktopFileName('electrum.desktop')
|
||||||
if hasattr(QtCore.Qt, "AA_EnableHighDpiScaling"):
|
if hasattr(QtCore.Qt, "AA_EnableHighDpiScaling"):
|
||||||
QtCore.QCoreApplication.setAttribute(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.gui_thread = threading.current_thread()
|
||||||
self.config = config
|
self.config = config
|
||||||
|
|||||||
Reference in New Issue
Block a user