From: Stefan Monnier <monnier@iro.umontreal.ca>
To: aaditya sood <aaditya@sood.net.in>
Cc: emacs-devel@gnu.org
Subject: Re: alpha support for colors
Date: Tue, 30 Oct 2012 09:28:40 -0400 [thread overview]
Message-ID: <jwv1uggm6yc.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <loom.20121030T081948-290@post.gmane.org> (aaditya sood's message of "Tue, 30 Oct 2012 07:37:07 +0000 (UTC)")
> I think a good use case is things like flymake error faces. I want my
> error lines to be more "reddish" while still retaining the original
> font lock highlighting.
I was sold on your idea long before you suggested it (actually, I've
been wishing for it mostly to automatically create "lighter/darker"
faces and I'm not completely sure if alpha-blending can do that well).
I think to do it you'll want to look at the face merging code in
src/xfaces.c. There's already code to merge heights (where faces can
specify relative sizes or even an Elisp function that computes the new
height from the height of underlying faces), so it really shouldn't be
that hard.
There's a secondary alpha-blending issue, which I think is orthogonal,
which is how to blend foreground and background. This part would not be
handled in src/xfaces.c.
And then again there's the alpha-blending of the Emacs window with the
windows that might appear underneath, but this is yet another
orthogonal issue.
Stefan
next prev parent reply other threads:[~2012-10-30 13:28 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-29 20:19 alpha support for colors aaditya sood
2012-10-30 1:52 ` Chong Yidong
2012-10-30 5:02 ` aaditya sood
2012-10-30 5:07 ` Masatake YAMATO
2012-10-30 6:51 ` joakim
2012-10-30 7:37 ` aaditya sood
2012-10-30 13:28 ` Stefan Monnier [this message]
2012-10-30 17:45 ` Eli Zaretskii
2012-10-31 2:06 ` Stephen J. Turnbull
2012-10-31 4:00 ` Eli Zaretskii
2012-10-30 17:43 ` Eli Zaretskii
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwv1uggm6yc.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=aaditya@sood.net.in \
--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 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.