From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: sdn.gnuem@mailnull.com Newsgroups: gmane.emacs.help Subject: Re: Different text/properties in active vs inactive mode line Date: Mon, 2 May 2011 14:03:14 -0400 (EDT) Message-ID: <20110502180314.0B8AF510215@outside.256.com> NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1304359413 30392 80.91.229.12 (2 May 2011 18:03:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 2 May 2011 18:03:33 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 02 20:03:29 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QGxSz-0005jr-5C for geh-help-gnu-emacs@m.gmane.org; Mon, 02 May 2011 20:03:29 +0200 Original-Received: from localhost ([::1]:51776 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGxSy-00032D-D8 for geh-help-gnu-emacs@m.gmane.org; Mon, 02 May 2011 14:03:28 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:46562) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGxSt-00031S-9s for help-gnu-emacs@gnu.org; Mon, 02 May 2011 14:03:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QGxSr-0006wA-Sl for help-gnu-emacs@gnu.org; Mon, 02 May 2011 14:03:23 -0400 Original-Received: from outside.256.com ([72.93.100.124]:61222) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGxSr-0006qX-Pj for help-gnu-emacs@gnu.org; Mon, 02 May 2011 14:03:21 -0400 Original-Received: by outside.256.com (Postfix, from userid 33) id 0B8AF510215; Mon, 2 May 2011 14:03:14 -0400 (EDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 72.93.100.124 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:80900 Archived-At: On Sun, 01 May 2011 03:49:38 -0400 (EDT), Eli Zaretskii wrote: > That's okay, since I have no clear idea about what exactly you are > after, either. Hmm. Okay, let me start over, with visual aids this time. All links below are to PNG images. I am trying to find a way to change mode-line text and/or properties dynamically, based on whether the mode-line is currently active or not. I have some propertized elements to my mode-line-format. You can see an example here: http://cl.ly/1o0e0x3N1m2F0b3X3x3J (these aren't the actual colors I use; this is an example for illustrative purposes). This works fine, but it looks awful against the mode-line-inactive face, when I split the window. See http://cl.ly/3X132L2I2s1C3R3P0K1k Now, I could change the faces to look good with mode-line-inactive, but then they look bad with the regular mode-line. See http://cl.ly/0J0S361L3w3L1m0L0l2Z . I suppose if I were some kind of UI designer god, I could come up with combinations that look good on both backgrounds. But I'm not. What I want is to be able to define one face to use on the mode line in the active window, and a different face to use on the mode line for all of the inactive windows: http://cl.ly/1Y442G1C073O051G4630 Then, when I move to a different window with C-xo, my custom faces would change as the mode-line switches from mode-line face to mode-line-inactive face: http://cl.ly/2Q1d3Z0q2a3W1s1S273m I hope that helps. -- Sue D. Nymme ---------- This message was sent from a MailNull anti-spam account. You can get your free account and take control over your email by visiting the following URL. http://mailnull.com/