Work on black vs brblack

This commit is contained in:
Ilan Cosman 2021-12-25 10:07:31 -08:00
parent 2a26fe2002
commit f24de1efaa
2 changed files with 58 additions and 1 deletions

View File

@ -0,0 +1,57 @@
function black_or_brblack
_tide_title 'Which of these squares do you see?'
set -l list black brblack
for arg in $list
set_color -b $arg
string repeat --no-newline --count 7 ' '
set_color normal
string repeat --no-newline --count 2 ' '
end
echo
for arg in $list
set_color -b $arg
string repeat --no-newline --count 3 ' '
set_color --bold
echo -ns (contains --index $arg $list)
string repeat --no-newline --count 3 ' '
set_color normal
string repeat --no-newline --count 2 ' '
end
echo
for arg in $list
set_color -b $arg
string repeat --no-newline --count 7 ' '
set_color normal
string repeat --no-newline --count 2 ' '
end
echo \n
_tide_option 1 "I only see the square around 1"
echo
_tide_option 2 "I only see the square around 2"
echo
_tide_option 3 "I see both squares"
echo
_tide_menu
switch $_tide_selected_option
case 1
_load_config "$_tide_configure_style"
set -e _tide_16color
switch $_tide_configure_style
case lean rainbow
_next_choice all/show_time
case classic
_next_choice classic/classic_prompt_color
end
end
_next_choice all/show_time
end

View File

@ -21,6 +21,6 @@ function prompt_colors
_next_choice classic/classic_prompt_color
end
case 2
_next_choice all/show_time
_next_choice all/black_or_brblack
end
end