Changing default themes for the ones available in Qt6
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Adsooi 2023-05-25 12:15:35 +02:00
parent 6fa0aea0e5
commit 62e70885e0
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160

View file

@ -52,13 +52,13 @@ config.init()
def get_linux_theme(): def get_linux_theme():
des = { des = {
"KDE": "default", "KDE": "Fusion",
"gnome": "default", "gnome": "Basic",
"lxqt": "fusion", "lxqt": "Fusion",
"mate": "fusion", "mate": "Fusion",
} }
if "XDG_SESSION_DESKTOP" in environ: if "XDG_SESSION_DESKTOP" in environ:
return des[environ["XDG_SESSION_DESKTOP"]] if environ["XDG_SESSION_DESKTOP"] in des else "fusion" return des[environ["XDG_SESSION_DESKTOP"]] if environ["XDG_SESSION_DESKTOP"] in des else "Fusion"
else: else:
# Android # Android
return "Material" return "Material"
@ -69,9 +69,9 @@ def run():
environ["QT_QUICK_CONTROLS_STYLE"] = { environ["QT_QUICK_CONTROLS_STYLE"] = {
"linux": get_linux_theme(), "linux": get_linux_theme(),
"freebsd": get_linux_theme(), "freebsd": get_linux_theme(),
"win32": "universal" if os_release == "10" else "fusion", "win32": "Universal" if os_release == "10" else "Fusion",
"cygwin": "fusion", "cygwin": "Fusion",
"darwin": "default" "darwin": "Default"
}[platform] }[platform]
dep_time = time() dep_time = time()