all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Oliver Scholz <alkibiades@gmx.de>
Cc: emacs-devel@gnu.org
Subject: Re: XPM via Lisp in the toolbar
Date: Mon, 18 Nov 2002 15:08:29 +0100	[thread overview]
Message-ID: <uadk76g5m.fsf@ID-87814.user.dfncis.de> (raw)
In-Reply-To: <m2el9mvpmx.fsf@nyaumo.btinternet.com> (Jason Rumney's message of "15 Nov 2002 15:06:30 +0000")

[-- Attachment #1: Type: text/plain, Size: 241 bytes --]

Jason Rumney <jasonr@gnu.org> writes:
[...]
> I had some time last night to look more closely, and I think I now
> have image masks working, and have fixed some of the more serious
> bugs.

Great! Many thanks. This is a *huge* improvement:


[-- Attachment #2: tool-barx.png --]
[-- Type: image/png, Size: 5798 bytes --]

[-- Attachment #3: Type: text/plain, Size: 1382 bytes --]


However, I noticed two things:

The image mask seems to be supported only for `:mask 'heuristic'. This
determines the image mask by looking at the four corners of the
image. This is o.k. for almost any icon in the tool bar. But to get
its job done correctly in the general case, xpm.el needs to specify a
certain colour as the image mask, like: `:mask '(heuristic (0 0 0))'. 
This is so, because an XPM image may specify transparancy in arbitrary
places. For example: it could be a square containing a transparent
circle in the middle.

Unfortunately Emacs on MS Windows does not deal with 
`:mask '(heuristic (0 0 0)'. I generated the result in the attached
image by making a small change in xpm.el in order test your fix,
otherwise the icons would appear on a black background. But as I said
above, this is wrong in the general case. So could you implement this?
Or at least make Emacs on MS Windows ignore the part after
`heuristic'. This should do for most cases as far as icons are
concerned.

Another thing is, that it seems that the :ascent attribute does not
work; gamegrid.el needs to specify `:ascent 'center' for images.

    Oliver
-- 
Oliver Scholz               27 Brumaire an 211 de la Révolution
Taunusstr. 25               Liberté, Egalité, Fraternité!
60329 Frankfurt a. M.       http://www.jungdemokratenhessen.de
Tel. (069) 97 40 99 42      http://www.jdjl.org

  parent reply	other threads:[~2002-11-18 14:08 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-12 17:32 XPM via Lisp in the toolbar Oliver Scholz
2002-11-13 17:15 ` Oliver Scholz
2002-11-15  2:36   ` Richard Stallman
2002-11-15  3:31     ` alkibiades
2002-11-15 14:08       ` Stefan Monnier
2002-11-16 14:51       ` Richard Stallman
2002-11-16 14:51       ` Richard Stallman
2002-11-16 18:44         ` alkibiades
2002-11-17  7:15           ` Richard Stallman
2002-11-17 12:30             ` alkibiades
2002-11-17 12:49               ` Oliver Scholz
2002-11-15 15:06     ` Jason Rumney
2002-11-15 18:06       ` Jason Rumney
2002-11-18 14:08       ` Oliver Scholz [this message]
2002-11-18 16:59         ` mushroom icon [was: Re: XPM via Lisp in the toolbar] John Paul Wallington
2002-11-18 19:38         ` XPM via Lisp in the toolbar Jason Rumney
2002-11-14  4:10 ` Richard Stallman
2002-11-15 17:47 ` W32 image patch (was Re: XPM via Lisp in the toolbar) Jason Rumney
2002-11-19  8:51   ` bootstrap fails with current CVS on MS Windows XP Oliver Scholz
2002-11-19  9:30     ` Juanma Barranquero
2002-11-20 21:13     ` Richard Stallman

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=uadk76g5m.fsf@ID-87814.user.dfncis.de \
    --to=alkibiades@gmx.de \
    --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.