on master help sign in
Theme onelight add inlay-hint (#6276)

- fix: add `markup.strikethrough` for theme.md - add virtual.inlay-hint - fix ui.virtual.wrap - rename light-white to grey-300

commit221a4ac8831e5bca08375f652d19bfc8039e0f1d authorErasin Wang <erasinoo@gmail.com> dateMon 13 Mar 2023, 00:56 (4 years ago) parent14f1a62
2 files changed+33−28
book/src/themes.md+1 runtime/themes/onelight.toml+32−28
book/src/themes.md+1
@@ -230,6 +230,7 @@ We use a similar set of scopes as
230230 - `numbered`
231231 - `bold`
232232 - `italic`
233+ - `strikethrough`
233234 - `link`
234235 - `url` - URLs pointed to by links
235236 - `label` - non-URL link references
runtime/themes/onelight.toml+32−28
@@ -1,28 +1,28 @@
11# Author : erasin<erasinoo@gmail.com>
22
33"attribute" = { fg = "yellow" }
4−"constructor" = { fg = "brown" }
54"label" = { fg = "cyan" }
65"operator" = { fg = "red" }
76"tag" = { fg = "cyan" }
8−"namespace" = { fg = "blue" }
97"special" = { fg = "deep-purple" }
108"property" = { fg = "purple" }
11−"module" = { fg = "cyan" }
9+"constructor" = { fg = "blue" }
10+"namespace" = { fg = "blue" }
11+"module" = { fg = "blue" }
1212
1313"type" = { fg = "gold" }
14−"type.builtin" = { fg = "light-blue" }
14+"type.builtin" = { fg = "yellow" }
1515"type.enum" = { fg = "cyan" }
1616"type.enum.variant" = { fg = "cyan" }
1717
1818"constant" = { fg = "cyan", modifiers = ["bold"] }
1919"constant.builtin" = { fg = "deep-purple" }
20−"constant.builtin.boolean" = { fg = "deep-purple" }
20+"constant.builtin.boolean" = { fg = "purple" }
2121"constant.character" = { fg = "green" }
2222"constant.character.escape" = { fg = "brown" }
23−"constant.numeric" = { fg = "gold" }
24−"constant.numeric.integer" = { fg = "gold" }
25−"constant.numeric.float" = { fg = "gold" }
23+"constant.numeric" = { fg = "brown" }
24+"constant.numeric.integer" = { fg = "brown" }
25+"constant.numeric.float" = { fg = "brown" }
2626
2727"string" = { fg = "green" }
2828"string.regexp" = { fg = "purple" }
@@ -55,7 +55,7 @@
5555"keyword.control.return" = { fg = "deep-purple", modifiers = ["bold"] }
5656"keyword.control.exception" = { fg = "purple" }
5757"keyword.operator" = { fg = "red" }
58−"keyword.directive" = { fg = "purple" }
58+"keyword.directive" = { fg = "deep-purple" }
5959"keyword.function" = { fg = "purple" }
6060"keyword.storage" = { fg = "purple" }
6161"keyword.storage.type" = { fg = "purple" }
@@ -82,6 +82,7 @@
8282"markup.list.numbered" = { fg = "light-blue" }
8383"markup.bold" = { fg = "yellow", modifiers = ["bold"] }
8484"markup.italic" = { fg = "purple", modifiers = ["italic"] }
85+"markup.strikethrough" = { modifiers = ["crossed_out"] }
8586"markup.link" = { fg = "light-blue" }
8687"markup.link.url" = { fg = "cyan", modifiers = ["underlined"] }
8788"markup.link.text" = { fg = "light-blue" }
@@ -103,7 +104,7 @@
103104"ui.cursor.normal" = { fg = "white", bg = "grey" }
104105"ui.cursor.insert" = { fg = "white", bg = "grey" }
105106"ui.cursor.select" = { fg = "white", bg = "grey" }
106−"ui.cursor.match" = { bg = "light-white", modifiers = ["bold"] }
107+"ui.cursor.match" = { bg = "grey-300", modifiers = ["bold"] }
107108"ui.cursor.primary" = { fg = "white", bg = "black" }
108109"ui.cursor.primary.normal" = { fg = "white", bg = "black" }
109110"ui.cursor.primary.insert" = { fg = "red", bg = "black" }
@@ -115,11 +116,11 @@
115116"ui.linenr" = { fg = "grey-500" }
116117"ui.linenr.selected" = { fg = "black", modifiers = ["bold"] }
117118
118−"ui.statusline" = { fg = "black", bg = "light-white" }
119+"ui.statusline" = { fg = "black", bg = "grey-300" }
119120"ui.statusline.inactive" = { fg = "grey", bg = "grey-200" }
120−"ui.statusline.normal" = { fg = "light-white", bg = "light-blue" }
121−"ui.statusline.insert" = { fg = "light-white", bg = "green" }
122−"ui.statusline.select" = { fg = "light-white", bg = "purple" }
121+"ui.statusline.normal" = { fg = "grey-300", bg = "light-blue" }
122+"ui.statusline.insert" = { fg = "grey-300", bg = "green" }
123+"ui.statusline.select" = { fg = "grey-300", bg = "purple" }
123124
124125"ui.popup" = { fg = "black", bg = "grey-200" }
125126"ui.popup.info" = { fg = "black", bg = "grey-200" }
@@ -127,23 +128,25 @@
127128"ui.help" = { fg = "black", bg = "grey-200" }
128129
129130"ui.text" = { fg = "black" }
130−"ui.text.focus" = { fg = "red", bg = "light-white", modifiers = ["bold"] }
131+"ui.text.focus" = { fg = "red", bg = "grey-300", modifiers = ["bold"] }
131132"ui.text.inactive" = { fg = "grey" }
132133"ui.text.info" = { fg = "black" }
133134
134−"ui.virtual" = { fg = "light-white" }
135−"ui.virtual.ruler" = { bg = "light-white" }
136−"ui.virtual.wrap" = { bg = "light-white" }
137−"ui.virtual.whitespace" = { fg = "light-white" }
135+"ui.virtual" = { fg = "grey-500" }
136+"ui.virtual.ruler" = { bg = "grey-200" }
137+"ui.virtual.wrap" = { fg = "grey-500" }
138+"ui.virtual.whitespace" = { fg = "grey-300" }
138139"ui.virtual.indent-guide" = { fg = "grey-500" }
139−"ui.virtual.inlay-hint" = { fg = "grey" }
140+"ui.virtual.inlay-hint" = { fg = "grey-500" }
141+"ui.virtual.inlay-hint.parameter" = { fg = "grey-500", modifiers = ["italic"] }
142+"ui.virtual.inlay-hint.type" = { fg = "grey-500" }
140143
141−"ui.menu" = { fg = "black", bg = "light-white" }
144+"ui.menu" = { fg = "black", bg = "grey-300" }
142145"ui.menu.selected" = { fg = "white", bg = "light-blue" }
143146"ui.menu.scroll" = { fg = "light-blue", bg = "white" }
144147
145−"ui.selection" = { bg = "light-white", modifiers = ["dim"] }
146−"ui.selection.primary" = { bg = "light-white" }
148+"ui.selection" = { bg = "grey-300", modifiers = ["dim"] }
149+"ui.selection.primary" = { bg = "grey-300" }
147150
148151"ui.cursorline.primary" = { fg = "white", bg = "grey-100" }
149152"ui.cursorline.secondary" = { fg = "white", bg = "grey-200" }
@@ -151,7 +154,7 @@
151154"ui.cursorcolumn.primary" = { fg = "white", bg = "grey-100" }
152155"ui.cursorcolumn.secondary" = { fg = "white", bg = "grey-200" }
153156
154−"ui.highlight" = { bg = "light-white" }
157+"ui.highlight" = { bg = "grey-300" }
155158
156159"diagnostic.info" = { underline = { color = "blue", style = "dotted" } }
157160"diagnostic.hint" = { underline = { color = "green", style = "dashed" } }
@@ -167,7 +170,7 @@
167170white = "#FAFAFA"
168171yellow = "#FF6F00"
169172gold = "#D35400"
170−brown = "#4E342E"
173+brown = "#795548"
171174blue = "#0061FF"
172175light-blue = "#0091EA"
173176red = "#D50000"
@@ -177,8 +180,9 @@ deep-purple = "#651FFF"
177180green = "#24A443"
178181cyan = "#0086C1"
179182black = "#282C34"
180−light-white = "#E3E3E3"
181183grey = "#5C6370"
182−grey-100 = "#F3F3F3"
183−grey-200 = "#EDEDED"
184184grey-500 = "#9E9E9E"
185+grey-400 = "#BDBDBD"
186+grey-300 = "#E0E0E0"
187+grey-200 = "#EEEEEE"
188+grey-100 = "#F2F2F2"