Revisão | d5d0302b461cb78a2dc2d3ca518493c43a9a8ebe (tree) |
---|---|
Hora | 2023-05-04 20:48:14 |
Autor | badcoff33 <none@none> |
Commiter | badcoff33 |
color themes goes vim9script
@@ -1,10 +1,11 @@ | ||
1 | -" A Vim color theme | |
2 | -" Intro: Apollo tries to be a less-is-more color theme. It uses less colors to | |
3 | -" gain better readability and colorful clutter. But the temptation was too | |
4 | -" strong: I added some blueish and greenish colors to make thins not too | |
5 | -" boring. Enjoy! | |
6 | -" Name: Apollo | |
7 | -" Maintainer: Markus Prepens | |
1 | +vim9script | |
2 | +# A Vim color theme | |
3 | +# Intro: Apollo tries to be a less-is-more color theme. It uses less colors to | |
4 | +# gain better readability and colorful clutter. But the temptation was too | |
5 | +# strong: I added some blueish and greenish colors to make thins not too | |
6 | +# boring. Enjoy! | |
7 | +# Name: Apollo | |
8 | +# Maintainer: Markus Prepens | |
8 | 9 | |
9 | 10 | if exists("syntax_on") |
10 | 11 | syntax reset |
@@ -12,68 +13,55 @@ endif | ||
12 | 13 | |
13 | 14 | hi clear |
14 | 15 | set background=dark |
15 | -let g:colors_name = "apollo" | |
16 | 16 | |
17 | -let s:white = '#FFFFFF' | |
18 | -let s:black = '#000000' | |
19 | - | |
20 | -let s:bg1 = "#132443" | |
21 | -let s:bg2 = "#263154" | |
22 | -let s:bg3 = "#344468" | |
23 | -let s:bg4 = "#48506F" | |
24 | -let s:silver1 = "#A0A0A8" | |
25 | -let s:silver2 = "#B8B8BE" | |
26 | -let s:silver3 = "#D0D0D8" | |
27 | -let s:silver4 = "#E0E0E8" | |
28 | -let s:green_bg = "#1D683C" | |
29 | -let s:green1 = "#22A358" | |
30 | -let s:green2 = "#27C168" | |
31 | -let s:green3 = "#27F070" | |
32 | -let s:blue_bg = "#1B507F" | |
33 | -let s:blue1 = "#3068B8" | |
34 | -let s:blue2 = "#4090D8" | |
35 | -let s:blue3 = "#70B0F8" | |
36 | -let s:red1 = "#B82042" | |
37 | -let s:red2 = "#E84070" | |
38 | -let s:sun = "#B0BF40" | |
39 | - | |
40 | -let Fg = { str -> empty(str) ? "" : "guifg=" .. str } | |
41 | -let Bg = { str -> empty(str) ? "" : "guibg=" .. str } | |
42 | -let Attr = { str -> empty(str) ? "" : "gui=" .. str } | |
43 | -let Cterm = { str -> empty(str) ? "" : "cterm=" .. str } | |
44 | - | |
45 | -" Basics | |
46 | -execute "hi Bold" Fg(s:silver2) Attr("bold") | |
47 | -execute "hi Cursor" Fg(s:black) Bg(s:green3) | |
48 | -execute "hi CursorLine" Bg(s:bg2) Cterm("NONE") | |
49 | -execute "hi CursorLineNr" Fg(s:green3) Bg(s:bg3) Attr("bold") | |
50 | -execute "hi ErrorMsg" Fg(s:white) Bg(s:red2) | |
51 | -execute "hi IncSearch" Fg(s:black) Bg(s:green1) Attr("NONE") Cterm("NONE") | |
52 | -execute "hi Italic" Fg(s:silver2) Attr("NONE") | |
53 | -execute "hi LineNr" Fg(s:blue3) Bg(s:bg2) | |
54 | -execute "hi LineNrAbove" Fg(s:bg4) Bg("bg") Attr("bold") | |
55 | -execute "hi LineNrBelow" Fg(s:bg4) Bg("bg") Attr("bold") | |
56 | -execute "hi MatchParen" Fg(s:green3) Bg("bg") Attr("underline") | |
57 | -execute "hi ModeMsg" Fg(s:silver2) Bg("bg") | |
58 | -execute "hi NonText" Fg(s:blue1) Bg(s:bg1) | |
59 | -execute "hi Normal" Fg(s:silver4) Bg(s:bg1) Attr("NONE") | |
60 | -execute "hi Pmenu" Fg(s:white) Bg(s:blue1) Attr("NONE") | |
61 | -execute "hi PmenuSbar" Fg(s:silver3) Bg(s:bg3) | |
62 | -execute "hi PmenuSel" Fg(s:white) Bg(s:green1) Attr("NONE") | |
63 | -execute "hi PmenuThumb" Fg(s:blue2) Bg(s:bg4) | |
64 | -execute "hi Question" Fg(s:green2) Bg("bg") | |
65 | -execute "hi QuickFixLine" Fg(s:blue3) Bg("bg") Attr("bold") | |
66 | -execute "hi Search" Fg(s:silver4) Bg(s:bg4) Attr("NONE") | |
67 | -execute "hi StatusLine" Fg(s:black) Bg(s:blue3) Attr("NONE") Cterm("NONE") | |
68 | -execute "hi StatusLineNC" Fg(s:silver4) Bg(s:bg3) Attr("NONE") Cterm("NONE") | |
69 | -execute "hi Terminal" Fg(s:green3) Bg(s:bg1) | |
70 | -execute "hi Title" Fg(s:green3) | |
71 | -execute "hi User1" Fg(s:sun) Bg(s:blue_bg) Attr("bold") | |
72 | -execute "hi User2" Fg(s:black) Bg(s:sun) | |
73 | -execute "hi VertSplit" Fg(s:bg2) Bg(s:bg2) Attr("NONE") | |
74 | -execute "hi Visual" Bg(s:bg3) | |
75 | -execute "hi WarningMsg" Fg(s:white) Bg(s:blue1) | |
76 | -execute "hi qfFileName" Fg(s:blue2) | |
17 | +g:colors_name = "apollo" | |
18 | + | |
19 | +var white = "#FFFFFF" | |
20 | +var black = "#000000" | |
21 | +var bg = ["#132443", "#263154", "#344468", "#48506F"] | |
22 | +var moon = ["#A0A0A8", "#B8B8BE", "#D0D0D8", "#E0E0E8"] | |
23 | +var green = ["#1D683C", "#22A358", "#27C168", "#27F070"] | |
24 | +var blue = ["#1B507F", "#3068B8", "#4090D8", "#70B0F8"] | |
25 | +var red = ["#B82042", "#E84070"] | |
26 | +var sun = "#B0BF40" | |
27 | + | |
28 | +var Fg = (str) => empty(str) ? "" : "guifg=" .. str | |
29 | +var Bg = (str) => empty(str) ? "" : "guibg=" .. str | |
30 | +var Attr = (str) => empty(str) ? "" : "gui=" .. str | |
31 | +var Cterm = (str) => empty(str) ? "" : "cterm=" .. str | |
32 | + | |
33 | +# Basics | |
34 | +execute "hi Bold" Fg(moon[1]) Attr("bold") | |
35 | +execute "hi Cursor" Fg(black) Bg(green[3]) | |
36 | +execute "hi CursorLine" Bg(bg[1]) Cterm("NONE") | |
37 | +execute "hi CursorLineNr" Fg(green[3]) Bg(bg[2]) Attr("bold") | |
38 | +execute "hi ErrorMsg" Fg(white) Bg(red[1]) | |
39 | +execute "hi IncSearch" Fg(black) Bg(green[1]) Attr("NONE") Cterm("NONE") | |
40 | +execute "hi Italic" Fg(moon[1]) Attr("NONE") | |
41 | +execute "hi LineNr" Fg(blue[3]) Bg(bg[1]) | |
42 | +execute "hi LineNrAbove" Fg(bg[3]) Bg("bg") Attr("bold") | |
43 | +execute "hi LineNrBelow" Fg(bg[3]) Bg("bg") Attr("bold") | |
44 | +execute "hi MatchParen" Fg(green[3]) Bg("bg") Attr("underline") | |
45 | +execute "hi ModeMsg" Fg(moon[1]) Bg("bg") | |
46 | +execute "hi NonText" Fg(blue[0]) Bg(bg[0]) | |
47 | +execute "hi Normal" Fg(moon[3]) Bg(bg[0]) Attr("NONE") | |
48 | +execute "hi Pmenu" Fg(white) Bg(blue[1]) Attr("NONE") | |
49 | +execute "hi PmenuSbar" Fg(moon[2]) Bg(bg[2]) | |
50 | +execute "hi PmenuSel" Fg(white) Bg(green[1]) Attr("NONE") | |
51 | +execute "hi PmenuThumb" Fg(blue[2]) Bg(bg[3]) | |
52 | +execute "hi Question" Fg(green[2]) Bg("bg") | |
53 | +execute "hi QuickFixLine" Fg(blue[2]) Bg("bg") Attr("bold") | |
54 | +execute "hi Search" Fg(moon[3]) Bg(bg[3]) Attr("NONE") | |
55 | +execute "hi StatusLine" Fg(black) Bg(blue[3]) Attr("NONE") Cterm("NONE") | |
56 | +execute "hi StatusLineNC" Fg(moon[3]) Bg(bg[2]) Attr("NONE") Cterm("NONE") | |
57 | +execute "hi Terminal" Fg(green[3]) Bg(bg[0]) | |
58 | +execute "hi Title" Fg(green[3]) | |
59 | +execute "hi User1" Fg(sun) Bg(blue[0]) Attr("bold") | |
60 | +execute "hi User2" Fg(black) Bg(sun) | |
61 | +execute "hi VertSplit" Fg(bg[1]) Bg(bg[1]) Attr("NONE") | |
62 | +execute "hi Visual" Bg(bg[2]) | |
63 | +execute "hi WarningMsg" Fg(white) Bg(blue[1]) | |
64 | +execute "hi qfFileName" Fg(blue[2]) | |
77 | 65 | execute "hi qfSeparator" Fg("fg") |
78 | 66 | |
79 | 67 | highlight! link CursorColumn CursorLine |
@@ -91,57 +79,52 @@ highlight! link WildMenu IncSearch | ||
91 | 79 | highlight! link qfLineNr LineNr |
92 | 80 | highlight! link CurSearch IncSearch |
93 | 81 | |
94 | -" Code | |
95 | -execute "hi Statement" Fg(s:blue3) | |
96 | -execute "hi Conditional" Fg(s:blue3) Attr("bold") | |
97 | -execute "hi Type" Fg(s:green3) Attr("NONE") | |
98 | -execute "hi Structure" Fg(s:blue2) | |
99 | -execute "hi StorageClass" Fg(s:blue3) | |
100 | -execute "hi PreProc" Fg(s:white) Attr("bold") | |
101 | -execute "hi PreCondit" Fg(s:blue1) Attr("bold") | |
102 | -execute "hi Define" Fg(s:blue2) Attr("NONE") | |
103 | -execute "hi Comment" Fg(s:green3) | |
104 | -execute "hi Function" Fg(s:blue3) Attr("bold") | |
105 | -execute "hi Identifier" Fg(s:green3) | |
106 | -execute "hi Special" Fg(s:green2) | |
107 | -execute "hi Constant" Fg(s:white) | |
108 | -execute "hi Number" Fg(s:white) | |
109 | -execute "hi Todo" Fg(s:silver2) Bg(s:bg3) | |
110 | -execute "hi Error" Fg(s:red2) Bg(s:bg3) | |
111 | -execute "hi Directory" Fg(s:blue3) Attr("underline") | |
112 | - | |
113 | -" Filetype VIM | |
114 | -execute "hi vimCommentTitle" Fg(s:white) Attr("bold") | |
115 | - | |
116 | -" Filetype C | |
117 | -execute "hi cCppOut" Fg(s:silver3) | |
118 | -execute "hi cCppOutIf2" Fg(s:silver3) | |
119 | -execute "hi cParen" Fg(s:silver3) | |
120 | -execute "hi cBlock" Fg(s:silver3) | |
121 | - | |
122 | -" filetype HTML | |
123 | -execute "hi htmlH1" Fg(s:green3) Attr("bold") | |
124 | -execute "hi htmlH2" Fg(s:green3) Attr("bold") | |
125 | -execute "hi htmlH3" Fg(s:green2) Attr("bold") | |
126 | - | |
127 | -" markdown | |
128 | -execute "hi markdownCode" Fg(s:silver3) Bg(s:bg3) | |
129 | -execute "hi markdownCodeBlock" Fg(s:silver2) | |
130 | -execute "hi markdownUrl" Fg(s:silver2) Bg(s:bg3) Attr("underline") | |
131 | -execute "hi markdownLinkText" Fg(s:blue2) Attr("NONE") | |
132 | - | |
133 | -" restructured text | |
134 | -execute "hi rstEmphasis" Fg(s:green2) | |
135 | -execute "hi rstStrongEmphasis" Fg(s:green2) Attr("bold") | |
136 | - | |
137 | -" Diffs | |
138 | -execute "hi DiffChange" Fg(s:white) Bg(s:bg4) | |
139 | -execute "hi DiffText" Fg(s:blue2) Bg(s:bg4) Attr("bold") | |
140 | -execute "hi DiffDelete" Fg(s:red1) Bg(s:bg3) | |
141 | -execute "hi DiffAdd" Fg(s:green2) Bg(s:bg3) Attr("bold") | |
142 | - | |
143 | -unlet Fg | |
144 | -unlet Bg | |
145 | -unlet Attr | |
146 | -unlet Cterm | |
82 | +# Code | |
83 | +execute "hi Statement" Fg(blue[3]) | |
84 | +execute "hi Conditional" Fg(blue[3]) Attr("bold") | |
85 | +execute "hi Type" Fg(green[3]) Attr("NONE") | |
86 | +execute "hi Structure" Fg(blue[2]) | |
87 | +execute "hi StorageClass" Fg(blue[3]) | |
88 | +execute "hi PreProc" Fg(white) Attr("bold") | |
89 | +execute "hi PreCondit" Fg(blue[1]) Attr("bold") | |
90 | +execute "hi Define" Fg(blue[2]) Attr("NONE") | |
91 | +execute "hi Comment" Fg(green[3]) | |
92 | +execute "hi Function" Fg(blue[3]) Attr("bold") | |
93 | +execute "hi Identifier" Fg(green[3]) | |
94 | +execute "hi Special" Fg(green[2]) | |
95 | +execute "hi Constant" Fg(white) | |
96 | +execute "hi Number" Fg(white) | |
97 | +execute "hi Todo" Fg(moon[1]) Bg(bg[2]) | |
98 | +execute "hi Error" Fg(red[1]) Bg(bg[2]) | |
99 | +execute "hi Directory" Fg(blue[3]) Attr("underline") | |
100 | + | |
101 | +# Filetype VIM | |
102 | +execute "hi vimCommentTitle" Fg(white) Attr("bold") | |
103 | + | |
104 | +# Filetype C | |
105 | +execute "hi cCppOut" Fg(moon[2]) | |
106 | +execute "hi cCppOutIf2" Fg(moon[2]) | |
107 | +execute "hi cParen" Fg(moon[2]) | |
108 | +execute "hi cBlock" Fg(moon[2]) | |
109 | + | |
110 | +# filetype HTML | |
111 | +execute "hi htmlH1" Fg(green[3]) Attr("bold") | |
112 | +execute "hi htmlH2" Fg(green[3]) Attr("bold") | |
113 | +execute "hi htmlH3" Fg(green[2]) Attr("bold") | |
114 | + | |
115 | +# markdown | |
116 | +execute "hi markdownCode" Fg(moon[2]) Bg(bg[2]) | |
117 | +execute "hi markdownCodeBlock" Fg(moon[1]) | |
118 | +execute "hi markdownUrl" Fg(moon[1]) Bg(bg[2]) Attr("underline") | |
119 | +execute "hi markdownLinkText" Fg(blue[2]) Attr("NONE") | |
120 | + | |
121 | +# restructured text | |
122 | +execute "hi rstEmphasis" Fg(green[2]) | |
123 | +execute "hi rstStrongEmphasis" Fg(green[2]) Attr("bold") | |
124 | + | |
125 | +# Diffs | |
126 | +execute "hi DiffChange" Fg(white) Bg(bg[3]) | |
127 | +execute "hi DiffText" Fg(blue[2]) Bg(bg[3]) Attr("bold") | |
128 | +execute "hi DiffDelete" Fg(red[1]) Bg(bg[2]) | |
129 | +execute "hi DiffAdd" Fg(green[2]) Bg(bg[2]) Attr("bold") | |
147 | 130 |
@@ -9,6 +9,7 @@ endif | ||
9 | 9 | |
10 | 10 | hi clear |
11 | 11 | set background=light |
12 | + | |
12 | 13 | g:colors_name = "twotone" |
13 | 14 | |
14 | 15 | var black = "#000000" |