summaryrefslogtreecommitdiff
path: root/.config/fish/functions/tide/configure/choices/all/prompt_connection_andor_frame_color.fish
blob: b8803b4046d014a08f7e61e87e708f6c910fb047 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
function prompt_connection_andor_frame_color
    if test "$_tide_16color" = true ||
            test "$fake_tide_left_prompt_frame_enabled" = false -a \
                "$fake_tide_right_prompt_frame_enabled" = false -a \
                "$fake_tide_prompt_icon_connection" = ' '
        _next_choice all/prompt_spacing
        return 0
    end

    _tide_title "Connection & Frame Color"

    _tide_option 1 Lightest
    _tide_display_prompt fake_tide_prompt_color_frame_and_connection 808080

    _tide_option 2 Light
    _tide_display_prompt fake_tide_prompt_color_frame_and_connection 6C6C6C

    _tide_option 3 Dark
    _tide_display_prompt fake_tide_prompt_color_frame_and_connection 585858

    _tide_option 4 Darkest
    _tide_display_prompt fake_tide_prompt_color_frame_and_connection 444444

    _tide_menu
    switch $_tide_selected_option
        case 1
            set -g fake_tide_prompt_color_frame_and_connection 808080
        case 2
            set -g fake_tide_prompt_color_frame_and_connection 6C6C6C
        case 3
            set -g fake_tide_prompt_color_frame_and_connection 585858
        case 4
            set -g fake_tide_prompt_color_frame_and_connection 444444
    end
    _next_choice all/prompt_spacing
end