z_mirror/kak-one

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

Caleb HeuerFix menu selection background colorsbc3a133

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