Refractor dark mode + styles handling (#562)

This commit is contained in:
end-4
2024-05-30 17:54:24 +07:00
committed by GitHub
7 changed files with 28 additions and 44 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