aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--internal/wizard.zsh24
1 files changed, 20 insertions, 4 deletions
diff --git a/internal/wizard.zsh b/internal/wizard.zsh
index 64695f1a..7b6de601 100644
--- a/internal/wizard.zsh
+++ b/internal/wizard.zsh
@@ -988,6 +988,15 @@ function ask_color() {
return 0
}
+function print_frame_marker() {
+ local label="(1) $color_name[1]."
+ local -i n='wizard_columns - 7'
+ local -i m=$((n - $#label))
+ print -P "${(l:$n:: :)}frame"
+ print -P "%B$label%b${(l:$m:: :)} |"
+ print -P "${(l:$n:: :)} v"
+}
+
function ask_ornaments_color() {
[[ $style != (rainbow|lean*) || $num_lines == 1 ]] && return
[[ $gap_char == ' ' && $left_frame == 0 && $right_frame == 0 ]] && return
@@ -995,10 +1004,17 @@ function ask_ornaments_color() {
[[ $gap_char != ' ' ]] && ornaments+=Connection
(( left_frame || right_frame )) && ornaments+=Frame
add_widget 0 flowing -c "%B${(j: & :)ornaments} Color%b"
- add_widget 0 print
- add_widget 1
- add_widget 0 print -P "%B(1) $color_name[1].%b"
- add_prompt color=1
+ if (( left_frame || right_frame )); then
+ add_widget 0 print_frame_marker
+ add_widget 3 print -P "%B(1) $color_name[1].%b"
+ add_prompt_n color=1
+ add_widget 0 print
+ add_widget 2
+ else
+ add_widget 1
+ add_widget 0 print -P "%B(1) $color_name[1].%b"
+ add_prompt color=1
+ fi
add_widget 0 print -P "%B(2) $color_name[2].%b"
add_prompt color=2
add_widget 0 print -P "%B(3) $color_name[3].%b"