Fix theme switcher preload scrim race

This commit is contained in:
Ryan Hughes
2026-06-02 22:38:31 -04:00
parent d52b69c49b
commit e8a8fcf183
4 changed files with 27 additions and 1 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/bin/bash
source "$(dirname "$0")/base-test.sh"
run_node_test <<'JS'
const fs = require('fs')
const backgroundQml = fs.readFileSync(path.join(root, 'shell/plugins/background/Background.qml'), 'utf8')
assert(
/theme=\$\(omarchy-theme-switcher\); \[\[ -n \$theme \]\] && omarchy-theme-set \\"\$theme\\" >\/dev\/null 2>&1 &/.test(backgroundQml),
'background theme switcher starts theme application asynchronously after selection'
)
JS