]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: make faces readable on dark backgrounds.
authorMatt Armstrong <marmstrong@google.com>
Fri, 28 Oct 2016 22:31:42 +0000 (15:31 -0700)
committerDavid Bremner <david@tethera.net>
Wed, 2 Nov 2016 10:40:20 +0000 (07:40 -0300)
The notmuch-tag-flagged, notmuch-search-flagged-face and
notmuch-crypto-part-header faces defaulted to "blue", which is nearly
unreadable when a dark background is in use.  This is addressed by using
"LightBlue1" for dark backgrounds.

As a side effect, these faces are now no-op definitions for grayscale or
mono displays.

emacs/notmuch-crypto.el
emacs/notmuch-tag.el
emacs/notmuch.el

index e376aa8022d237caee6781eb29eb28e4475dd2bd..68a7e9f3735a814ce70b55948c3cf6ade687aea9 100644 (file)
@@ -42,7 +42,12 @@ mode."
   :group 'notmuch-crypto)
 
 (defface notmuch-crypto-part-header
-  '((t (:foreground "blue")))
+  '((((class color)
+      (background dark))
+     (:foreground "LightBlue1"))
+    (((class color)
+      (background light))
+     (:foreground "blue")))
   "Face used for crypto parts headers."
   :group 'notmuch-crypto
   :group 'notmuch-faces)
index 1b2ce5c2d0feca669f3ccfa4aa19b56a714f6d89..09d182dfb818d6844efdab4ca3d626e9f2dd7d89 100644 (file)
@@ -115,7 +115,12 @@ Used in the default value of `notmuch-tag-formats`."
   :group 'notmuch-faces)
 
 (defface notmuch-tag-flagged
-  '((t :foreground "blue"))
+  '((((class color)
+      (background dark))
+     (:foreground "LightBlue1"))
+    (((class color)
+      (background light))
+     (:foreground "blue")))
   "Face used for the flagged tag.
 
 Used in the default value of `notmuch-tag-formats`."
index ef4bb2b1d16a77edb851714d0dacc3f856b20bdf..44519b7abc55449e3b00a5a63ef19cefc35cb7f6 100644 (file)
@@ -313,7 +313,11 @@ there will be called at other points of notmuch execution."
   :group 'notmuch-faces)
 
 (defface notmuch-search-flagged-face
-  '((t
+  '((((class color)
+      (background dark))
+     (:foreground "LightBlue1"))
+    (((class color)
+      (background light))
      (:foreground "blue")))
   "Face used in search mode face for flagged threads.