[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] externals/caml 4c414a0 180/197: Emacs: Improve colors on dark t
From: |
Stefan Monnier |
Subject: |
[nongnu] externals/caml 4c414a0 180/197: Emacs: Improve colors on dark themes |
Date: |
Sat, 21 Nov 2020 01:20:02 -0500 (EST) |
branch: externals/caml
commit 4c414a055c0d8a5136e430aaeecba319713c6741
Author: Wilfred Hughes <me@wilfred.me.uk>
Commit: Wilfred Hughes <me@wilfred.me.uk>
Emacs: Improve colors on dark themes
Previously, some of the background colors were close to white, making
pale text difficult to read.
---
caml-types.el | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/caml-types.el b/caml-types.el
index 6d6775a..e923685 100644
--- a/caml-types.el
+++ b/caml-types.el
@@ -85,7 +85,9 @@ type call ident")
(setq caml-types-location-re
(concat "^" caml-types-position-re " " caml-types-position-re)))
-(defface caml-types-expr-face '((t :background "#88FF44"))
+(defface caml-types-expr-face
+ '((((class color) (background light)) :background "#88FF44")
+ (((class color) (background dark)) :background "dark green"))
"Face for highlighting expressions and types")
(defvar caml-types-expr-ovl (make-overlay 1 1))
@@ -97,7 +99,9 @@ type call ident")
(defvar caml-types-typed-ovl (make-overlay 1 1))
(overlay-put caml-types-typed-ovl 'face 'caml-types-typed-face)
-(defface caml-types-scope-face '((t :background "#BBFFFF"))
+(defface caml-types-scope-face
+ '((((class color) (background light)) :background "#BBFFFF")
+ (((class color) (background dark)) :background "dark blue"))
"Face for highlighting variable scopes.")
(defvar caml-types-scope-ovl (make-overlay 1 1))
@@ -109,7 +113,9 @@ type call ident")
(defvar caml-types-def-ovl (make-overlay 1 1))
(overlay-put caml-types-def-ovl 'face 'caml-types-def-face)
-(defface caml-types-occ-face '((t :background "#44FF44"))
+(defface caml-types-occ-face
+ '((((class color) (background light)) :background "#44FF44")
+ (((class color) (background dark)) :background "dark green"))
"Face for highlighting variable occurrences.")
(defvar caml-types-occ-ovl (make-overlay 1 1))
- [nongnu] externals/caml 16dba2b 150/197: Merge short-paths into a fresh branch of trunk., (continued)
- [nongnu] externals/caml 16dba2b 150/197: Merge short-paths into a fresh branch of trunk., Stefan Monnier, 2020/11/21
- [nongnu] externals/caml f5ba233 152/197: PR#5954 fix 'defface' use in emacs/caml-help.el (patched by 'zakkak'), Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 22ff4ef 153/197: fix undeclared variable, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml d9bc450 156/197: merge branch 4.02 from release 4.02.0 to release 4.02.1, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 633a39e 161/197: Update headers for the new license., Stefan Monnier, 2020/11/21
- [nongnu] externals/caml b499b25 171/197: MPR#7610: caml.el: avoid using deprecated last-command-char variable, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml b2088ca 158/197: GPR#243: Faster test suite, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml a913400 175/197: elisp: cosmetic docstring tweaks, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml c0bf206 169/197: Follow Emacs Lisp conventions for caml.el (#1346), Stefan Monnier, 2020/11/21
- [nongnu] externals/caml f49a296 164/197: caml-types.el: Extract the feedback logic to a separate function., Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 4c414a0 180/197: Emacs: Improve colors on dark themes,
Stefan Monnier <=
- [nongnu] externals/caml 07d301a 174/197: elisp: fixed grammar in docstrings and comments, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 2964c4d 162/197: Add another format to parse compiler output., Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 02f8809 184/197: Emacs: use symbol boundaries in regular expressions, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 4c8c8d3 176/197: makefiles: use 'install' instead of 'cp' in 'make install' targets, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml c9e7f57 186/197: Fix most CheckDoc errors., Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 78ec6be 185/197: Transform the README to Markdown, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 333d2f4 191/197: Improve syntax highlighting, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml adafe8a 190/197: Add OPAM file, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 466d703 194/197: Minor improvements to the README, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 1d6cd46 196/197: Add make target for opam release, Stefan Monnier, 2020/11/21