Simplify as we don't need to do any watching

Just rely on explicit applyTheme/reloadTheme
This commit is contained in:
David Heinemeier Hansson committed 2026-05-19 20:54:20 +02:00
1 parent 695d2c6e7c
commit bad94996ac
4 files changed
+10 -64

No files matched your search

+3 -4
View File
@@ -74,13 +74,12 @@ Item {
function applyPendingTheme() {
if (pendingThemeVersion !== backgroundVersion) return
NoctaliaCommons.Color.resumeThemeReloads()
NoctaliaCommons.Color.loadColors(pendingColorsRaw)
NoctaliaCommons.Color.loadShell(pendingShellRaw)
// Style watches the same shell.toml for [font] and [bar] sizing; push
// synchronously so the type scale flips with the background instead of
// waiting on inotify debounce.
// Push style tokens synchronously so the type scale flips with the
// background reveal instead of waiting for a separate reload path.
NoctaliaCommons.Style.loadShell(pendingShellRaw)
NoctaliaCommons.Style.scheduleRefresh()
pendingThemeVersion = -1
pendingColorsRaw = ""
pendingShellRaw = ""