Changing default themes for the ones available in Qt6
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
6fa0aea0e5
commit
62e70885e0
1 changed files with 8 additions and 8 deletions
|
@ -52,13 +52,13 @@ config.init()
|
|||
|
||||
def get_linux_theme():
|
||||
des = {
|
||||
"KDE": "default",
|
||||
"gnome": "default",
|
||||
"lxqt": "fusion",
|
||||
"mate": "fusion",
|
||||
"KDE": "Fusion",
|
||||
"gnome": "Basic",
|
||||
"lxqt": "Fusion",
|
||||
"mate": "Fusion",
|
||||
}
|
||||
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:
|
||||
# Android
|
||||
return "Material"
|
||||
|
@ -69,9 +69,9 @@ def run():
|
|||
environ["QT_QUICK_CONTROLS_STYLE"] = {
|
||||
"linux": get_linux_theme(),
|
||||
"freebsd": get_linux_theme(),
|
||||
"win32": "universal" if os_release == "10" else "fusion",
|
||||
"cygwin": "fusion",
|
||||
"darwin": "default"
|
||||
"win32": "Universal" if os_release == "10" else "Fusion",
|
||||
"cygwin": "Fusion",
|
||||
"darwin": "Default"
|
||||
}[platform]
|
||||
|
||||
dep_time = time()
|
||||
|
|
Loading…
Reference in a new issue