on master help sign in
update(theme): adjust base16_transparent and dark_high_contrast (#5105)
commitc5bfb792b2a26545f6515a1e7b62d4f37b10841e authorSlug <106496265+GreasySlug@users.noreply.github.com> dateMon 12 Dec 2022, 03:14 (4 years ago) parentcdc54f5
3 files changed+48−45
book/src/themes.md+1−1 runtime/themes/base16_transparent.toml+23−22 runtime/themes/dark_high_contrast.toml+24−22
book/src/themes.md+1−1
@@ -103,7 +103,7 @@ Some styles might not be supported by your terminal emulator.
103103| `line` |
104104| `curl` |
105105| `dashed` |
106−| `dot` |
106+| `dotted` |
107107| `double_line` |
108108
109109
runtime/themes/base16_transparent.toml+23−22
@@ -1,27 +1,28 @@
11# Author: GreasySlug <9619abgoni@gmail.com>
2+# This theme is base on base16_theme(Author: NNB <nnbnh@protonmail.com>)
23
34"ui.background" = { fg = "white"}
45"ui.background.separator" = { fg = "gray" }
5−"ui.menu" = { fg = "gray" }
6+"ui.menu" = { fg = "white" }
67"ui.menu.selected" = { modifiers = ["reversed"] }
78"ui.menu.scroll" = { fg = "light-gray" }
89"ui.linenr" = { fg = "light-gray" }
910"ui.linenr.selected" = { fg = "white", modifiers = ["bold"] }
1011"ui.popup" = { fg = "white" }
1112"ui.window" = { fg = "white" }
12−"ui.selection" = { modifiers = [ "reversed"] }
13−"comment" = { fg = "gray", modifiers = ["italic"] }
13+"ui.selection" = { bg = "gray" }
14+"comment" = "light-gray"
1415"ui.statusline" = { fg = "white" }
1516"ui.statusline.inactive" = { fg = "gray" }
16−"ui.statusline.normal" = { fg = "blue", modifiers = ["reversed"] }
17−"ui.statusline.insert" = { fg = "green", modifiers = ["reversed"] }
18−"ui.statusline.select" = { fg = "magenta", modifiers = ["reversed"] }
17+"ui.statusline.normal" = { fg = "black", bg = "blue" }
18+"ui.statusline.insert" = { fg = "black", bg = "green" }
19+"ui.statusline.select" = { fg = "black", bg = "magenta" }
1920"ui.help" = { fg = "light-gray" }
2021"ui.cursor" = { modifiers = ["reversed"] }
21−"ui.cursor.match" = { fg = "light-yellow", modifiers = ["underlined"] }
22+"ui.cursor.match" = { fg = "light-yellow", underline = { color = "light-yellow", style = "line" } }
2223"ui.cursor.primary" = { modifiers = ["reversed", "slow_blink"] }
2324"ui.cursor.secondary" = { modifiers = ["reversed"] }
24−"ui.virtual.ruler" = { fg = "gray", modifiers = ["reversed"] }
25+"ui.virtual.ruler" = { bg = "gray" }
2526"ui.virtual.whitespace" = "gray"
2627"ui.virtual.indent-guide" = "gray"
2728
@@ -44,7 +45,7 @@
4445"markup.list" = "light-red"
4546"markup.bold" = { fg = "light-yellow", modifiers = ["bold"] }
4647"markup.italic" = { fg = "light-magenta", modifiers = ["italic"] }
47−"markup.link.url" = { fg = "yellow", modifiers = ["underlined"] }
48+"markup.link.url" = { fg = "yellow", underline = { color = "yellow", style = "line"} }
4849"markup.link.text" = "light-red"
4950"markup.quote" = "light-cyan"
5051"markup.raw" = "green"
@@ -53,19 +54,19 @@
5354"markup.select" = { fg = "magenta" }
5455
5556"diff.plus" = "light-green"
56−"diff.delta" = "yellow"
57+"diff.delta" = "light-blue"
58+"diff.delta.moved" = "blue"
5759"diff.minus" = "light-red"
5860
59−"ui.gutter" = "gray"
60−"info" = "light-blue"
61−"hint" = "gray"
62−"debug" = "gray"
63−"warning" = "yellow"
64−"error" = "light-red"
61+"ui.gutter" = "gray"
62+"info" = "light-blue"
63+"hint" = "light-gray"
64+"debug" = "light-gray"
65+"warning" = "light-yellow"
66+"error" = "light-red"
6567
66−"diagnostic" = { modifiers = ["underlined"] }
67−"diagnostic.info" = { fg = "light-blue", modifiers = ["underlined"] }
68−"diagnostic.hint" = { fg = "gray", modifiers = ["underlined"] }
69−"diagnostic.debug" ={ fg ="gray", modifiers = ["underlined"] }
70−"diagnostic.warning" = { fg = "yellow", modifiers = ["underlined"] }
71−"diagnostic.error" = { fg ="light-red", modifiers = ["underlined"] }
68+"diagnostic.info" = { underline = { color = "light-blue", style = "dotted" } }
69+"diagnostic.hint" = { underline = { color = "light-gray", style = "double_line" } }
70+"diagnostic.debug" = { underline ={ color ="light-gray", style = "dashed" } }
71+"diagnostic.warning" = { underline = { color = "light-yellow", style = "curl" } }
72+"diagnostic.error" = { underline = { color ="light-red", style = "curl" } }
runtime/themes/dark_high_contrast.toml+24−22
@@ -9,29 +9,29 @@
99"ui.text.focus" = { modifiers = ["reversed"] } # file picker selected
1010
1111"ui.virtual.whitespace" = "gray"
12−"ui.virtual.ruler" = { fg = "gray", bg = "white", modifiers = ["reversed"] }
12+"ui.virtual.ruler" = { fg = "white", bg = "gray" }
1313"ui.virtual.indent-guide" = "white"
1414
1515"ui.statusline" = { fg = "white", bg = "deep_blue" }
16−"ui.statusline.inactive" = { fg = "gray" }
16+"ui.statusline.inactive" = { fg = "gray", bg = "deep_blue" }
1717"ui.statusline.normal" = { fg = "black", bg = "aqua" }
1818"ui.statusline.insert" = { fg = "black", bg = "orange" }
1919"ui.statusline.select" = { fg = "black", bg = "purple" }
20−# "ui.statusline.separator" = { fg = "aqua", bg = "white" }
20+"ui.statusline.separator" = { fg = "aqua", bg = "white" }
2121
2222"ui.cursor" = { fg = "black", bg = "white" }
2323"ui.cursor.insert" = { fg = "black", bg = "white" }
2424"ui.cursor.select" = { fg = "black", bg = "white" }
2525"ui.cursor.match" = { bg = "white", modifiers = ["dim"] }
2626"ui.cursor.primary" = { fg = "black", bg = "white", modifiers = ["slow_blink"] }
27−
2827"ui.cursor.secondary" = "white"
29−"ui.cursorline.primary" = { fg = "orange", modifiers = ["underlined"] }
30−"ui.cursorline.secondary" = { fg = "orange", modifiers = ["underlined"] }
31−"ui.selection" = { fg = "deep_blue", bg = "white" }
28+"ui.cursorline.primary" = { bg = "deep_blue", underline = { color = "orange", style = "double_line" } }
29+"ui.cursorline.secondary" = { bg = "dark_blue", underline = { color = "white", style = "line" } }
30+"ui.selection" = { fg = "dark_blue", bg = "white" }
31+"ui.selection.primary" = { fg = "deep_blue", bg = "white" }
3232
3333"ui.menu" = { fg = "white", bg = "deep_blue" }
34−"ui.menu.selected" = { fg = "orange", modifiers = ["underlined"] }
34+"ui.menu.selected" = { fg = "orange", underline = { style = "line" } }
3535"ui.menu.scroll" = { fg = "aqua", bg = "black" }
3636"ui.help" = { fg = "white", bg = "deep_blue" }
3737
@@ -39,15 +39,16 @@
3939"ui.popup.info" = { fg = "white", bg = "deep_blue" }
4040
4141"ui.gutter" = { bg = "black" }
42+"ui.gutter.selected" = { bg = "black" }
4243"ui.linenr" = { fg = "white", bg = "black" }
4344"ui.linenr.selected" = { fg = "orange", bg = "black", modifiers = ["bold"] }
4445
4546# Diagnostic
46−"diagnostic" = "white"
47−"diagnostic.info" = { bg = "white", modifiers = ["underlined"] }
48−"diagnostic.hint" = { fg = "yellow", modifiers = ["underlined"] }
49−"diagnostic.warning" = { fg = "orange", modifiers = ["underlined"] }
50−"diagnostic.error" = { fg = "red", modifiers = ["underlined"] }
47+"diagnostic" = { fg = "white" }
48+"diagnostic.info" = { underline = { color = "white", style = "dotted" } }
49+"diagnostic.hint" = { underline = { color = "yellow", style = "dashed" } }
50+"diagnostic.warning" = { underline = { color = "orange", style = "curl" } }
51+"diagnostic.error" = { underline = { color = "red", style = "curl" } }
5152"info" = "white"
5253"hint" = "yellow"
5354"warning" = "orange"
@@ -59,31 +60,31 @@
5960"diff.minus" = "pink"
6061
6162# Syntax high light
62−"type" = { fg = "emerald_green" }
63+"type" = "emerald_green"
6364"type.buildin" = "emerald_green"
64−"comment" = { fg = "white" }
65+"comment" = "white"
6566"operator" = "white"
66−"variable" = { fg = "aqua" }
67+"variable" = "aqua"
6768"variable.other.member" = "brown"
6869"constant" = "aqua"
6970"constant.numeric" = "emerald_green"
70−"attributes" = { fg = "blue" }
71+"attributes" = "blue"
7172"namespace" = "blue"
7273"string" = "brown"
73−"string.special.url" = { fg = "brown", modifiers =["underlined"]}
74+"string.special.url" = "brown"
7475"constant.character.escape" = "yellow"
7576"constructor" = "aqua"
76−"keyword" = { fg = "blue", modifiers = ["underlined"] }
77+"keyword" = "blue"
7778"keyword.control" = "purple"
7879"function" = "yellow"
7980"label" = "blue"
8081
8182# Markup
82−"markup.heading" = { fg = "yellow", modifiers = ["bold", "underlined"] }
83−"markup.list" = { fg = "pink" }
83+"markup.heading" = { fg = "yellow", modifiers = ["bold"], underline = { color = "yellow", style = "double_line"} }
84+"markup.list" = "pink"
8485"markup.bold" = { fg = "emerald_green", modifiers = ["bold"] }
8586"markup.italic" = { fg = "blue", modifiers = ["italic"] }
86−"markup.link.url" = { fg = "blue", modifiers = ["underlined"] }
87+"markup.link.url" = { fg = "blue", underline = { color = "blue", style = "line" } }
8788"markup.link.text" = "pink"
8889"markup.quote" = "yellow"
8990"markup.raw" = "brown"
@@ -94,6 +95,7 @@ gray = "#585858"
9495white = "#ffffff"
9596blue = "#66a4ff"
9697deep_blue = "#142743"
98+dark_blue = "#0d1a2d"
9799aqua = "#6fc3df"
98100purple = "#c586c0"
99101red = "#b65f5f"