@@ -4,15 +4,6 @@ local M = {}
4
4
5
5
--- @param colors ColorScheme
6
6
function M .generate (colors )
7
- local extended_colors = vim .tbl_extend (" force" , colors , {
8
- red_bright = util .blend_fg (colors .red , 0.5 ),
9
- green_bright = util .blend_fg (colors .green , 0.5 ),
10
- yellow_bright = util .blend_fg (colors .yellow , 0.5 ),
11
- blue_bright = util .blend_fg (colors .blue , 0.5 ),
12
- magenta_bright = util .blend_fg (colors .magenta , 0.5 ),
13
- cyan_bright = util .blend_fg (colors .cyan , 0.5 ),
14
- })
15
-
16
7
local termux = util .template (
17
8
[[
18
9
# -----------------------------------------------------------------------------
@@ -24,30 +15,30 @@ background: ${bg}
24
15
foreground: ${fg}
25
16
26
17
# Normal colors
27
- color0: ${black}
28
- color1: ${red}
29
- color2: ${green}
30
- color3: ${yellow}
31
- color4: ${blue}
32
- color5: ${magenta}
33
- color6: ${cyan}
34
- color7: ${fg_dark }
18
+ color0: ${terminal. black}
19
+ color1: ${terminal. red}
20
+ color2: ${terminal. green}
21
+ color3: ${terminal. yellow}
22
+ color4: ${terminal. blue}
23
+ color5: ${terminal. magenta}
24
+ color6: ${terminal. cyan}
25
+ color7: ${terminal.white }
35
26
36
27
# Bright colors
37
- color8: ${terminal_black }
38
- color9: ${red_bright}
39
- color10: ${green_bright}
40
- color11: ${yellow_bright}
41
- color12: ${blue_bright}
42
- color13: ${magenta_bright}
43
- color14: ${cyan_bright}
44
- color15: ${fg }
28
+ color8: ${terminal.black_bright }
29
+ color9: ${terminal. red_bright}
30
+ color10: ${terminal. green_bright}
31
+ color11: ${terminal. yellow_bright}
32
+ color12: ${terminal. blue_bright}
33
+ color13: ${terminal. magenta_bright}
34
+ color14: ${terminal. cyan_bright}
35
+ color15: ${terminal.white_bright }
45
36
46
37
# Extended colors
47
38
color16: ${orange}
48
39
color17: ${red1}
49
40
]] ,
50
- extended_colors
41
+ colors
51
42
)
52
43
53
44
return termux
0 commit comments