From: Juri Linkov <juri@linkov.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Using images in tabs (was: bug#37385: 27.0.50; Crash on multibyte assertion violation)
Date: Fri, 13 Sep 2019 00:18:37 +0300 [thread overview]
Message-ID: <87impxnqjm.fsf_-_@mail.linkov.net> (raw)
In-Reply-To: <83ftl11xdn.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 12 Sep 2019 16:01:56 +0300")
[-- Attachment #1: Type: text/plain, Size: 765 bytes --]
> Stepping a notch back, I cannot say I like this "non-ASCII art"
> implementation for tabs. It has two annoying problems:
>
> . it looks unprofessional on GUI frames
> . it requires you to determine whether the frame/font used for the
> menu can display this character, which is not easy
>
> Why not use an image of a plus sign on GUI frames, and a simple ASCII
> "+" on TTY frames and frames that have no image support? I think the
> result will be much better.
The biggest advantage of using “Unicode art” is its scalability for free,
i.e. scalable fonts keep the size of the character used in the close button
proportional to the font size of text in tabs.
I tried a small image with small font size and the result is not bad:
[-- Attachment #2: small_font.png --]
[-- Type: image/png, Size: 2916 bytes --]
[-- Attachment #3: Type: text/plain, Size: 57 bytes --]
But a small image with big font size looks too clumsy:
[-- Attachment #4: large_font.png --]
[-- Type: image/png, Size: 5037 bytes --]
[-- Attachment #5: Type: text/plain, Size: 409 bytes --]
I don't know if the patch to vertically center line content
recently sent here by Jesse, could improve the look to align
the button image to the center of the text line in tabs.
Another advantage of “Unicode art” is that on moving the mouse over the
close button the foreground color of its Unicode text changes to red
simply by using mouse-face. I don't know how to do the same with images:
[-- Attachment #6: close_red.png --]
[-- Type: image/png, Size: 7317 bytes --]
next parent reply other threads:[~2019-09-12 21:18 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87tv9ir38c.fsf@mail.linkov.net>
[not found] ` <83ftl11xdn.fsf@gnu.org>
2019-09-12 21:18 ` Juri Linkov [this message]
2019-09-13 6:22 ` Using images in tabs (was: bug#37385: 27.0.50; Crash on multibyte assertion violation) Eli Zaretskii
2019-09-15 20:57 ` Using images in tabs Juri Linkov
2019-09-16 4:15 ` Yuri Khan
2019-09-16 4:39 ` Eli Zaretskii
2019-09-16 20:51 ` Juri Linkov
2019-09-16 21:20 ` Lars Ingebrigtsen
2019-09-17 20:33 ` Juri Linkov
2019-09-18 6:44 ` Robert Pluim
2019-09-18 13:43 ` Lars Ingebrigtsen
2019-09-18 20:50 ` Juri Linkov
2019-09-19 13:47 ` Lars Ingebrigtsen
2019-09-20 18:44 ` Alan Third
2019-09-16 22:49 ` Clément Pit-Claudel
2019-09-17 6:16 ` Eli Zaretskii
2019-09-17 20:35 ` 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=87impxnqjm.fsf_-_@mail.linkov.net \
--to=juri@linkov.net \
--cc=eliz@gnu.org \
--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).