ags: clean up and export handleStyles to command line

This commit is contained in:
MoetaYuko
2024-05-29 16:59:02 +08:00
parent ef61e6ac32
commit 70a5304027
4 changed files with 14 additions and 28 deletions
@@ -150,9 +150,8 @@ apply_gtk() { # Using gradience-cli
}
apply_ags() {
sass -I "$STATE_DIR/scss" -I "$CONFIG_DIR/scss/fallback" "$CONFIG_DIR"/scss/main.scss "$CACHE_DIR"/user/generated/style.css
ags run-js "handleStyles(false);"
ags run-js 'openColorScheme.value = true; Utils.timeout(2000, () => openColorScheme.value = false);'
ags run-js "App.resetCss(); App.applyCss('${CACHE_DIR}/user/generated/style.css');"
}
if [[ "$1" = "--bad-apple" ]]; then