@@ -148,7 +148,7 @@ def apply_css(self, text_area: TextArea) -> None:
148148 self .selection_style = selection_style
149149 else :
150150 selection_background_color = background_color .blend (
151- app_theme .primary , factor = 0.75
151+ app_theme .primary , factor = 0.5
152152 )
153153 self .selection_style = Style .from_color (
154154 bgcolor = selection_background_color .rich_color
@@ -204,8 +204,9 @@ def builtin_themes(cls) -> list[TextAreaTheme]:
204204 "string" : Style (color = "#E6DB74" ),
205205 "string.documentation" : Style (color = "#E6DB74" ),
206206 "comment" : Style (color = "#75715E" ),
207+ "heading.marker" : Style (color = "#90908a" ),
207208 "keyword" : Style (color = "#F92672" ),
208- "operator" : Style (color = "#F92672 " ),
209+ "operator" : Style (color = "#f8f8f2 " ),
209210 "repeat" : Style (color = "#F92672" ),
210211 "exception" : Style (color = "#F92672" ),
211212 "include" : Style (color = "#F92672" ),
@@ -216,7 +217,10 @@ def builtin_themes(cls) -> list[TextAreaTheme]:
216217 "number" : Style (color = "#AE81FF" ),
217218 "float" : Style (color = "#AE81FF" ),
218219 "class" : Style (color = "#A6E22E" ),
220+ "type" : Style (color = "#A6E22E" ),
219221 "type.class" : Style (color = "#A6E22E" ),
222+ "type.builtin" : Style (color = "#F92672" ),
223+ "variable.builtin" : Style (color = "#f8f8f2" ),
220224 "function" : Style (color = "#A6E22E" ),
221225 "function.call" : Style (color = "#A6E22E" ),
222226 "method" : Style (color = "#A6E22E" ),
@@ -232,12 +236,18 @@ def builtin_themes(cls) -> list[TextAreaTheme]:
232236 "json.label" : Style (color = "#F92672" , bold = True ),
233237 "toml.type" : Style (color = "#F92672" ),
234238 "toml.datetime" : Style (color = "#AE81FF" ),
239+ "css.property" : Style (color = "#AE81FF" ),
235240 "heading" : Style (color = "#F92672" , bold = True ),
236241 "bold" : Style (bold = True ),
237242 "italic" : Style (italic = True ),
238243 "strikethrough" : Style (strike = True ),
239- "link" : Style (color = "#66D9EF" , underline = True ),
244+ "link.label" : Style (color = "#F92672" ),
245+ "link.uri" : Style (color = "#66D9EF" , underline = True ),
246+ "list.marker" : Style (color = "#90908a" ),
240247 "inline_code" : Style (color = "#E6DB74" ),
248+ "punctuation.bracket" : Style (color = "#f8f8f2" ),
249+ "punctuation.delimiter" : Style (color = "#f8f8f2" ),
250+ "punctuation.special" : Style (color = "#f8f8f2" ),
241251 },
242252)
243253
@@ -254,8 +264,9 @@ def builtin_themes(cls) -> list[TextAreaTheme]:
254264 "string" : Style (color = "#f1fa8c" ),
255265 "string.documentation" : Style (color = "#f1fa8c" ),
256266 "comment" : Style (color = "#6272a4" ),
267+ "heading.marker" : Style (color = "#6272a4" ),
257268 "keyword" : Style (color = "#ff79c6" ),
258- "operator" : Style (color = "#ff79c6 " ),
269+ "operator" : Style (color = "#f8f8f2 " ),
259270 "repeat" : Style (color = "#ff79c6" ),
260271 "exception" : Style (color = "#ff79c6" ),
261272 "include" : Style (color = "#ff79c6" ),
@@ -266,12 +277,15 @@ def builtin_themes(cls) -> list[TextAreaTheme]:
266277 "number" : Style (color = "#bd93f9" ),
267278 "float" : Style (color = "#bd93f9" ),
268279 "class" : Style (color = "#50fa7b" ),
280+ "type" : Style (color = "#ff79c6" ),
269281 "type.class" : Style (color = "#50fa7b" ),
282+ "type.builtin" : Style (color = "#bd93f9" ),
283+ "variable.builtin" : Style (color = "#f8f8f2" ),
270284 "function" : Style (color = "#50fa7b" ),
271285 "function.call" : Style (color = "#50fa7b" ),
272286 "method" : Style (color = "#50fa7b" ),
273287 "method.call" : Style (color = "#50fa7b" ),
274- "boolean" : Style (color = "#bd93f9 " ),
288+ "boolean" : Style (color = "#50fa7b " ),
275289 "constant.builtin" : Style (color = "#bd93f9" ),
276290 "json.null" : Style (color = "#bd93f9" ),
277291 "regex.punctuation.bracket" : Style (color = "#ff79c6" ),
@@ -282,12 +296,18 @@ def builtin_themes(cls) -> list[TextAreaTheme]:
282296 "json.label" : Style (color = "#ff79c6" , bold = True ),
283297 "toml.type" : Style (color = "#ff79c6" ),
284298 "toml.datetime" : Style (color = "#bd93f9" ),
299+ "css.property" : Style (color = "#bd93f9" ),
285300 "heading" : Style (color = "#ff79c6" , bold = True ),
286301 "bold" : Style (bold = True ),
287302 "italic" : Style (italic = True ),
288303 "strikethrough" : Style (strike = True ),
289- "link" : Style (color = "#bd93f9" , underline = True ),
304+ "link.label" : Style (color = "#ff79c6" ),
305+ "link.uri" : Style (color = "#bd93f9" , underline = True ),
306+ "list.marker" : Style (color = "#6272a4" ),
290307 "inline_code" : Style (color = "#f1fa8c" ),
308+ "punctuation.bracket" : Style (color = "#f8f8f2" ),
309+ "punctuation.delimiter" : Style (color = "#f8f8f2" ),
310+ "punctuation.special" : Style (color = "#f8f8f2" ),
291311 },
292312)
293313
@@ -304,8 +324,9 @@ def builtin_themes(cls) -> list[TextAreaTheme]:
304324 "string" : Style (color = "#ce9178" ),
305325 "string.documentation" : Style (color = "#ce9178" ),
306326 "comment" : Style (color = "#6A9955" ),
307- "keyword" : Style (color = "#569cd6" ),
308- "operator" : Style (color = "#569cd6" ),
327+ "heading.marker" : Style (color = "#6E7681" ),
328+ "keyword" : Style (color = "#C586C0" ),
329+ "operator" : Style (color = "#CCCCCC" ),
309330 "conditional" : Style (color = "#569cd6" ),
310331 "keyword.function" : Style (color = "#569cd6" ),
311332 "keyword.return" : Style (color = "#569cd6" ),
@@ -316,25 +337,35 @@ def builtin_themes(cls) -> list[TextAreaTheme]:
316337 "number" : Style (color = "#b5cea8" ),
317338 "float" : Style (color = "#b5cea8" ),
318339 "class" : Style (color = "#4EC9B0" ),
340+ "type" : Style (color = "#EFCB43" ),
319341 "type.class" : Style (color = "#4EC9B0" ),
320- "function" : Style (color = "#4EC9B0" ),
321- "function.call" : Style (color = "#4EC9B0" ),
342+ "type.builtin" : Style (color = "#9CDCFE" ),
343+ "function" : Style (color = "#DCDCAA" ),
344+ "function.call" : Style (color = "#DCDCAA" ),
322345 "method" : Style (color = "#4EC9B0" ),
323346 "method.call" : Style (color = "#4EC9B0" ),
347+ "constructor" : Style (color = "#4EC9B0" ),
324348 "boolean" : Style (color = "#7DAF9C" ),
325349 "constant.builtin" : Style (color = "#7DAF9C" ),
326350 "json.null" : Style (color = "#7DAF9C" ),
327351 "tag" : Style (color = "#EFCB43" ),
328352 "yaml.field" : Style (color = "#569cd6" , bold = True ),
329353 "json.label" : Style (color = "#569cd6" , bold = True ),
330354 "toml.type" : Style (color = "#569cd6" ),
355+ "toml.datetime" : Style (color = "#C586C0" , italic = True ),
356+ "css.property" : Style (color = "#569cd6" ),
331357 "heading" : Style (color = "#569cd6" , bold = True ),
332358 "bold" : Style (bold = True ),
333359 "italic" : Style (italic = True ),
334360 "strikethrough" : Style (strike = True ),
335- "link" : Style (color = "#40A6FF" , underline = True ),
361+ "link.uri" : Style (color = "#40A6FF" , underline = True ),
362+ "link.label" : Style (color = "#569cd6" ),
363+ "list.marker" : Style (color = "#6E7681" ),
336364 "inline_code" : Style (color = "#ce9178" ),
337365 "info_string" : Style (color = "#ce9178" , bold = True , italic = True ),
366+ "punctuation.bracket" : Style (color = "#CCCCCC" ),
367+ "punctuation.delimiter" : Style (color = "#CCCCCC" ),
368+ "punctuation.special" : Style (color = "#CCCCCC" ),
338369 },
339370)
340371
@@ -351,6 +382,10 @@ def builtin_themes(cls) -> list[TextAreaTheme]:
351382 "string" : Style (color = "#093069" ),
352383 "string.documentation" : Style (color = "#093069" ),
353384 "comment" : Style (color = "#6a737d" ),
385+ "heading.marker" : Style (color = "#A4A4A4" ),
386+ "type" : Style (color = "#A4A4A4" ),
387+ "type.class" : Style (color = "#A4A4A4" ),
388+ "type.builtin" : Style (color = "#7DAF9C" ),
354389 "keyword" : Style (color = "#d73a49" ),
355390 "operator" : Style (color = "#0450AE" ),
356391 "conditional" : Style (color = "#CF222E" ),
@@ -373,12 +408,18 @@ def builtin_themes(cls) -> list[TextAreaTheme]:
373408 "yaml.field" : Style (color = "#6639BB" ),
374409 "json.label" : Style (color = "#6639BB" ),
375410 "toml.type" : Style (color = "#6639BB" ),
411+ "css.property" : Style (color = "#6639BB" ),
376412 "heading" : Style (color = "#24292e" , bold = True ),
377413 "bold" : Style (bold = True ),
378414 "italic" : Style (italic = True ),
379415 "strikethrough" : Style (strike = True ),
380- "link" : Style (color = "#40A6FF" , underline = True ),
416+ "link.uri" : Style (color = "#40A6FF" , underline = True ),
417+ "link.label" : Style (color = "#6639BB" ),
418+ "list.marker" : Style (color = "#A4A4A4" ),
381419 "inline_code" : Style (color = "#093069" ),
420+ "punctuation.bracket" : Style (color = "#24292e" ),
421+ "punctuation.delimiter" : Style (color = "#24292e" ),
422+ "punctuation.special" : Style (color = "#24292e" ),
382423 },
383424)
384425
0 commit comments