* bug#47686: Live preview of setting face color
@ 2021-04-10 4:37 scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-04-10 11:49 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-05-06 9:58 ` Lars Ingebrigtsen
0 siblings, 2 replies; 4+ messages in thread
From: scame via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-04-10 4:37 UTC (permalink / raw)
To: 47686
[-- Attachment #1: Type: text/plain, Size: 1382 bytes --]
The other day I changed the color of a face and usually it's an uncomfortable process, because only in the real context together with other colors it shows how well the color works, the small sample text is usually not enough. So it's choosing some some color, changing the face color, going to the real context to see if it's right and repeating until it is.
I wanted some live preview and google found a small code which does this:
https://i.imgur.com/CqpB8gM.gif
[https://reddit.com/r/emacs/comments/ci1j66/live_color_selection_for_faces/](https://old.reddit.com/r/emacs/comments/ci1j66/live_color_selection_for_faces/)
It works, but it occured to me it could be easy to add something like this to the *Colors* buffer
which I can get with M-x list-colors-display.
That buffer does nothing by itself, just show colors, so keys could be bind for it to set face color:
f - read a facename and set its foreground color on the fly as the user moves in the *Colors*buffer as seen on the gif above
b - the same for face background color
c - cancel the live preview and restore the face's colors
s - set the selected colors of face using customize
This kind of interactive color setting where you just move in the Colors buffer and in the other window you can instantly see its effect on a face is much more effective and user friendly than the current color selection for a face.
[-- Attachment #2: Type: text/html, Size: 1712 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#47686: Live preview of setting face color
2021-04-10 4:37 bug#47686: Live preview of setting face color scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-04-10 11:49 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-04-10 16:14 ` scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-05-06 9:58 ` Lars Ingebrigtsen
1 sibling, 1 reply; 4+ messages in thread
From: Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-04-10 11:49 UTC (permalink / raw)
To: 47686; +Cc: laszlomail
scame via "Bug reports for GNU Emacs, the Swiss army knife of text
editors" <bug-gnu-emacs@gnu.org> writes:
> The other day I changed the color of a face and usually it's an
> uncomfortable process, because only in the real context together with
> other colors it shows how well the color works, the small sample text
> is usually not enough. So it's choosing some some color, changing the
> face color, going to the real context to see if it's right and
> repeating until it is.
>
[...]
> It works, but it occured to me it could be easy to add something like this to the *Colors* buffer
> which I can get with M-x list-colors-display.
>
> That buffer does nothing by itself, just show colors, so keys could be bind for it to set face color:
>
> f - read a facename and set its foreground color on the fly as the user moves in the *Colors*buffer as seen on the gif above
> b - the same for face background color
> c - cancel the live preview and restore the face's colors
> s - set the selected colors of face using customize
>
An alternative way to do what you want is the following:
- Place the point on the desired text whose face you want to change.
- M-x customize-face-other-window
- Accept the default.
For there, you can use the Customize interface to apply or revert
changes and see the results in the other window, instantly.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#47686: Live preview of setting face color
2021-04-10 11:49 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-04-10 16:14 ` scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
0 siblings, 0 replies; 4+ messages in thread
From: scame via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-04-10 16:14 UTC (permalink / raw)
To: Daniel Martín; +Cc: 47686
>
> An alternative way to do what you want is the following:
>
> - Place the point on the desired text whose face you want to change.
> - M-x customize-face-other-window
> - Accept the default.
>
> For there, you can use the Customize interface to apply or revert
> changes and see the results in the other window, instantly.
>
It's not the same, because then you have to apply the changes each time you
change color, you can't see a preview in context immediately simply by
browsing the colors which makes it much more comfortable.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#47686: Live preview of setting face color
2021-04-10 4:37 bug#47686: Live preview of setting face color scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-04-10 11:49 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-05-06 9:58 ` Lars Ingebrigtsen
1 sibling, 0 replies; 4+ messages in thread
From: Lars Ingebrigtsen @ 2021-05-06 9:58 UTC (permalink / raw)
To: scame; +Cc: 47686
scame <laszlomail@protonmail.com> writes:
> I wanted some live preview and google found a small code which does this:
>
> https://i.imgur.com/CqpB8gM.gif
>
> https://reddit.com/r/emacs/comments/ci1j66/live_color_selection_for_faces/
>
> It works, but it occured to me it could be easy to add something like this to the
> *Colors* buffer
> which I can get with M-x list-colors-display.
I think that looks really cool, but I think it would be better as a
separate ELPA package (especially since there are other colour pickers
that work differently out there). So I'm closing this bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-05-06 9:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-10 4:37 bug#47686: Live preview of setting face color scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-04-10 11:49 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-04-10 16:14 ` scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-05-06 9:58 ` Lars Ingebrigtsen
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.