unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: 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: Wed, 14 Aug 2019 21:33:22 -0700 (PDT)	[thread overview]
Message-ID: <43284881-3326-41a4-8217-adf4b5ad77e0@default> (raw)
In-Reply-To: <87mugb5f63.fsf@mouse.gnus.org>

> I'm not quite sure what you're referring to here -- do you have a
> recipe for how to show Customize colours?

emacs -Q

(defcustom foo "Red"
  "Some foo"
  :type 'color
  :group 'convenience)

M-x customize-option foo

You see this:

Hide Foo: Red         Choose   (sample)
    State : STANDARD.
   Some foo
Groups: Convenience

This uses the `color' widget, defined in `wid-edit.el' as follows:

(define-widget 'color 'editable-field
  "Choose a color name (with sample)."
  :format "%{%t%}: %v (%{sample%})\n"
  :value-create 'widget-color-value-create
  :size 10
  :tag "Color"
  :value "black"
  :completions (or facemenu-color-alist (defined-colors))
  :sample-face-get 'widget-color-sample-face-get
  :notify 'widget-color-notify
  :action 'widget-color-action)

In Customize The text "sample" (in parentheses) shows you
what the color looks like when used as a foreground (face
attribute).  It does not show you what the color looks as
a background (face attribute).

This enhancement request asks that the color be shown as
both foreground and background.  For example, instead of
a single "sample" that shows only foreground appearance,
show both "foreground" and "background" text, with the
color used as foreground and background, respectively.

Or, as the bug report suggested, show just the text
"sample", but show half of it as foreground and half of
it as background.

That's all.





  reply	other threads:[~2019-08-15  4:33 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 [this message]
2019-08-15  8:13     ` martin rudalics
2019-08-15 13:56       ` Drew Adams
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=43284881-3326-41a4-8217-adf4b5ad77e0@default \
    --to=drew.adams@oracle.com \
    --cc=15977@debbugs.gnu.org \
    --cc=larsi@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.
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).