generate styles to cache folder when switching themes

This commit is contained in:
end-4
2024-02-26 15:19:21 +07:00
parent 4d6eca3ee8
commit 61043a2052
@@ -188,9 +188,9 @@ apply_gtk() { # Using gradience-cli
}
apply_ags() {
sass "$HOME"/.config/ags/scss/main.scss "$HOME"/.config/ags/style.css
sass "$HOME"/.config/ags/scss/main.scss "$HOME"/.cache/ags/user/generated/style.css
ags run-js 'openColorScheme.value = true; Utils.timeout(2000, () => openColorScheme.value = false);'
ags run-js "App.resetCss(); App.applyCss('${HOME}/.config/ags/style.css');"
ags run-js "App.resetCss(); App.applyCss('${HOME}/.cache/ags/user/generated/style.css');"
}
apply_ags &