emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Faces for Mode Line and Mode Line Inactive


From: Stefan Monnier
Subject: Re: Faces for Mode Line and Mode Line Inactive
Date: Sun, 05 Dec 2004 18:14:41 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)

>>>>> "Lennart" == Lennart Borgman <address@hidden> writes:

> ----- Original Message ----- 
> From: "Eli Zaretskii" <address@hidden>


>> > From: "Lennart Borgman" <address@hidden>
>> > Date: Sun, 5 Dec 2004 01:06:38 +0100
>> >
>> > I get a bit frustrated when I look at the face customization pages for
> Mode
>> > Line and Mode Line Inactive. Mode Line Inactive inherits from Mode Line
> and
>> > it sets no attributes on its own as far as I can see. Still it looks
>> > different (lighter on my display).
>> 
>> ??? Look at faces.el, around line 1780, where these two faces are
>> defined: mode-line-inactive inherits from mode-line only for terminals
>> that don't support colors and/or :style attributes.  Otherwise,
>> mode-line defines different colors and a released-button style.
>> 
>> Am I missing something?

> I don't know if you are missing or I am misunderstanding. I was looking at
> the customization page for Mode Line Inactive face. There are no attributes
> checked except for Inherit and it inherits from Mode Line on this page. So
> to me it looks like the faces should be the same. (But as you wrote the
> deffaces in faces.el are different.)

The code I see in faces.el is appended.  It says that the face
unconditionally inherits from mode-line.  This is how it should be, AFAIK.


        Stefan


(defface mode-line-inactive
  '((t
     :inherit mode-line)
    (((type x w32 mac) (background light) (class color))
     :weight light
     :box (:line-width -1 :color "grey75" :style nil)
     :foreground "grey20" :background "grey90")
    (((type x w32 mac) (background dark) (class color))
     :weight light
     :box (:line-width -1 :color "grey40" :style nil)
     :foreground "grey80" :background "grey30"))
  "Basic mode line face for non-selected windows."
  :version "21.4"
  :group 'modeline
  :group 'basic-faces)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]