emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] tab-line-alternate-colors


From: Juri Linkov
Subject: Re: [PATCH] tab-line-alternate-colors
Date: Sun, 13 Dec 2020 23:25:21 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)

>> Thanks, it would be nice to support displaying tabs in alternating
>> colors.  But there are endless possibilities for look and feel of
>> tabs, so instead of hard-coding only one of them for alternating
>> colors, I suggest to add a customizable function with a name like
>> 'tab-line-tab-face' that with a tab provided as its arg (and a list of
>> tabs to be able to find the ordinal number of the given tab) would
>> return its face to use.
>
> Yes, that seems like a good idea.  Something like this?  I also added
> another face for non-file-backed buffers, which helps distinguish them.

What if some users might want to display tabs with rainbow colors?
Then this too specific option tab-line-alternate-colors won't help.

What I suggest is that defcustom tab-line-tab-face-function could
provide a separate function choice, e.g. tab-line-tab-face-alternate,
so when customized to tab-line-tab-face-alternate, this function
could call the default function tab-line-tab-face-default,
and if the default function returns 'tab-line-tab-inactive',
then replace it with 'tab-line-tab-inactive-alternate'
depending on whether the tab is odd/even.



reply via email to

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