Faster and smoother theme changes

This commit is contained in:
David Heinemeier Hansson committed 2026-05-17 17:03:28 +02:00
1 parent 4e50960c54
commit 8ad2f75758
4 files changed
+120 -30

No files matched your search

@@ -792,11 +792,17 @@ ShellRoot {
var shellRaw = ""
try { colorsRaw = Qt.atob(String(colorsB64 || "")) } catch (e) { colorsRaw = "" }
try { shellRaw = Qt.atob(String(shellB64 || "")) } catch (e2) { shellRaw = "" }
NoctaliaCommons.Color.resumeThemeReloads()
NoctaliaCommons.Color.loadColors(colorsRaw)
NoctaliaCommons.Color.loadShell(shellRaw)
return "ok"
}
function suspendThemeReloads(): string {
NoctaliaCommons.Color.suspendThemeReloads()
return "ok"
}
function reloadTheme(): string {
NoctaliaCommons.Color.reloadTheme()
return "ok"