GNU bug report logs - #51309
28.0.60; [Feature Request] Allow to customize tab-bar button images

Previous Next

Package: emacs;

Reported by: Carlos Pita <carlosjosepita2 <at> gmail.com>

Date: Wed, 20 Oct 2021 22:04:01 UTC

Severity: wishlist

Merged with 51648

Found in version 28.0.60

Fixed in version 29.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


Message #11 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Carlos Pita <carlosjosepita2 <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: 28.0.60;
 [Feature Request] Allow to customize tab-bar button images
Date: Thu, 21 Oct 2021 17:30:51 -0300
Hi Juri,

> This definitely should be customizable, but it's unclear what do you
> want to customize: only the file path to the image, or allow to set
> the button propertized with an image with image properties like
> :margin/:ascent?

Probably the entire (image ...) descriptor. So it's possible to use svg
images (with rsvg enabled which now is the
default) that will work fine at any resolution. Also, even if the images
are correctly centered, they look vertically misaligned wrt text, this
is pretty common and tweaking the ascent may help, I guess.

And perhaps setting a nil descriptor should be allowed as a way to
disable the image altogether.

> Could you send such a button string with an image that looks good
> on HiDPI screens?  Then we could try to make a customizable option
> based on your design.

Vectorized images will do it. Otherwise you will have to provide pixmaps
at twice the resolution and, anyway, with fractional scaling they might
end up being blurry again (although not so much as when scaling up
x2). I assume there are not many devices with higher scaling factors
running emacs out there, yet...

There are plenty of free svg icons for light and dark themes here:
https://github.com/microsoft/vscode-icons/tree/main/icons.

Best regards,
Carlos




This bug report was last modified 2 years and 270 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.