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
fi
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"
shell_config_set "$EDITABLE_CONFIG_FILE" GTK3_LIGHT_THEME "$GTK3_LIGHT"
shell_config_set "$EDITABLE_CONFIG_FILE" GTK3_DARK_THEME "$GTK3_DARK"
\ No newline at end of file
declare -A THEMES=(
["KV_LIGHT_THEME"]="$KV_LIGHT"
["KV_DARK_THEME"]="$KV_DARK"
["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