Re: Work-around for missing tab-line-(in)active faces?
Michael Heerdegen via Users list for the GNU Emacs text editor <[email protected]>
| Newsgroups | gmane.emacs.help |
|---|---|
| Message-ID | <[email protected]> |
Frank Steiner <[email protected]> writes: > Hi, > > when I split a window, the mode-line of the inactive window > gets a different style. > > I'd like to do that for the tab-line, too, but unlike the > mode-line-(in)active faces there are no such for the tab-line. > > With tab-line-tab-name-format-default I can style every single > tab in different ways (and apply whatever face I like), but > I've found no function/hook that allows to apply a different > face to a tab-line itself after e.g. testing if we are in an > inactive window. You have already found the right function to look at. But: at least my version already seems to support what you want (I'm using master). It uses `mode-line-window-selected-p' as a test. And this has an observable effect here, limited though to selected tabs (in any window). The color of the unselected tabs remains unchanged, though the color of the selected tabs does change. At least this is what I see with my setup. Did you maybe accidentally break it? Or maybe the behavior is new, I dunno. Michael.