How to change font face of the key's label? #283
Replies: 1 comment 1 reply
-
There is no dedicated face for this text. Note that a lot of text in the transient buffer may be created using functions that are under the control of package authors. So this has to be done my remapping the Instead of adding yet another special case, I've added a new hook, (require 'face-remap)
(defun transient-i-shrunk-the-glyphs ()
(face-remap-reset-base 'default) ;probably unnecessary
(face-remap-add-relative 'default '((:height 100))))
(add-hook 'transient-setup-buffer-hook #'transient-i-shrunk-the-glyphs) |
Beta Was this translation helpful? Give feedback.
-
I'm currently looping over all
transient-*
faces and decrease their size to 80% of the default font. That's usually fine for user interfaces with my large-ish default font setting.I managed to get this far with a brute force change (screenshot from Magit's ? transient):
But as you can see the title/heading and keys shrink, the "Apply" etc. labels don't.
I couldn't figure out whether these are just unpropertized (aka use the default font) or not. Usually I go to the text I want to change and C-u C-x = and inspect the text properties that are in effect. Can't do that with a transient :) I also don't understand the source code tbh (Elisp novice)
Hints would be much appreciated!
Beta Was this translation helpful? Give feedback.
All reactions