comparison lisp/gnus/gnus.el @ 42475:1e4516b1d514

2002-01-01 ShengHuo ZHU <zsh@cs.rochester.edu> * message.el, gnus-art.el, gnus.el, gnus-cite.el: Adapt face definitions to use :weight and :slant.
author ShengHuo ZHU <zsh@cs.rochester.edu>
date Wed, 02 Jan 2002 03:36:29 +0000
parents ee1addc05858
children 52d99cc2e9e3
comparison
equal deleted inserted replaced
42474:270e55bf2adb 42475:1e4516b1d514
1 ;;; gnus.el --- a newsreader for GNU Emacs 1 ;;; gnus.el --- a newsreader for GNU Emacs
2 ;; Copyright (C) 1987, 1988, 1989, 1990, 1993, 1994, 1995, 1996, 2 ;; Copyright (C) 1987, 1988, 1989, 1990, 1993, 1994, 1995, 1996, 1997,
3 ;; 1997, 1998, 2000, 2001 Free Software Foundation, Inc. 3 ;; 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
4 4
5 ;; Author: Masanobu UMEDA <umerin@flab.flab.fujitsu.junet> 5 ;; Author: Masanobu UMEDA <umerin@flab.flab.fujitsu.junet>
6 ;; Lars Magne Ingebrigtsen <larsi@gnus.org> 6 ;; Lars Magne Ingebrigtsen <larsi@gnus.org>
7 ;; Keywords: news, mail 7 ;; Keywords: news, mail
8 8
323 ;; update forced when creating new faces. 323 ;; update forced when creating new faces.
324 324
325 (defface gnus-group-news-1-face 325 (defface gnus-group-news-1-face
326 '((((class color) 326 '((((class color)
327 (background dark)) 327 (background dark))
328 (:foreground "PaleTurquoise" :bold t)) 328 (:foreground "PaleTurquoise" :weight bold))
329 (((class color) 329 (((class color)
330 (background light)) 330 (background light))
331 (:foreground "ForestGreen" :bold t)) 331 (:foreground "ForestGreen" :weight bold))
332 (t 332 (t
333 ())) 333 ()))
334 "Level 1 newsgroup face.") 334 "Level 1 newsgroup face.")
335 335
336 (defface gnus-group-news-1-empty-face 336 (defface gnus-group-news-1-empty-face
345 "Level 1 empty newsgroup face.") 345 "Level 1 empty newsgroup face.")
346 346
347 (defface gnus-group-news-2-face 347 (defface gnus-group-news-2-face
348 '((((class color) 348 '((((class color)
349 (background dark)) 349 (background dark))
350 (:foreground "turquoise" :bold t)) 350 (:foreground "turquoise" :weight bold))
351 (((class color) 351 (((class color)
352 (background light)) 352 (background light))
353 (:foreground "CadetBlue4" :bold t)) 353 (:foreground "CadetBlue4" :weight bold))
354 (t 354 (t
355 ())) 355 ()))
356 "Level 2 newsgroup face.") 356 "Level 2 newsgroup face.")
357 357
358 (defface gnus-group-news-2-empty-face 358 (defface gnus-group-news-2-empty-face
367 "Level 2 empty newsgroup face.") 367 "Level 2 empty newsgroup face.")
368 368
369 (defface gnus-group-news-3-face 369 (defface gnus-group-news-3-face
370 '((((class color) 370 '((((class color)
371 (background dark)) 371 (background dark))
372 (:bold t)) 372 (:weight bold))
373 (((class color) 373 (((class color)
374 (background light)) 374 (background light))
375 (:bold t)) 375 (:weight bold))
376 (t 376 (t
377 ())) 377 ()))
378 "Level 3 newsgroup face.") 378 "Level 3 newsgroup face.")
379 379
380 (defface gnus-group-news-3-empty-face 380 (defface gnus-group-news-3-empty-face
389 "Level 3 empty newsgroup face.") 389 "Level 3 empty newsgroup face.")
390 390
391 (defface gnus-group-news-4-face 391 (defface gnus-group-news-4-face
392 '((((class color) 392 '((((class color)
393 (background dark)) 393 (background dark))
394 (:bold t)) 394 (:weight bold))
395 (((class color) 395 (((class color)
396 (background light)) 396 (background light))
397 (:bold t)) 397 (:weight bold))
398 (t 398 (t
399 ())) 399 ()))
400 "Level 4 newsgroup face.") 400 "Level 4 newsgroup face.")
401 401
402 (defface gnus-group-news-4-empty-face 402 (defface gnus-group-news-4-empty-face
411 "Level 4 empty newsgroup face.") 411 "Level 4 empty newsgroup face.")
412 412
413 (defface gnus-group-news-5-face 413 (defface gnus-group-news-5-face
414 '((((class color) 414 '((((class color)
415 (background dark)) 415 (background dark))
416 (:bold t)) 416 (:weight bold))
417 (((class color) 417 (((class color)
418 (background light)) 418 (background light))
419 (:bold t)) 419 (:weight bold))
420 (t 420 (t
421 ())) 421 ()))
422 "Level 5 newsgroup face.") 422 "Level 5 newsgroup face.")
423 423
424 (defface gnus-group-news-5-empty-face 424 (defface gnus-group-news-5-empty-face
433 "Level 5 empty newsgroup face.") 433 "Level 5 empty newsgroup face.")
434 434
435 (defface gnus-group-news-6-face 435 (defface gnus-group-news-6-face
436 '((((class color) 436 '((((class color)
437 (background dark)) 437 (background dark))
438 (:bold t)) 438 (:weight bold))
439 (((class color) 439 (((class color)
440 (background light)) 440 (background light))
441 (:bold t)) 441 (:weight bold))
442 (t 442 (t
443 ())) 443 ()))
444 "Level 6 newsgroup face.") 444 "Level 6 newsgroup face.")
445 445
446 (defface gnus-group-news-6-empty-face 446 (defface gnus-group-news-6-empty-face
455 "Level 6 empty newsgroup face.") 455 "Level 6 empty newsgroup face.")
456 456
457 (defface gnus-group-news-low-face 457 (defface gnus-group-news-low-face
458 '((((class color) 458 '((((class color)
459 (background dark)) 459 (background dark))
460 (:foreground "DarkTurquoise" :bold t)) 460 (:foreground "DarkTurquoise" :weight bold))
461 (((class color) 461 (((class color)
462 (background light)) 462 (background light))
463 (:foreground "DarkGreen" :bold t)) 463 (:foreground "DarkGreen" :weight bold))
464 (t 464 (t
465 ())) 465 ()))
466 "Low level newsgroup face.") 466 "Low level newsgroup face.")
467 467
468 (defface gnus-group-news-low-empty-face 468 (defface gnus-group-news-low-empty-face
477 "Low level empty newsgroup face.") 477 "Low level empty newsgroup face.")
478 478
479 (defface gnus-group-mail-1-face 479 (defface gnus-group-mail-1-face
480 '((((class color) 480 '((((class color)
481 (background dark)) 481 (background dark))
482 (:foreground "aquamarine1" :bold t)) 482 (:foreground "aquamarine1" :weight bold))
483 (((class color) 483 (((class color)
484 (background light)) 484 (background light))
485 (:foreground "DeepPink3" :bold t)) 485 (:foreground "DeepPink3" :weight bold))
486 (t 486 (t
487 (:bold t))) 487 (:weight bold)))
488 "Level 1 mailgroup face.") 488 "Level 1 mailgroup face.")
489 489
490 (defface gnus-group-mail-1-empty-face 490 (defface gnus-group-mail-1-empty-face
491 '((((class color) 491 '((((class color)
492 (background dark)) 492 (background dark))
493 (:foreground "aquamarine1")) 493 (:foreground "aquamarine1"))
494 (((class color) 494 (((class color)
495 (background light)) 495 (background light))
496 (:foreground "DeepPink3")) 496 (:foreground "DeepPink3"))
497 (t 497 (t
498 (:italic t :bold t))) 498 (:slant italic :weight bold)))
499 "Level 1 empty mailgroup face.") 499 "Level 1 empty mailgroup face.")
500 500
501 (defface gnus-group-mail-2-face 501 (defface gnus-group-mail-2-face
502 '((((class color) 502 '((((class color)
503 (background dark)) 503 (background dark))
504 (:foreground "aquamarine2" :bold t)) 504 (:foreground "aquamarine2" :weight bold))
505 (((class color) 505 (((class color)
506 (background light)) 506 (background light))
507 (:foreground "HotPink3" :bold t)) 507 (:foreground "HotPink3" :weight bold))
508 (t 508 (t
509 (:bold t))) 509 (:weight bold)))
510 "Level 2 mailgroup face.") 510 "Level 2 mailgroup face.")
511 511
512 (defface gnus-group-mail-2-empty-face 512 (defface gnus-group-mail-2-empty-face
513 '((((class color) 513 '((((class color)
514 (background dark)) 514 (background dark))
515 (:foreground "aquamarine2")) 515 (:foreground "aquamarine2"))
516 (((class color) 516 (((class color)
517 (background light)) 517 (background light))
518 (:foreground "HotPink3")) 518 (:foreground "HotPink3"))
519 (t 519 (t
520 (:bold t))) 520 (:weight bold)))
521 "Level 2 empty mailgroup face.") 521 "Level 2 empty mailgroup face.")
522 522
523 (defface gnus-group-mail-3-face 523 (defface gnus-group-mail-3-face
524 '((((class color) 524 '((((class color)
525 (background dark)) 525 (background dark))
526 (:foreground "aquamarine3" :bold t)) 526 (:foreground "aquamarine3" :weight bold))
527 (((class color) 527 (((class color)
528 (background light)) 528 (background light))
529 (:foreground "magenta4" :bold t)) 529 (:foreground "magenta4" :weight bold))
530 (t 530 (t
531 (:bold t))) 531 (:weight bold)))
532 "Level 3 mailgroup face.") 532 "Level 3 mailgroup face.")
533 533
534 (defface gnus-group-mail-3-empty-face 534 (defface gnus-group-mail-3-empty-face
535 '((((class color) 535 '((((class color)
536 (background dark)) 536 (background dark))
543 "Level 3 empty mailgroup face.") 543 "Level 3 empty mailgroup face.")
544 544
545 (defface gnus-group-mail-low-face 545 (defface gnus-group-mail-low-face
546 '((((class color) 546 '((((class color)
547 (background dark)) 547 (background dark))
548 (:foreground "aquamarine4" :bold t)) 548 (:foreground "aquamarine4" :weight bold))
549 (((class color) 549 (((class color)
550 (background light)) 550 (background light))
551 (:foreground "DeepPink4" :bold t)) 551 (:foreground "DeepPink4" :weight bold))
552 (t 552 (t
553 (:bold t))) 553 (:weight bold)))
554 "Low level mailgroup face.") 554 "Low level mailgroup face.")
555 555
556 (defface gnus-group-mail-low-empty-face 556 (defface gnus-group-mail-low-empty-face
557 '((((class color) 557 '((((class color)
558 (background dark)) 558 (background dark))
559 (:foreground "aquamarine4")) 559 (:foreground "aquamarine4"))
560 (((class color) 560 (((class color)
561 (background light)) 561 (background light))
562 (:foreground "DeepPink4")) 562 (:foreground "DeepPink4"))
563 (t 563 (t
564 (:bold t))) 564 (:weight bold)))
565 "Low level empty mailgroup face.") 565 "Low level empty mailgroup face.")
566 566
567 ;; Summary mode faces. 567 ;; Summary mode faces.
568 568
569 (defface gnus-summary-selected-face '((t 569 (defface gnus-summary-selected-face '((t
576 "Face used for cancelled articles.") 576 "Face used for cancelled articles.")
577 577
578 (defface gnus-summary-high-ticked-face 578 (defface gnus-summary-high-ticked-face
579 '((((class color) 579 '((((class color)
580 (background dark)) 580 (background dark))
581 (:foreground "pink" :bold t)) 581 (:foreground "pink" :weight bold))
582 (((class color) 582 (((class color)
583 (background light)) 583 (background light))
584 (:foreground "firebrick" :bold t)) 584 (:foreground "firebrick" :weight bold))
585 (t 585 (t
586 (:bold t))) 586 (:weight bold)))
587 "Face used for high interest ticked articles.") 587 "Face used for high interest ticked articles.")
588 588
589 (defface gnus-summary-low-ticked-face 589 (defface gnus-summary-low-ticked-face
590 '((((class color) 590 '((((class color)
591 (background dark)) 591 (background dark))
592 (:foreground "pink" :italic t)) 592 (:foreground "pink" :slant italic))
593 (((class color) 593 (((class color)
594 (background light)) 594 (background light))
595 (:foreground "firebrick" :italic t)) 595 (:foreground "firebrick" :slant italic))
596 (t 596 (t
597 (:italic t))) 597 (:slant italic)))
598 "Face used for low interest ticked articles.") 598 "Face used for low interest ticked articles.")
599 599
600 (defface gnus-summary-normal-ticked-face 600 (defface gnus-summary-normal-ticked-face
601 '((((class color) 601 '((((class color)
602 (background dark)) 602 (background dark))
609 "Face used for normal interest ticked articles.") 609 "Face used for normal interest ticked articles.")
610 610
611 (defface gnus-summary-high-ancient-face 611 (defface gnus-summary-high-ancient-face
612 '((((class color) 612 '((((class color)
613 (background dark)) 613 (background dark))
614 (:foreground "SkyBlue" :bold t)) 614 (:foreground "SkyBlue" :weight bold))
615 (((class color) 615 (((class color)
616 (background light)) 616 (background light))
617 (:foreground "RoyalBlue" :bold t)) 617 (:foreground "RoyalBlue" :weight bold))
618 (t 618 (t
619 (:bold t))) 619 (:weight bold)))
620 "Face used for high interest ancient articles.") 620 "Face used for high interest ancient articles.")
621 621
622 (defface gnus-summary-low-ancient-face 622 (defface gnus-summary-low-ancient-face
623 '((((class color) 623 '((((class color)
624 (background dark)) 624 (background dark))
625 (:foreground "SkyBlue" :italic t)) 625 (:foreground "SkyBlue" :slant italic))
626 (((class color) 626 (((class color)
627 (background light)) 627 (background light))
628 (:foreground "RoyalBlue" :italic t)) 628 (:foreground "RoyalBlue" :slant italic))
629 (t 629 (t
630 (:italic t))) 630 (:slant italic)))
631 "Face used for low interest ancient articles.") 631 "Face used for low interest ancient articles.")
632 632
633 (defface gnus-summary-normal-ancient-face 633 (defface gnus-summary-normal-ancient-face
634 '((((class color) 634 '((((class color)
635 (background dark)) 635 (background dark))
641 ())) 641 ()))
642 "Face used for normal interest ancient articles.") 642 "Face used for normal interest ancient articles.")
643 643
644 (defface gnus-summary-high-unread-face 644 (defface gnus-summary-high-unread-face
645 '((t 645 '((t
646 (:bold t))) 646 (:weight bold)))
647 "Face used for high interest unread articles.") 647 "Face used for high interest unread articles.")
648 648
649 (defface gnus-summary-low-unread-face 649 (defface gnus-summary-low-unread-face
650 '((t 650 '((t
651 (:italic t))) 651 (:slant italic)))
652 "Face used for low interest unread articles.") 652 "Face used for low interest unread articles.")
653 653
654 (defface gnus-summary-normal-unread-face 654 (defface gnus-summary-normal-unread-face
655 '((t 655 '((t
656 ())) 656 ()))
658 658
659 (defface gnus-summary-high-read-face 659 (defface gnus-summary-high-read-face
660 '((((class color) 660 '((((class color)
661 (background dark)) 661 (background dark))
662 (:foreground "PaleGreen" 662 (:foreground "PaleGreen"
663 :bold t)) 663 :weight bold))
664 (((class color) 664 (((class color)
665 (background light)) 665 (background light))
666 (:foreground "DarkGreen" 666 (:foreground "DarkGreen"
667 :bold t)) 667 :weight bold))
668 (t 668 (t
669 (:bold t))) 669 (:weight bold)))
670 "Face used for high interest read articles.") 670 "Face used for high interest read articles.")
671 671
672 (defface gnus-summary-low-read-face 672 (defface gnus-summary-low-read-face
673 '((((class color) 673 '((((class color)
674 (background dark)) 674 (background dark))
675 (:foreground "PaleGreen" 675 (:foreground "PaleGreen"
676 :italic t)) 676 :slant italic))
677 (((class color) 677 (((class color)
678 (background light)) 678 (background light))
679 (:foreground "DarkGreen" 679 (:foreground "DarkGreen"
680 :italic t)) 680 :slant italic))
681 (t 681 (t
682 (:italic t))) 682 (:slant italic)))
683 "Face used for low interest read articles.") 683 "Face used for low interest read articles.")
684 684
685 (defface gnus-summary-normal-read-face 685 (defface gnus-summary-normal-read-face
686 '((((class color) 686 '((((class color)
687 (background dark)) 687 (background dark))