comparison vendor/vim-packs/srcery-vim/autoload/airline/themes/srcery.vim @ 704:1e0f578f6752

Update vendor and add support for vim packs
author nanaya <me@nanaya.net>
date Sun, 18 Dec 2022 20:06:46 +0900
parents
children
comparison
equal deleted inserted replaced
703:b7cd7465cc26 704:1e0f578f6752
1 " vim-airline-srcery theme
2 " vim: expandtab shiftwidth=2 tabstop=2 :
3
4
5 " Srcery Palette {{{
6
7 " Normal Colors
8 let s:black = srcery#helper#GetColor('SrceryBlack')
9 let s:red = srcery#helper#GetColor('SrceryRed')
10 let s:green = srcery#helper#GetColor('SrceryGreen')
11 let s:yellow = srcery#helper#GetColor('SrceryYellow')
12 let s:blue = srcery#helper#GetColor('SrceryBlue')
13 let s:magenta = srcery#helper#GetColor('SrceryMagenta')
14 let s:cyan = srcery#helper#GetColor('SrceryCyan')
15 let s:white = srcery#helper#GetColor('SrceryWhite')
16
17 " Bright Colors
18 let s:bright_black = srcery#helper#GetColor('SrceryBrightBlack')
19 let s:bright_red = srcery#helper#GetColor('SrceryBrightRed')
20 let s:bright_green = srcery#helper#GetColor('SrceryBrightGreen')
21 let s:bright_yellow = srcery#helper#GetColor('SrceryBrightYellow')
22 let s:bright_blue = srcery#helper#GetColor('SrceryBrightBlue')
23 let s:bright_magenta = srcery#helper#GetColor('SrceryBrightMagenta')
24 let s:bright_cyan = srcery#helper#GetColor('SrceryBrightCyan')
25 let s:bright_white = srcery#helper#GetColor('SrceryBrightWhite')
26
27 " Extra Colors
28 let s:orange = srcery#helper#GetColor('SrceryOrange')
29 let s:bright_orange = srcery#helper#GetColor('SrceryBrightOrange')
30 let s:hard_black = srcery#helper#GetColor('SrceryHardBlack')
31 let s:xgray1 = srcery#helper#GetColor('SrceryXgray1')
32 let s:xgray2 = srcery#helper#GetColor('SrceryXgray2')
33 let s:xgray3 = srcery#helper#GetColor('SrceryXgray3')
34 let s:xgray4 = srcery#helper#GetColor('SrceryXgray4')
35 let s:xgray5 = srcery#helper#GetColor('SrceryXgray5')
36 let s:xgray6 = srcery#helper#GetColor('SrceryXgray6')
37
38 "}}}
39
40
41 " Theme Initializing {{{
42 let g:airline#themes#srcery#palette = {}
43 let s:modified = { 'airline_c': [ s:orange[0] , '' , s:orange[1] , '' , '' ] }
44
45 " }}}
46
47
48 " Mode Config {{{
49
50 " Command Mode
51 let s:c1 = [ s:black[0] , s:bright_white[0] , s:black[1] , s:bright_white[1] ]
52 let s:c2 = [ s:bright_white[0] , s:xgray3[0] , s:bright_white[1] , s:xgray3[1] ]
53 let s:c3 = [ s:bright_white[0] , s:xgray1[0] , s:bright_white[1] , s:xgray1[1] ]
54 let g:airline#themes#srcery#palette.commandline = airline#themes#generate_color_map(s:c1, s:c2, s:c3)
55 let g:airline#themes#srcery#palette.commandline_modified = s:modified
56 let g:airline#themes#srcery#palette.commandline_paste = s:modified
57
58 " Normal Mode
59 let s:n1 = [ s:bright_white[0] , s:xgray4[0] , s:bright_white[1] , s:xgray4[1] ]
60 let s:n2 = [ s:bright_white[0] , s:xgray3[0] , s:bright_white[1] , s:xgray3[1] ]
61 let s:n3 = [ s:bright_white[0] , s:xgray1[0] , s:bright_white[1] , s:xgray1[1] ]
62 let g:airline#themes#srcery#palette.normal = airline#themes#generate_color_map(s:n1, s:n2, s:n3)
63 let g:airline#themes#srcery#palette.normal_modified = s:modified
64 let g:airline#themes#srcery#palette.normal_paste = s:modified
65
66 " Inactive Mode
67 let s:in1 = [ s:xgray6[0] , s:xgray4[0] , s:bright_black[1] , s:xgray4[1] ]
68 let s:in2 = [ s:xgray6[0] , s:xgray3[0] , s:bright_black[1] , s:xgray3[1] ]
69 let s:in3 = [ s:xgray6[0] , s:xgray2[0] , s:bright_black[1] , s:xgray2[1] ]
70 let g:airline#themes#srcery#palette.inactive = airline#themes#generate_color_map(s:in1, s:in2, s:in3)
71 let g:airline#themes#srcery#palette.inactive_modified = s:modified
72
73 " Insert Mode
74 let s:i1 = [ s:black[0] , s:bright_white[0] , s:black[1] , s:bright_white[1] ]
75 let s:i2 = [ s:black[0] , s:bright_black[0] , s:black[1] , s:bright_black[1] ]
76 let s:i3 = [ s:bright_white[0] , s:xgray1[0] , s:bright_white[1] , s:xgray1[1] ]
77 let g:airline#themes#srcery#palette.insert = airline#themes#generate_color_map(s:i1, s:i2, s:i3)
78 let g:airline#themes#srcery#palette.insert_modified = s:modified
79
80 " Replace Mode
81 let s:r1 = [ s:bright_white[0] , s:bright_red[0] , s:bright_white[1] , s:bright_red[1] ]
82 let s:r2 = [ s:black[0] , s:bright_black[0] , s:black[1] , s:bright_black[1] ]
83 let s:r3 = [ s:bright_white[0] , s:xgray1[0] , s:bright_white[1] , s:xgray1[1] ]
84 let g:airline#themes#srcery#palette.replace = airline#themes#generate_color_map(s:r1, s:r2, s:r3)
85 let g:airline#themes#srcery#palette.replace_modified = s:modified
86
87 " Terminal Mode
88 let s:t1 = [ s:black[0] , s:yellow[0] , s:black[1] , s:yellow[1] ]
89 let s:t2 = [ s:bright_white[0] , s:xgray3[0] , s:bright_white[1] , s:xgray3[1] ]
90 let s:t3 = [ s:bright_white[0] , s:xgray1[0] , s:bright_white[1] , s:xgray1[1] ]
91 let g:airline#themes#srcery#palette.terminal = airline#themes#generate_color_map(s:t1, s:t2, s:t3)
92 let g:airline#themes#srcery#palette.terminal.airline_term = s:t3
93
94 " Visual Mode
95 let s:v1 = [ s:black[0] , s:cyan[0] , s:black[1] , s:cyan[1] ]
96 let s:v2 = [ s:bright_white[0] , s:xgray5[0] , s:bright_white[1] , s:xgray5[1] ]
97 let s:v3 = [ s:bright_white[0] , s:xgray1[0] , s:bright_white[1] , s:xgray1[1] ]
98 let g:airline#themes#srcery#palette.visual = airline#themes#generate_color_map(s:v1, s:v2, s:v3)
99 let g:airline#themes#srcery#palette.visual_modified = s:modified
100
101 " }}}
102
103
104 " Plugin Settings {{{
105
106 " ctrlp.vim
107 if get(g:, 'loaded_ctrlp', 0)
108 let s:cp1 = [ s:bright_white[0] , s:xgray2[0] , s:bright_white[1] , s:xgray2[1] ]
109 let s:cp2 = [ s:bright_white[0] , s:xgray5[0] , s:bright_white[1] , s:xgray5[1] ]
110 let s:cp3 = [ s:bright_white[0] , s:xgray3[0] , s:bright_white[1] , s:xgray3[1] ]
111
112 let g:airline#themes#srcery#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(s:cp1, s:cp2, s:cp3)
113 endif
114
115 " }}}