From: Yuan Fu <casouri@gmail.com>
To: Tim Cross <theophilusx@gmail.com>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Add some built-in faces for inheritance
Date: Sat, 19 Sep 2020 15:36:30 -0400 [thread overview]
Message-ID: <D1EAF50D-3007-415F-B233-29F055ACBB3F@gmail.com> (raw)
In-Reply-To: <87h7rw7zxf.fsf@gmail.com>
I think it would be helpful to define some common UI concepts as faces, so package authors can inherit from them instead of hard-coding their face. We already have faces like shadow, bold, error, warning, info, button, link. We can add a few more:
- foreground-highlight: highlight text using a different foreground color, used for matched results, etc.
- background-highlight: highlighted text using a different background color, used for selected candidate in company/ivy/helm, etc.
- block: text with a different background to separate from main text, used for code blocks, input fields, pop ups, etc
…
It would be helpful if someone with UI-design background could provide some ideas.
Yuan
next prev parent reply other threads:[~2020-09-19 19:36 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-17 16:43 light, dark, and theme adjustment & generation [was: solarized] Drew Adams
2020-09-17 23:21 ` Tim Cross
2020-09-19 19:36 ` Yuan Fu [this message]
2020-09-19 19:50 ` Add some built-in faces for inheritance Stefan Monnier
2020-09-19 20:00 ` Yuan Fu
2020-09-19 23:51 ` chad
2020-09-20 13:21 ` Howard Melman
2020-09-20 19:18 ` Juri Linkov
2020-09-21 7:48 ` Protesilaos Stavrou
2020-09-21 19:14 ` Juri Linkov
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=D1EAF50D-3007-415F-B233-29F055ACBB3F@gmail.com \
--to=casouri@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=theophilusx@gmail.com \
/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).