diff options
| author | Bill Wohler | 2005-11-04 23:42:28 +0000 |
|---|---|---|
| committer | Bill Wohler | 2005-11-04 23:42:28 +0000 |
| commit | 94abd6b7545b752f5c4d0a28e8f98eec6a67f737 (patch) | |
| tree | 8f31bbc291db8008d513280d98df82a8d38845a2 | |
| parent | 45f6a663d781920a22a7ef87cece08458b8adc83 (diff) | |
| download | emacs-94abd6b7545b752f5c4d0a28e8f98eec6a67f737.tar.gz emacs-94abd6b7545b752f5c4d0a28e8f98eec6a67f737.zip | |
Refactor faces. Move grayscale requirements last before t. Use uniform
line breaks.
| -rw-r--r-- | lisp/mh-e/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/mh-e/mh-customize.el | 165 |
2 files changed, 114 insertions, 56 deletions
diff --git a/lisp/mh-e/ChangeLog b/lisp/mh-e/ChangeLog index 4e8890287d4..258ff5d11d7 100644 --- a/lisp/mh-e/ChangeLog +++ b/lisp/mh-e/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2005-11-04 Bill Wohler <wohler@newt.com> | ||
| 2 | |||
| 3 | * mh-customize.el: Refactor faces. Move grayscale requirements | ||
| 4 | last before t. Use uniform line breaks. | ||
| 5 | |||
| 1 | 2005-11-03 Dan Nicolaescu <dann@ics.uci.edu> | 6 | 2005-11-03 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 7 | ||
| 3 | * mh-customize.el (mh-folder-body-face, mh-folder-cur-msg-face) | 8 | * mh-customize.el (mh-folder-body-face, mh-folder-cur-msg-face) |
diff --git a/lisp/mh-e/mh-customize.el b/lisp/mh-e/mh-customize.el index 2207f2e6aa9..24e73e0be3e 100644 --- a/lisp/mh-e/mh-customize.el +++ b/lisp/mh-e/mh-customize.el | |||
| @@ -2253,12 +2253,18 @@ will be removed from the unseen sequence." | |||
| 2253 | (defvar mh-folder-body-face 'mh-folder-body | 2253 | (defvar mh-folder-body-face 'mh-folder-body |
| 2254 | "Face used to highlight body text in MH-Folder buffers.") | 2254 | "Face used to highlight body text in MH-Folder buffers.") |
| 2255 | (defface mh-folder-body | 2255 | (defface mh-folder-body |
| 2256 | '((((class grayscale) (background light)) (:foreground "DimGray" :italic t)) | 2256 | '((((class color) (min-colors 88) (background light)) |
| 2257 | (((class grayscale) (background dark)) (:foreground "LightGray" :italic t)) | 2257 | (:foreground "RosyBrown")) |
| 2258 | (((class color) (min-colors 88) (background light)) (:foreground "RosyBrown")) | 2258 | (((class color) (min-colors 88) (background dark)) |
| 2259 | (((class color) (min-colors 88) (background dark)) (:foreground "LightSalmon")) | 2259 | (:foreground "LightSalmon")) |
| 2260 | (((class color)) (:foreground "green")) | 2260 | (((class color)) |
| 2261 | (t (:italic t))) | 2261 | (:foreground "green")) |
| 2262 | (((class grayscale) (background light)) | ||
| 2263 | (:foreground "DimGray" :italic t)) | ||
| 2264 | (((class grayscale) (background dark)) | ||
| 2265 | (:foreground "LightGray" :italic t)) | ||
| 2266 | (t | ||
| 2267 | (:italic t))) | ||
| 2262 | "Face used to highlight body text in MH-Folder buffers." | 2268 | "Face used to highlight body text in MH-Folder buffers." |
| 2263 | :group 'mh-folder-faces) | 2269 | :group 'mh-folder-faces) |
| 2264 | 2270 | ||
| @@ -2273,19 +2279,26 @@ will be removed from the unseen sequence." | |||
| 2273 | (:background "DarkOliveGreen4")) | 2279 | (:background "DarkOliveGreen4")) |
| 2274 | (((class color)) | 2280 | (((class color)) |
| 2275 | (:background "LightGreen")) | 2281 | (:background "LightGreen")) |
| 2276 | (t (:underline t))) | 2282 | (t |
| 2283 | (:underline t))) | ||
| 2277 | "Face used for the current message line in MH-Folder buffers." | 2284 | "Face used for the current message line in MH-Folder buffers." |
| 2278 | :group 'mh-folder-faces) | 2285 | :group 'mh-folder-faces) |
| 2279 | 2286 | ||
| 2280 | (defvar mh-folder-cur-msg-number-face 'mh-folder-cur-msg-number | 2287 | (defvar mh-folder-cur-msg-number-face 'mh-folder-cur-msg-number |
| 2281 | "Face used to highlight the current message in MH-Folder buffers.") | 2288 | "Face used to highlight the current message in MH-Folder buffers.") |
| 2282 | (defface mh-folder-cur-msg-number | 2289 | (defface mh-folder-cur-msg-number |
| 2283 | '((((class grayscale) (background light)) (:foreground "LightGray" :bold t)) | 2290 | '((((class color) (min-colors 88) (background light)) |
| 2284 | (((class grayscale) (background dark)) (:foreground "DimGray" :bold t)) | 2291 | (:foreground "Purple")) |
| 2285 | (((class color) (min-colors 88) (background light)) (:foreground "Purple")) | 2292 | (((class color) (min-colors 88) (background dark)) |
| 2286 | (((class color) (min-colors 88) (background dark)) (:foreground "Cyan")) | 2293 | (:foreground "Cyan")) |
| 2287 | (((class color)) (:foreground "cyan" :weight bold)) | 2294 | (((class color)) |
| 2288 | (t (:bold t))) | 2295 | (:foreground "cyan" :weight bold)) |
| 2296 | (((class grayscale) (background light)) | ||
| 2297 | (:foreground "LightGray" :bold t)) | ||
| 2298 | (((class grayscale) (background dark)) | ||
| 2299 | (:foreground "DimGray" :bold t)) | ||
| 2300 | (t | ||
| 2301 | (:bold t))) | ||
| 2289 | "Face used to highlight the current message in MH-Folder buffers." | 2302 | "Face used to highlight the current message in MH-Folder buffers." |
| 2290 | :group 'mh-folder-faces) | 2303 | :group 'mh-folder-faces) |
| 2291 | 2304 | ||
| @@ -2332,14 +2345,18 @@ will be removed from the unseen sequence." | |||
| 2332 | (defvar mh-folder-refiled-face 'mh-folder-refiled | 2345 | (defvar mh-folder-refiled-face 'mh-folder-refiled |
| 2333 | "Face used to highlight refiled messages in MH-Folder buffers.") | 2346 | "Face used to highlight refiled messages in MH-Folder buffers.") |
| 2334 | (defface mh-folder-refiled | 2347 | (defface mh-folder-refiled |
| 2335 | '((((class grayscale) (background light)) | 2348 | '((((class color) (min-colors 88) (background light)) |
| 2349 | (:foreground "DarkGoldenrod")) | ||
| 2350 | (((class color) (min-colors 88) (background dark)) | ||
| 2351 | (:foreground "LightGoldenrod")) | ||
| 2352 | (((class color)) | ||
| 2353 | (:foreground "yellow" :weight light)) | ||
| 2354 | (((class grayscale) (background light)) | ||
| 2336 | (:foreground "Gray90" :bold t :italic t)) | 2355 | (:foreground "Gray90" :bold t :italic t)) |
| 2337 | (((class grayscale) (background dark)) | 2356 | (((class grayscale) (background dark)) |
| 2338 | (:foreground "DimGray" :bold t :italic t)) | 2357 | (:foreground "DimGray" :bold t :italic t)) |
| 2339 | (((class color) (min-colors 88) (background light)) (:foreground "DarkGoldenrod")) | 2358 | (t |
| 2340 | (((class color) (min-colors 88) (background dark)) (:foreground "LightGoldenrod")) | 2359 | (:bold t :italic t))) |
| 2341 | (((class color)) (:foreground "yellow" :weight light)) | ||
| 2342 | (t (:bold t :italic t))) | ||
| 2343 | "Face used to highlight refiled messages in MH-Folder buffers." | 2360 | "Face used to highlight refiled messages in MH-Folder buffers." |
| 2344 | :group 'mh-folder-faces) | 2361 | :group 'mh-folder-faces) |
| 2345 | 2362 | ||
| @@ -2358,9 +2375,12 @@ will be removed from the unseen sequence." | |||
| 2358 | :group 'mh-folder-faces) | 2375 | :group 'mh-folder-faces) |
| 2359 | 2376 | ||
| 2360 | (defface mh-folder-tick | 2377 | (defface mh-folder-tick |
| 2361 | '((((class color) (background dark)) (:background "#dddf7e")) | 2378 | '((((class color) (background dark)) |
| 2362 | (((class color) (background light)) (:background "#dddf7e")) | 2379 | (:background "#dddf7e")) |
| 2363 | (t (:underline t))) | 2380 | (((class color) (background light)) |
| 2381 | (:background "#dddf7e")) | ||
| 2382 | (t | ||
| 2383 | (:underline t))) | ||
| 2364 | "Face used to show ticked messages." | 2384 | "Face used to show ticked messages." |
| 2365 | :group 'mh-folder-faces) | 2385 | :group 'mh-folder-faces) |
| 2366 | 2386 | ||
| @@ -2375,12 +2395,18 @@ will be removed from the unseen sequence." | |||
| 2375 | (defvar mh-folder-to-face 'mh-folder-to | 2395 | (defvar mh-folder-to-face 'mh-folder-to |
| 2376 | "Face used to highlight the To: string in MH-Folder buffers.") | 2396 | "Face used to highlight the To: string in MH-Folder buffers.") |
| 2377 | (defface mh-folder-to | 2397 | (defface mh-folder-to |
| 2378 | '((((class grayscale) (background light)) (:foreground "DimGray" :italic t)) | 2398 | '((((class color) (min-colors 88) (background light)) |
| 2379 | (((class grayscale) (background dark)) (:foreground "LightGray" :italic t)) | 2399 | (:foreground "RosyBrown")) |
| 2380 | (((class color) (min-colors 88) (background light)) (:foreground "RosyBrown")) | 2400 | (((class color) (min-colors 88) (background dark)) |
| 2381 | (((class color) (min-colors 88) (background dark)) (:foreground "LightSalmon")) | 2401 | (:foreground "LightSalmon")) |
| 2382 | (((class color)) (:foreground "green")) | 2402 | (((class color)) |
| 2383 | (t (:italic t))) | 2403 | (:foreground "green")) |
| 2404 | (((class grayscale) (background light)) | ||
| 2405 | (:foreground "DimGray" :italic t)) | ||
| 2406 | (((class grayscale) (background dark)) | ||
| 2407 | (:foreground "LightGray" :italic t)) | ||
| 2408 | (t | ||
| 2409 | (:italic t))) | ||
| 2384 | "Face used to highlight the To: string in MH-Folder buffers." | 2410 | "Face used to highlight the To: string in MH-Folder buffers." |
| 2385 | :group 'mh-folder-faces) | 2411 | :group 'mh-folder-faces) |
| 2386 | 2412 | ||
| @@ -2409,7 +2435,8 @@ will be removed from the unseen sequence." | |||
| 2409 | (:background "gray90")) | 2435 | (:background "gray90")) |
| 2410 | (((class color) (background dark)) | 2436 | (((class color) (background dark)) |
| 2411 | (:background "gray10")) | 2437 | (:background "gray10")) |
| 2412 | (t (:bold t))) | 2438 | (t |
| 2439 | (:bold t))) | ||
| 2413 | "Face used to display header fields in draft buffers." | 2440 | "Face used to display header fields in draft buffers." |
| 2414 | :group 'mh-letter-faces) | 2441 | :group 'mh-letter-faces) |
| 2415 | 2442 | ||
| @@ -2420,45 +2447,62 @@ will be removed from the unseen sequence." | |||
| 2420 | (defvar mh-show-cc-face 'mh-show-cc | 2447 | (defvar mh-show-cc-face 'mh-show-cc |
| 2421 | "Face used to highlight cc: header fields.") | 2448 | "Face used to highlight cc: header fields.") |
| 2422 | (defface mh-show-cc | 2449 | (defface mh-show-cc |
| 2423 | '((((class grayscale) (background light)) | 2450 | '((((class color) (min-colors 88) (background light)) |
| 2451 | (:foreground "DarkGoldenrod")) | ||
| 2452 | (((class color) (min-colors 88) (background dark)) | ||
| 2453 | (:foreground "LightGoldenrod")) | ||
| 2454 | (((class color)) | ||
| 2455 | (:foreground "yellow" :weight light)) | ||
| 2456 | (((class grayscale) (background light)) | ||
| 2424 | (:foreground "Gray90" :bold t :italic t)) | 2457 | (:foreground "Gray90" :bold t :italic t)) |
| 2425 | (((class grayscale) (background dark)) | 2458 | (((class grayscale) (background dark)) |
| 2426 | (:foreground "DimGray" :bold t :italic t)) | 2459 | (:foreground "DimGray" :bold t :italic t)) |
| 2427 | (((class color) (min-colors 88) (background light)) (:foreground "DarkGoldenrod")) | 2460 | (t |
| 2428 | (((class color) (min-colors 88) (background dark)) (:foreground "LightGoldenrod")) | 2461 | (:bold t :italic t))) |
| 2429 | (((class color)) (:foreground "yellow" :weight light)) | ||
| 2430 | (t (:bold t :italic t))) | ||
| 2431 | "Face used to highlight cc: header fields." | 2462 | "Face used to highlight cc: header fields." |
| 2432 | :group 'mh-show-faces) | 2463 | :group 'mh-show-faces) |
| 2433 | 2464 | ||
| 2434 | (defvar mh-show-date-face 'mh-show-date | 2465 | (defvar mh-show-date-face 'mh-show-date |
| 2435 | "Face used to highlight the Date: header field.") | 2466 | "Face used to highlight the Date: header field.") |
| 2436 | (defface mh-show-date | 2467 | (defface mh-show-date |
| 2437 | '((((class color) (min-colors 88) (background light)) (:foreground "ForestGreen")) | 2468 | '((((class color) (min-colors 88) (background light)) |
| 2438 | (((class color) (min-colors 88) (background dark)) (:foreground "PaleGreen")) | 2469 | (:foreground "ForestGreen")) |
| 2439 | (((class color)) (:foreground "green")) | 2470 | (((class color) (min-colors 88) (background dark)) |
| 2440 | (((class grayscale) (background light)) (:foreground "Gray90" :bold t)) | 2471 | (:foreground "PaleGreen")) |
| 2441 | (((class grayscale) (background dark)) (:foreground "DimGray" :bold t)) | 2472 | (((class color)) |
| 2442 | (t (:bold t :underline t))) | 2473 | (:foreground "green")) |
| 2474 | (((class grayscale) (background light)) | ||
| 2475 | (:foreground "Gray90" :bold t)) | ||
| 2476 | (((class grayscale) (background dark)) | ||
| 2477 | (:foreground "DimGray" :bold t)) | ||
| 2478 | (t | ||
| 2479 | (:bold t :underline t))) | ||
| 2443 | "Face used to highlight the Date: header field." | 2480 | "Face used to highlight the Date: header field." |
| 2444 | :group 'mh-show-faces) | 2481 | :group 'mh-show-faces) |
| 2445 | 2482 | ||
| 2446 | (defvar mh-show-header-face 'mh-show-header | 2483 | (defvar mh-show-header-face 'mh-show-header |
| 2447 | "Face used to deemphasize unspecified header fields.") | 2484 | "Face used to deemphasize unspecified header fields.") |
| 2448 | (defface mh-show-header | 2485 | (defface mh-show-header |
| 2449 | '((((class color) (min-colors 88) (background light)) (:foreground "RosyBrown")) | 2486 | '((((class color) (min-colors 88) (background light)) |
| 2450 | (((class color) (min-colors 88) (background dark)) (:foreground "LightSalmon")) | 2487 | (:foreground "RosyBrown")) |
| 2451 | (((class color)) (:foreground "green")) | 2488 | (((class color) (min-colors 88) (background dark)) |
| 2452 | (((class grayscale) (background light)) (:foreground "DimGray" :italic t)) | 2489 | (:foreground "LightSalmon")) |
| 2453 | (((class grayscale) (background dark)) (:foreground "LightGray" :italic t)) | 2490 | (((class color)) |
| 2454 | (t (:italic t))) | 2491 | (:foreground "green")) |
| 2492 | (((class grayscale) (background light)) | ||
| 2493 | (:foreground "DimGray" :italic t)) | ||
| 2494 | (((class grayscale) (background dark)) | ||
| 2495 | (:foreground "LightGray" :italic t)) | ||
| 2496 | (t | ||
| 2497 | (:italic t))) | ||
| 2455 | "Face used to deemphasize unspecified header fields." | 2498 | "Face used to deemphasize unspecified header fields." |
| 2456 | :group 'mh-show-faces) | 2499 | :group 'mh-show-faces) |
| 2457 | 2500 | ||
| 2458 | (defvar mh-show-pgg-good-face 'mh-show-pgg-good | 2501 | (defvar mh-show-pgg-good-face 'mh-show-pgg-good |
| 2459 | "Face used to highlight a good PGG signature.") | 2502 | "Face used to highlight a good PGG signature.") |
| 2460 | (defface mh-show-pgg-good | 2503 | (defface mh-show-pgg-good |
| 2461 | '((t (:bold t :foreground "LimeGreen"))) | 2504 | '((t |
| 2505 | (:bold t :foreground "LimeGreen"))) | ||
| 2462 | "Face used to highlight a good PGG signature." | 2506 | "Face used to highlight a good PGG signature." |
| 2463 | :group 'mh-show-faces) | 2507 | :group 'mh-show-faces) |
| 2464 | 2508 | ||
| @@ -2466,7 +2510,8 @@ will be removed from the unseen sequence." | |||
| 2466 | "Face used to highlight a PGG signature whose status is unknown. | 2510 | "Face used to highlight a PGG signature whose status is unknown. |
| 2467 | This face is also used for a signature when the signer is untrusted.") | 2511 | This face is also used for a signature when the signer is untrusted.") |
| 2468 | (defface mh-show-pgg-unknown | 2512 | (defface mh-show-pgg-unknown |
| 2469 | '((t (:bold t :foreground "DarkGoldenrod2"))) | 2513 | '((t |
| 2514 | (:bold t :foreground "DarkGoldenrod2"))) | ||
| 2470 | "Face used to highlight a PGG signature whose status is unknown. | 2515 | "Face used to highlight a PGG signature whose status is unknown. |
| 2471 | This face is also used for a signature when the signer is untrusted." | 2516 | This face is also used for a signature when the signer is untrusted." |
| 2472 | :group 'mh-show-faces) | 2517 | :group 'mh-show-faces) |
| @@ -2474,12 +2519,14 @@ This face is also used for a signature when the signer is untrusted." | |||
| 2474 | (defvar mh-show-pgg-bad-face 'mh-show-pgg-bad | 2519 | (defvar mh-show-pgg-bad-face 'mh-show-pgg-bad |
| 2475 | "Face used to highlight a bad PGG signature.") | 2520 | "Face used to highlight a bad PGG signature.") |
| 2476 | (defface mh-show-pgg-bad | 2521 | (defface mh-show-pgg-bad |
| 2477 | '((t (:bold t :foreground "DeepPink1"))) | 2522 | '((t |
| 2523 | (:bold t :foreground "DeepPink1"))) | ||
| 2478 | "Face used to highlight a bad PGG signature." | 2524 | "Face used to highlight a bad PGG signature." |
| 2479 | :group 'mh-show-faces) | 2525 | :group 'mh-show-faces) |
| 2480 | 2526 | ||
| 2481 | (defface mh-show-signature | 2527 | (defface mh-show-signature |
| 2482 | '((t (:italic t))) | 2528 | '((t |
| 2529 | (:italic t))) | ||
| 2483 | "Face used to highlight the message signature." | 2530 | "Face used to highlight the message signature." |
| 2484 | :group 'mh-show-faces) | 2531 | :group 'mh-show-faces) |
| 2485 | 2532 | ||
| @@ -2488,12 +2535,14 @@ This face is also used for a signature when the signer is untrusted." | |||
| 2488 | (if (boundp 'facemenu-unlisted-faces) | 2535 | (if (boundp 'facemenu-unlisted-faces) |
| 2489 | (add-to-list 'facemenu-unlisted-faces "^mh-show")) | 2536 | (add-to-list 'facemenu-unlisted-faces "^mh-show")) |
| 2490 | (defface mh-show-to | 2537 | (defface mh-show-to |
| 2491 | '((((class grayscale) (background light)) | 2538 | '((((class color) (background light)) |
| 2539 | (:foreground "SaddleBrown")) | ||
| 2540 | (((class color) (background dark)) | ||
| 2541 | (:foreground "burlywood")) | ||
| 2542 | (((class grayscale) (background light)) | ||
| 2492 | (:foreground "DimGray" :underline t)) | 2543 | (:foreground "DimGray" :underline t)) |
| 2493 | (((class grayscale) (background dark)) | 2544 | (((class grayscale) (background dark)) |
| 2494 | (:foreground "LightGray" :underline t)) | 2545 | (:foreground "LightGray" :underline t)) |
| 2495 | (((class color) (background light)) (:foreground "SaddleBrown")) | ||
| 2496 | (((class color) (background dark)) (:foreground "burlywood")) | ||
| 2497 | (t (:underline t))) | 2546 | (t (:underline t))) |
| 2498 | "Face used to highlight the To: header field." | 2547 | "Face used to highlight the To: header field." |
| 2499 | :group 'mh-show-faces) | 2548 | :group 'mh-show-faces) |
| @@ -2511,7 +2560,8 @@ This face is also used for a signature when the signer is untrusted." | |||
| 2511 | :group 'mh-show-faces) | 2560 | :group 'mh-show-faces) |
| 2512 | 2561 | ||
| 2513 | (defface mh-show-xface | 2562 | (defface mh-show-xface |
| 2514 | '((t (:foreground "black" :background "white"))) | 2563 | '((t |
| 2564 | (:foreground "black" :background "white"))) | ||
| 2515 | "Face used to display the X-Face image. | 2565 | "Face used to display the X-Face image. |
| 2516 | The background and foreground is used in the image." | 2566 | The background and foreground is used in the image." |
| 2517 | :group 'mh-show-faces) | 2567 | :group 'mh-show-faces) |
| @@ -2537,17 +2587,20 @@ The background and foreground is used in the image." | |||
| 2537 | (:foreground "red1" :underline t)) | 2587 | (:foreground "red1" :underline t)) |
| 2538 | (((class color) (background dark)) | 2588 | (((class color) (background dark)) |
| 2539 | (:foreground "red1" :underline t)) | 2589 | (:foreground "red1" :underline t)) |
| 2540 | (t (:underline t))) | 2590 | (t |
| 2591 | (:underline t))) | ||
| 2541 | "Face used for the current folder." | 2592 | "Face used for the current folder." |
| 2542 | :group 'mh-speed-faces) | 2593 | :group 'mh-speed-faces) |
| 2543 | 2594 | ||
| 2544 | (defface mh-speedbar-folder-with-unseen-messages | 2595 | (defface mh-speedbar-folder-with-unseen-messages |
| 2545 | '((t (:inherit mh-speedbar-folder :bold t))) | 2596 | '((t |
| 2597 | (:inherit mh-speedbar-folder :bold t))) | ||
| 2546 | "Face used for folders in the speedbar buffer which have unread messages." | 2598 | "Face used for folders in the speedbar buffer which have unread messages." |
| 2547 | :group 'mh-speed-faces) | 2599 | :group 'mh-speed-faces) |
| 2548 | 2600 | ||
| 2549 | (defface mh-speedbar-selected-folder-with-unseen-messages | 2601 | (defface mh-speedbar-selected-folder-with-unseen-messages |
| 2550 | '((t (:inherit mh-speedbar-selected-folder :bold t))) | 2602 | '((t |
| 2603 | (:inherit mh-speedbar-selected-folder :bold t))) | ||
| 2551 | "Face used for the current folder when it has unread messages." | 2604 | "Face used for the current folder when it has unread messages." |
| 2552 | :group 'mh-speed-faces) | 2605 | :group 'mh-speed-faces) |
| 2553 | 2606 | ||