From: Juri Linkov <juri@linkov.net>
To: Adam Porter <adam@alphapapa.net>
Cc: emacs-devel@gnu.org
Subject: Re: [PATCH] tab-line-alternate-colors
Date: Sun, 13 Dec 2020 23:25:21 +0200 [thread overview]
Message-ID: <87wnxl760u.fsf@mail.linkov.net> (raw)
In-Reply-To: <87tusqt3yr.fsf@alphapapa.net> (Adam Porter's message of "Sun, 13 Dec 2020 04:06:36 -0600")
>> 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.
next prev parent reply other threads:[~2020-12-13 21:25 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-13 6:04 [PATCH] tab-line-alternate-colors Adam Porter
2020-12-13 6:17 ` Adam Porter
2020-12-13 8:45 ` Juri Linkov
2020-12-13 10:06 ` Adam Porter
2020-12-13 11:13 ` Adam Porter
2020-12-13 15:21 ` Eli Zaretskii
2020-12-14 2:17 ` Adam Porter
2020-12-14 15:34 ` Eli Zaretskii
2020-12-16 2:58 ` Adam Porter
2020-12-16 15:41 ` Eli Zaretskii
2020-12-13 21:25 ` Juri Linkov [this message]
2020-12-14 4:33 ` Adam Porter
2020-12-14 9:10 ` Juri Linkov
2020-12-14 10:05 ` Adam Porter
2020-12-14 19:37 ` Juri Linkov
2020-12-16 3:24 ` Adam Porter
2020-12-16 3:55 ` Adam Porter
2020-12-16 9:03 ` Juri Linkov
2020-12-16 10:26 ` Adam Porter
2020-12-16 20:46 ` Juri Linkov
2020-12-18 3:55 ` Adam Porter
2020-12-23 21:07 ` Juri Linkov
2020-12-24 11:26 ` Adam Porter
2020-12-14 9:14 ` Adam Porter
2020-12-14 19:33 ` Juri Linkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wnxl760u.fsf@mail.linkov.net \
--to=juri@linkov.net \
--cc=adam@alphapapa.net \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).