diff options
| author | Miles Bader | 2005-03-22 05:05:50 +0000 |
|---|---|---|
| committer | Miles Bader | 2005-03-22 05:05:50 +0000 |
| commit | 0c04baa6c567d68b5baebab9c28c35a5e697ef79 (patch) | |
| tree | 682ef8947b66c936f9d9abf5008a257710d0bfca | |
| parent | 28c22055e5965be089acffb85da35c2f5f134c1e (diff) | |
| download | emacs-0c04baa6c567d68b5baebab9c28c35a5e697ef79.tar.gz 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.
| -rw-r--r-- | lisp/progmodes/gdb-ui.el | 31 |
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[] = { | |||
| 1161 | "\x3c\x7e\xff\xff\xff\xff\x7e\x3c")) | 1161 | "\x3c\x7e\xff\xff\xff\xff\x7e\x3c")) |
| 1162 | 1162 | ||
| 1163 | (defface breakpoint-enabled | 1163 | (defface breakpoint-enabled |
| 1164 | '((t | 1164 | ;; On ttys, we don't inherit from the `fringe' face because that |
| 1165 | :inherit fringe | 1165 | ;; doesn't seem to do the right thing in some cases (?), whereas |
| 1166 | ;; it's required on non-tty displays to get the background right. | ||
| 1167 | '((((type tty)) | ||
| 1166 | :weight bold | 1168 | :weight bold |
| 1167 | :foreground "red")) | 1169 | :foreground "red") |
| 1170 | (t | ||
| 1171 | :weight bold | ||
| 1172 | :foreground "red" | ||
| 1173 | :inherit fringe)) | ||
| 1168 | "Face for enabled breakpoint icon in fringe." | 1174 | "Face for enabled breakpoint icon in fringe." |
| 1169 | :group 'gud) | 1175 | :group 'gud) |
| 1170 | ;; compatibility alias for old name | 1176 | ;; compatibility alias for old name |
| 1171 | (put 'breakpoint-enabled-bitmap-face 'face-alias 'breakpoint-enabled) | 1177 | (put 'breakpoint-enabled-bitmap-face 'face-alias 'breakpoint-enabled) |
| 1172 | 1178 | ||
| 1173 | (defface breakpoint-disabled | 1179 | (defface breakpoint-disabled |
| 1174 | '((t | 1180 | ;; We use different values of grey for different background types, |
| 1175 | :inherit fringe | 1181 | ;; so that on low-color displays it will end up as something visible |
| 1176 | :foreground "grey60")) | 1182 | ;; if it has to be approximated. On ttys, we don't inherit from the |
| 1183 | ;; `fringe' face because that doesn't seem to do the right thing in | ||
| 1184 | ;; some cases (?), whereas it's required on non-tty displays to get | ||
| 1185 | ;; the background right. | ||
| 1186 | '((((type tty) (background dark)) | ||
| 1187 | :foreground "grey60") | ||
| 1188 | (((type tty) (background light)) | ||
| 1189 | :foreground "grey40") | ||
| 1190 | (((background dark)) | ||
| 1191 | :foreground "grey60" | ||
| 1192 | :inherit fringe) | ||
| 1193 | (((background light)) | ||
| 1194 | :foreground "grey40" | ||
| 1195 | :inherit fringe)) | ||
| 1177 | "Face for disabled breakpoint icon in fringe." | 1196 | "Face for disabled breakpoint icon in fringe." |
| 1178 | :group 'gud) | 1197 | :group 'gud) |
| 1179 | ;; compatibility alias for old name | 1198 | ;; compatibility alias for old name |