summaryrefslogtreecommitdiff
path: root/lisp/progmodes/gdb-ui.el
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>2005-03-22 05:05:50 +0000
committerMiles Bader <miles@gnu.org>2005-03-22 05:05:50 +0000
commit0c04baa6c567d68b5baebab9c28c35a5e697ef79 (patch)
tree682ef8947b66c936f9d9abf5008a257710d0bfca /lisp/progmodes/gdb-ui.el
parent28c22055e5965be089acffb85da35c2f5f134c1e (diff)
downloademacs-0c04baa6c567d68b5baebab9c28c35a5e697ef79.tar.gz
emacs-0c04baa6c567d68b5baebab9c28c35a5e697ef79.tar.bz2
emacs-0c04baa6c567d68b5baebab9c28c35a5e697ef79.zip
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-199
Tweak gdb-ui breakpoint faces 2005-03-22 Miles Bader <miles@gnu.org> * lisp/progmodes/gdb-ui.el (breakpoint-enabled, breakpoint-disabled): Tweak details to look good on both ttys and bitmap displays, light or dark background, etc.
Diffstat (limited to 'lisp/progmodes/gdb-ui.el')
-rw-r--r--lisp/progmodes/gdb-ui.el31
1 files changed, 25 insertions, 6 deletions
diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el
index e339dbc3b19..89a69aaf2d6 100644
--- a/lisp/progmodes/gdb-ui.el
+++ b/lisp/progmodes/gdb-ui.el
@@ -1161,19 +1161,38 @@ static char *magick[] = {
"\x3c\x7e\xff\xff\xff\xff\x7e\x3c"))
(defface breakpoint-enabled
- '((t
- :inherit fringe
+ ;; On ttys, we don't inherit from the `fringe' face because that
+ ;; doesn't seem to do the right thing in some cases (?), whereas
+ ;; it's required on non-tty displays to get the background right.
+ '((((type tty))
:weight bold
- :foreground "red"))
+ :foreground "red")
+ (t
+ :weight bold
+ :foreground "red"
+ :inherit fringe))
"Face for enabled breakpoint icon in fringe."
:group 'gud)
;; compatibility alias for old name
(put 'breakpoint-enabled-bitmap-face 'face-alias 'breakpoint-enabled)
(defface breakpoint-disabled
- '((t
- :inherit fringe
- :foreground "grey60"))
+ ;; We use different values of grey for different background types,
+ ;; so that on low-color displays it will end up as something visible
+ ;; if it has to be approximated. On ttys, we don't inherit from the
+ ;; `fringe' face because that doesn't seem to do the right thing in
+ ;; some cases (?), whereas it's required on non-tty displays to get
+ ;; the background right.
+ '((((type tty) (background dark))
+ :foreground "grey60")
+ (((type tty) (background light))
+ :foreground "grey40")
+ (((background dark))
+ :foreground "grey60"
+ :inherit fringe)
+ (((background light))
+ :foreground "grey40"
+ :inherit fringe))
"Face for disabled breakpoint icon in fringe."
:group 'gud)
;; compatibility alias for old name