From 6b483b66430254ac219305874dce0ee15ab09eda Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Mon, 21 Feb 2011 00:59:20 -0500 Subject: [PATCH] * themes/tango-dark-theme.el: Tweak background on low-color terminals. --- etc/ChangeLog | 5 +++++ etc/themes/tango-dark-theme.el | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/etc/ChangeLog b/etc/ChangeLog index ac6ac7df00e..74787c3de3b 100644 --- a/etc/ChangeLog +++ b/etc/ChangeLog @@ -1,3 +1,8 @@ +2011-02-21 Chong Yidong + + * themes/tango-dark-theme.el: Tweak background on low-color + terminals. + 2011-02-17 Ken Manheimer * etc/images/icons/allout-widgets/dark-bg, diff --git a/etc/themes/tango-dark-theme.el b/etc/themes/tango-dark-theme.el index 613c98f505a..a5731ab7d7d 100644 --- a/etc/themes/tango-dark-theme.el +++ b/etc/themes/tango-dark-theme.el @@ -49,7 +49,13 @@ Semantic, and Ansi-Color faces are included.") (custom-theme-set-faces 'tango-dark - `(default ((,class (:foreground ,alum-1 :background ,alum-6)))) + ;; Ensure sufficient contrast on low-color terminals. + `(default ((((class color) (min-colors 4096)) + (:foreground ,alum-1 :background ,alum-6)) + (((class color) (min-colors 256)) + (:foreground ,alum-1 :background "#222")) + (,class + (:foreground ,alum-1 :background "black")))) `(cursor ((,class (:foreground ,alum-6 :background ,butter-1)))) ;; Highlighting faces `(fringe ((,class (:background ,alum-7))))