all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Carlos Pita <carlosjosepita2@gmail.com>
To: 51309@debbugs.gnu.org
Subject: bug#51309: 28.0.60; [Feature Request] Allow to customize tab-bar button images
Date: Thu, 21 Oct 2021 17:30:51 -0300	[thread overview]
Message-ID: <CAEOO5TdnkXz=jhkdc_-5af1pKgrrFLLpRbfBhE8HvHG98j=LJw@mail.gmail.com> (raw)
In-Reply-To: <CAEOO5TeyQf8LB6TU3QjuAgKAwFDRu1SOGS4ZQqGOHygfY1VbcA@mail.gmail.com>

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





  parent reply	other threads:[~2021-10-21 20:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-20 22:03 bug#51309: 28.0.60; [Feature Request] Allow to customize tab-bar button images Carlos Pita
2021-10-21 16:46 ` Juri Linkov
2021-10-21 20:30 ` Carlos Pita [this message]
2021-10-22  7:01   ` Juri Linkov
2022-10-24  7:34 ` 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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAEOO5TdnkXz=jhkdc_-5af1pKgrrFLLpRbfBhE8HvHG98j=LJw@mail.gmail.com' \
    --to=carlosjosepita2@gmail.com \
    --cc=51309@debbugs.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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.