z_mirror/kak-one

git clone https://git.raiguard.me/z_mirror/kak-one

Caleb HeuerFix menu selection background colorsbc3a133

trunk
4.4 KiB115 linesraw
1# One Dark
2
3declare-option str fg "abb2bf"
4declare-option str bg "282c34"
5declare-option str subbg "373c47"
6
7declare-option str lightred "e06c75"
8declare-option str darkred "be5046"
9declare-option str green "98c379"
10declare-option str lightorange "e5c07b"
11declare-option str darkorange "d19a66"
12declare-option str blue "61afef"
13declare-option str magenta "c678dd"
14declare-option str cyan "56b6c2"
15
16declare-option str comment "5c6370"
17
18declare-option str selectionalpha "35"
19
20# Menus do not support transparency, so we must hardcode the selection + sub bg colors
21declare-option str menuselection "3f5369"
22
23# CODE
24
25set-face global value "rgb:%opt{darkorange}"
26set-face global type "rgb:%opt{lightorange}"
27set-face global variable "rgb:%opt{lightred}"
28set-face global module "rgb:%opt{lightorange}"
29set-face global function "rgb:%opt{blue}"
30set-face global string "rgb:%opt{green}"
31set-face global keyword "rgb:%opt{magenta}"
32set-face global operator "rgb:%opt{fg}"
33set-face global attribute "rgb:%opt{cyan}"
34set-face global comment "rgb:%opt{comment}"
35set-face global documentation "rgb:%opt{comment}"
36set-face global meta "rgb:%opt{cyan}"
37set-face global builtin "rgb:%opt{lightorange}"
38
39# MARKUP
40
41set-face global title "rgb:%opt{darkorange}"
42set-face global header "rgb:%opt{green}"
43set-face global mono "rgb:%opt{cyan}"
44set-face global block "rgb:%opt{magenta}"
45set-face global link "rgb:%opt{blue}"
46set-face global bullet "rgb:%opt{lightorange}"
47set-face global list "rgb:%opt{fg}"
48
49# BUILTIN
50
51set-face global Default "rgb:%opt{fg},rgb:%opt{bg}"
52set-face global PrimarySelection "default,rgba:%opt{blue}%opt{selectionalpha}"
53set-face global SecondarySelection "default,rgba:%opt{green}%opt{selectionalpha}"
54set-face global PrimaryCursor "rgb:%opt{bg},rgb:%opt{blue}"
55set-face global SecondaryCursor "rgb:%opt{bg},rgb:%opt{green}"
56set-face global PrimaryCursorEol "rgb:%opt{bg},rgb:%opt{lightred}"
57set-face global SecondaryCursorEol "rgb:%opt{bg},rgb:%opt{cyan}"
58set-face global LineNumbers "rgb:%opt{comment}"
59set-face global LineNumberCursor "rgb:%opt{darkorange}"
60set-face global LineNumbersWrapped "rgb:%opt{bg},rgb:%opt{bg}"
61set-face global MenuForeground "rgb:%opt{fg},rgb:%opt{menuselection}"
62set-face global MenuBackground "rgb:%opt{fg},rgb:%opt{subbg}"
63set-face global MenuInfo "rgb:%opt{green}"
64set-face global Information "rgb:%opt{fg},rgb:%opt{subbg}"
65set-face global Error "rgb:%opt{lightred}"
66set-face global StatusLine "rgb:%opt{fg},rgb:%opt{subbg}"
67set-face global StatusLineMode "rgb:%opt{darkorange}"
68set-face global StatusLineInfo "rgb:%opt{blue}"
69set-face global StatusLineValue "rgb:%opt{fg}"
70set-face global StatusCursor "rgb:%opt{bg},rgb:%opt{blue}"
71set-face global Prompt "rgb:%opt{blue}"
72set-face global MatchingChar +bu
73set-face global BufferPadding "rgb:%opt{bg},rgb:%opt{bg}"
74set-face global Whitespace "rgb:%opt{comment}"
75
76# PLUGINS
77
78# kak-lsp
79set-face global InlayHint "+d@type"
80set-face global parameter "+i@variable"
81set-face global enum "rgb:%opt{cyan}"
82set-face global InlayDiagnosticError "rgb:%opt{lightred}"
83set-face global InlayDiagnosticWarning "rgb:%opt{lightorange}"
84set-face global InlayDiagnosticInfo "rgb:%opt{blue}"
85set-face global InlayDiagnosticHint "rgb:%opt{green}"
86set-face global LineFlagError "rgb:%opt{lightred}"
87set-face global LineFlagWarning "rgb:%opt{lightorange}"
88set-face global LineFlagInfo "rgb:%opt{blue}"
89set-face global LineFlagHint "rgb:%opt{green}"
90set-face global DiagnosticError ",,rgb:%opt{lightred}+c"
91set-face global DiagnosticWarning ",,rgb:%opt{lightorange}+c"
92set-face global DiagnosticInfo ",,rgb:%opt{blue}+c"
93set-face global DiagnosticHint ",,rgb:%opt{green}+c"
94# Infobox faces
95set-face global InfoDefault Information
96set-face global InfoBlock block
97set-face global InfoBlockQuote block
98set-face global InfoBullet bullet
99set-face global InfoHeader header
100set-face global InfoLink link
101set-face global InfoLinkMono header
102set-face global InfoMono mono
103set-face global InfoRule comment
104set-face global InfoDiagnosticError InlayDiagnosticError
105set-face global InfoDiagnosticHint InlayDiagnosticHint
106set-face global InfoDiagnosticInformation InlayDiagnosticInfo
107set-face global InfoDiagnosticWarning InlayDiagnosticWarning
108
109# kak-rainbower
110try %{ set-option global rainbow_colors "rgb:%opt{lightorange}" "rgb:%opt{magenta}" "rgb:%opt{blue}" }
111
112# For backwards compatibility
113define-command -override -hidden one-enable-fancy-underlines %{
114    echo -debug "one-enable-fancy-underlines is deprecated - curly underlines are enabled by default"
115}