diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2011-02-21 00:59:20 -0500 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2011-02-21 00:59:20 -0500 |
commit | 6b483b66430254ac219305874dce0ee15ab09eda (patch) | |
tree | 2c50ee30d5dfc76b99324fb2e0b42de0f73f4442 /etc/themes | |
parent | 50a4e25afa6d4bce3b0d5ec217b257a161ba8973 (diff) | |
download | emacs-6b483b66430254ac219305874dce0ee15ab09eda.tar.gz |
* themes/tango-dark-theme.el: Tweak background on low-color terminals.
Diffstat (limited to 'etc/themes')
-rw-r--r-- | etc/themes/tango-dark-theme.el | 8 |
1 files changed, 7 insertions, 1 deletions
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)))) |