From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.help Subject: Re: CVS Emacs - changing colour of mode-line image in active window Date: Mon, 31 Mar 2003 18:23:14 +0100 Organization: None Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <0uvfy05ydc.fsf@xpc21.ast.cam.ac.uk> <5ld6k7a4ou.fsf@rum.cs.yale.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1049131749 26366 80.91.224.249 (31 Mar 2003 17:29:09 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 31 Mar 2003 17:29:09 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 31 19:29:05 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19035k-0006q5-00 for ; Mon, 31 Mar 2003 19:29:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 190326-0001ma-00 for gnu-help-gnu-emacs@m.gmane.org; Mon, 31 Mar 2003 12:25:18 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!server1.netnews.ja.net!pegasus.csx.cam.ac.uk!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-NNTP-Posting-Host: xpc21.ast.cam.ac.uk X-Attribution: GM Mail-Copies-To: never User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/directory/emacs.html) Cancel-Lock: sha1:3oJNd5/sajaTnkL9ldlaOXiqiS0= Original-Xref: shelby.stanford.edu gnu.emacs.help:111529 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:8028 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:8028 "Stefan Monnier" wrote: > You can probably do it easily with a XBM image, as for XPM... Thanks Stefan, but I'm afraid I still don't see it. Obviously converting to XBM from XPM wouldn't be a problem. In fact, that's what I started with. I only changed to XPM because I saw that's what Gnus did for the Gnu-head in the Group buffer mode-line. This has a constant foreground colour and transparent background, so the background at least is always the "right" colour. How would I do it with an XBM? Just using one sans any colours specs, it Does the Right Thing for the selected window, but has the same colour in all the non-selected windows, which looks a lot worse than the transparent XPM. Should I Set the :foreground and :background to depend on whether the window is selected or not? When I tried this, I could figure out how to determine the selected window. Also, it seems that only ever one value is "active" at a time, applying to all windows.