summaryrefslogtreecommitdiff
path: root/.config/fish/functions/tide/configure/choices/classic/classic_prompt_color.fish
blob: 2189f3631630aa33743adc745925d6712afe671a (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
37
38
function classic_prompt_color
    _tide_title 'Prompt Color'

    _tide_option 1 Lightest
    _set_all_items_bg_color 585858
    _tide_display_prompt

    _tide_option 2 Light
    _set_all_items_bg_color 444444
    _tide_display_prompt

    _tide_option 3 Dark
    _set_all_items_bg_color 303030
    _tide_display_prompt

    _tide_option 4 Darkest
    _set_all_items_bg_color 1C1C1C
    _tide_display_prompt

    _tide_menu
    switch $_tide_selected_option
        case 1
            _set_all_items_bg_color 585858
        case 2
            _set_all_items_bg_color 444444
        case 3
            _set_all_items_bg_color 303030
        case 4
            _set_all_items_bg_color 1C1C1C
    end
    _next_choice all/show_time
end

function _set_all_items_bg_color -a color
    for var in (set --names | string match -r "fake_.*_bg_color.*")
        set $var $color
    end
end