unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: martin rudalics <rudalics@gmx.at>, Lars Ingebrigtsen <larsi@gnus.org>
Cc: 15977@debbugs.gnu.org
Subject: bug#15977: 24.3.50; enhancement request: `sample' for Customize colors should show fg & bg
Date: Thu, 15 Aug 2019 06:56:06 -0700 (PDT)	[thread overview]
Message-ID: <0f1433d1-624b-43fa-ba31-ac66604eada8@default> (raw)
In-Reply-To: <3e105285-8c02-7d37-9e4e-70a7c869b96d@gmx.at>

>  > Or, as the bug report suggested, show just the text
>  > "sample", but show half of it as foreground and half of
>  > it as background.
> 
> It might be a bit non-trivial to pick a suitable foreground color for
> "sample" when showing the background but it sounds like a nice idea.

Even with no attempt to do anything special
(i.e., just using the frame background as the
foreground color) it would be an improvement.

And even when the text on the sample wouldn't
be legible/visible (e.g. background swatch
same as or similar to white default background)
it would be useful.

It's a _color_ sample - a simple (background)
color swatch would be OK in all circumstances.
It's just that if we can show its appearance
for both foreground and background then that's
a plus.

FWIW, in my library palette.el I have code
that optionally changes the cursor color to
make it be the complement of the color of
its current position.  Yes, that's a little
bit complicated, but it's doable.

But in the case of this enhancement request
we wouldn't really want the complement.
Probably one of the functions added to
color.el for dealing with color distance would
be usable, to get a grayscale color that
contrasts well with the background.  Just one
suggestion - but see above: just not worrying
about this at all would be fine, IMO.  All we
need is a color swatch (just background, no
text needed).





  reply	other threads:[~2019-08-15 13:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-25 23:09 bug#15977: 24.3.50; enhancement request: `sample' for Customize colors should show fg & bg Drew Adams
2019-08-15  2:35 ` Lars Ingebrigtsen
2019-08-15  4:33   ` Drew Adams
2019-08-15  8:13     ` martin rudalics
2019-08-15 13:56       ` Drew Adams [this message]
2019-08-15 18:51     ` Juri Linkov
2019-08-16  1:16     ` Lars Ingebrigtsen
2022-01-26 17:08       ` Lars Ingebrigtsen

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=0f1433d1-624b-43fa-ba31-ac66604eada8@default \
    --to=drew.adams@oracle.com \
    --cc=15977@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    --cc=rudalics@gmx.at \
    /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).