Project 'ximper/ximper-unified-theme-switcher' was moved to 'ximperlinux/ximper-unified-theme-switcher'. Please update any links and bookmarks that may still have the old path.
Commit 9b538554 authored by Roman Alifanov's avatar Roman Alifanov

now settings are applied in the "for" loop

parent daf51c9b
...@@ -105,7 +105,14 @@ if [[ $? == 252 || $? == 1 ]]; then ...@@ -105,7 +105,14 @@ if [[ $? == 252 || $? == 1 ]]; then
fi fi
IFS='|' read -r KV_LIGHT KV_DARK GTK3_LIGHT GTK3_DARK <<< "$NEW_SETTINGS" IFS='|' read -r KV_LIGHT KV_DARK GTK3_LIGHT GTK3_DARK <<< "$NEW_SETTINGS"
shell_config_set "$EDITABLE_CONFIG_FILE" KV_LIGHT_THEME "$KV_LIGHT"
shell_config_set "$EDITABLE_CONFIG_FILE" KV_DARK_THEME "$KV_DARK" declare -A THEMES=(
shell_config_set "$EDITABLE_CONFIG_FILE" GTK3_LIGHT_THEME "$GTK3_LIGHT" ["KV_LIGHT_THEME"]="$KV_LIGHT"
shell_config_set "$EDITABLE_CONFIG_FILE" GTK3_DARK_THEME "$GTK3_DARK" ["KV_DARK_THEME"]="$KV_DARK"
\ No newline at end of file ["GTK3_LIGHT_THEME"]="$GTK3_LIGHT"
["GTK3_DARK_THEME"]="$GTK3_DARK"
)
for THEME in "${!THEMES[@]}"; do
shell_config_set "$EDITABLE_CONFIG_FILE" "$THEME" "${THEMES[$THEME]}"
done
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment