From: Bill White <billw@wolfram.com>
Cc: ding@gnus.org
Subject: Re: The old high low face gambit
Date: Sat, 08 Dec 2001 18:00:52 -0600 [thread overview]
Message-ID: <m3r8q5feiz.fsf@wolfram.com> (raw)
In-Reply-To: <m1n10urd85.fsf@reader.newsguy.com>
On the Memorial of Saint Ambrose, 2001, at 14:23, Harry Putnam <reader@newsguy.com> said:
> How can I get finer granularity than just `high' face and `low' face
> on the basis of scoring?
>
> I mean something like a face for scores of 1, different for 5,
> different yet above 10 etc. (I have the default score set to 1)
I tried this for a while but couldn't get a meaningful *and* pleasing
*and* easy-to-read combination of colors. After a while it just
bugged me and I wound up ditching scoring altogether. At any rate,
here's the code I used:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; trying different faces for different scores
(copy-face 'default 'my-gnus-face-50)
(set-face-foreground 'my-gnus-face-50 "gray50")
(copy-face 'default 'my-gnus-face-55)
(set-face-foreground 'my-gnus-face-55 "gray55")
(copy-face 'default 'my-gnus-face-60)
(set-face-foreground 'my-gnus-face-60 "gray60")
(copy-face 'default 'my-gnus-face-65)
(set-face-foreground 'my-gnus-face-65 "gray65")
(copy-face 'default 'my-gnus-face-70)
(set-face-foreground 'my-gnus-face-70 "gray70")
(copy-face 'default 'my-gnus-face-75)
(set-face-foreground 'my-gnus-face-75 "gray75")
(copy-face 'default 'my-gnus-face-80)
(set-face-foreground 'my-gnus-face-80 "gray80")
(copy-face 'default 'my-gnus-face-85)
(set-face-foreground 'my-gnus-face-85 "gray85")
(copy-face 'default 'my-gnus-face-90)
(set-face-foreground 'my-gnus-face-90 "gray90")
(copy-face 'default 'my-gnus-face-95)
(set-face-foreground 'my-gnus-face-95 "gray95")
(copy-face 'default 'my-gnus-face-100)
(set-face-foreground 'my-gnus-face-100 "gray100")
(setq gnus-summary-highlight
'(
((and (<= score 100) (> score 0)) . my-gnus-face-80)
((and (<= score 200) (> score 100)) . my-gnus-face-85)
((and (<= score 300) (> score 200)) . my-gnus-face-90)
((and (<= score 400) (> score 300)) . my-gnus-face-95)
((> score 400) . my-gnus-face-100)
((= mark gnus-canceled-mark)
. gnus-summary-cancelled-face)
((and (> score default)
(or (= mark gnus-dormant-mark)
(= mark gnus-ticked-mark)))
. gnus-summary-high-ticked-face)
((and (< score default)
(or (= mark gnus-dormant-mark)
(= mark gnus-ticked-mark)))
. gnus-summary-low-ticked-face)
((or (= mark gnus-dormant-mark)
(= mark gnus-ticked-mark))
. gnus-summary-normal-ticked-face)
((and (> score default) (= mark gnus-ancient-mark))
. gnus-summary-high-ancient-face)
((and (< score default) (= mark gnus-ancient-mark))
. gnus-summary-low-ancient-face)
((= mark gnus-ancient-mark)
. gnus-summary-normal-ancient-face)
((and (> score default) (= mark gnus-unread-mark))
. gnus-summary-high-unread-face)
((and (< score default) (= mark gnus-unread-mark))
. gnus-summary-low-unread-face)
((= mark gnus-unread-mark)
. gnus-summary-normal-unread-face)
((and (> score default) (memq mark (list gnus-downloadable-mark
gnus-undownloaded-mark)))
. gnus-summary-high-unread-face)
((and (< score default) (memq mark (list gnus-downloadable-mark
gnus-undownloaded-mark)))
. gnus-summary-low-unread-face)
((and (memq mark (list gnus-downloadable-mark gnus-undownloaded-mark))
(memq article gnus-newsgroup-unreads))
. gnus-summary-normal-unread-face)
((memq mark (list gnus-downloadable-mark gnus-undownloaded-mark))
. gnus-summary-normal-read-face)
((> score default)
. gnus-summary-high-read-face)
((< score default)
. gnus-summary-low-read-face)
(t
. gnus-summary-normal-read-face)))
Cheers -
bw
--
Bill White . billw@wolfram.com . http://members.wri.com/billw
"No ma'am, we're musicians."
next prev parent reply other threads:[~2001-12-09 0:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-07 20:23 Harry Putnam
2001-12-09 0:00 ` Bill White [this message]
2001-12-09 8:48 ` Harry Putnam
2001-12-09 22:45 ` Bill White
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3r8q5feiz.fsf@wolfram.com \
--to=billw@wolfram.com \
--cc=ding@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).