From: Ted Zlatanov <tzz@lifelogs.com>
To: emacs-devel@gnu.org
Subject: Re: /srv/bzr/emacs/trunk r102478: shr.el (shr-tag-color-check):Convert colors to hexadecimal with shr-color->hexadecimal.
Date: Fri, 10 Dec 2010 13:19:53 -0600 [thread overview]
Message-ID: <87mxod306e.fsf@lifelogs.com> (raw)
In-Reply-To: jwvk4k22eha.fsf-monnier+emacs@gnu.org
On Wed, 24 Nov 2010 23:53:52 -0500 Stefan Monnier <monnier@IRO.UMontreal.CA> wrote:
>> We could start choosing more mellifluous hues by default, and have
>> color-lab ensure that the text would be readable for all users... That
>> is, reduce the fruit salad-ey-ness that Emacs has now.
SM> That would be wonderful indeed. Not sure easy that would be (what with
SM> having to take into account limitations such as an 8- or 16-color text
SM> terminal), but it sounds quite intriguing.
Lars' original proposition would be nice, I think, if there was a
facility to convert (using his example)
(defface gnus-group-news-2-empty
'((((class color)
(background dark))
(:foreground "turquoise"))
(((class color)
(background light))
(:foreground "CadetBlue4"))
(t
()))
to
(defface gnus-group-news-2-empty ...)
(color-lab-install-mellifluous-colors
'gnus-group-news-2-empty :dark (:foreground "turquoise") :light (:foreground "CadetBlue4"))
;; or...
(color-lab-install-mellifluous-dark-colors 'gnus-group-news-2-empty (:foreground "turquoise"))
(color-lab-install-mellifluous-light-colors 'gnus-group-news-2-empty (:foreground "CadetBlue4"))
Then we can tweak `color-lab-install-mellifluous-colors' to DTRT in all
circumstances, while the package author doesn't have to worry about
those tweaks because his code will work regardless. In other words,
we'd be switching from a purely data-driven approach with `defface' to a
more flexible declarative approach of `defface' plus color-lab functions.
Ted
next prev parent reply other threads:[~2010-12-10 19:19 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E1PKgZg-0005td-8L@internal.in.savannah.gnu.org>
2010-11-23 19:50 ` /srv/bzr/emacs/trunk r102478: shr.el (shr-tag-color-check): Convert colors to hexadecimal with shr-color->hexadecimal Glenn Morris
2010-11-23 20:24 ` Chong Yidong
2010-11-23 21:14 ` Julien Danjou
2010-11-23 21:31 ` Chong Yidong
2010-11-23 21:38 ` Lars Magne Ingebrigtsen
2010-11-23 22:18 ` Chong Yidong
2010-11-23 22:34 ` Lars Magne Ingebrigtsen
2010-11-24 0:12 ` /srv/bzr/emacs/trunk r102478: shr.el (shr-tag-color-check):Convert " Drew Adams
2010-11-24 9:08 ` Julien Danjou
2010-11-24 11:35 ` Eli Zaretskii
2010-11-24 14:46 ` Stefan Monnier
2010-11-24 15:30 ` Lennart Borgman
2010-11-24 18:15 ` Ted Zlatanov
2010-11-24 21:37 ` Lennart Borgman
2010-11-24 22:19 ` Lars Magne Ingebrigtsen
2010-11-24 22:41 ` Use color-tweaking code to improve face defaults? [was: /srv/bzr/emacs/trunk r1...] Drew Adams
2010-11-25 4:53 ` /srv/bzr/emacs/trunk r102478: shr.el (shr-tag-color-check):Convert colors to hexadecimal with shr-color->hexadecimal Stefan Monnier
2010-12-10 19:19 ` Ted Zlatanov [this message]
2010-11-24 16:15 ` Drew Adams
2010-11-24 18:11 ` Ted Zlatanov
2010-11-24 21:00 ` /srv/bzr/emacs/trunk r102478: shr.el(shr-tag-color-check):Convert colors to hexadecimal withshr-color->hexadecimal Drew Adams
2010-11-24 21:33 ` Julien Danjou
2010-11-24 21:51 ` Drew Adams
2010-11-24 16:29 ` /srv/bzr/emacs/trunk r102478: shr.el (shr-tag-color-check):Convert colors to hexadecimal with shr-color->hexadecimal Chong Yidong
2010-11-24 0:05 ` Drew Adams
2010-11-24 8:36 ` /srv/bzr/emacs/trunk r102478: shr.el (shr-tag-color-check): Convert " Richard Stallman
2010-11-24 14:42 ` Stefan Monnier
2010-11-23 21:16 ` Lars Magne Ingebrigtsen
2010-11-23 22:19 ` Ted Zlatanov
2010-11-23 21:14 ` Julien Danjou
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mxod306e.fsf@lifelogs.com \
--to=tzz@lifelogs.com \
--cc=emacs-devel@gnu.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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).