Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to specify font for menu "keys" #80

Open
macintacos opened this issue Oct 26, 2023 · 7 comments
Open

Ability to specify font for menu "keys" #80

macintacos opened this issue Oct 26, 2023 · 7 comments
Labels
enhancement New feature or request

Comments

@macintacos
Copy link

Problem

For example, if the l and I menu options are next to each other, because the default sans-serif font displays the keys, they look remarkably identical to one another.

Solution

I know I can (probably?) solve it with CSS, but it'd be great if it were an option to set your own font for the menu items. Personally, I'd set it to a monospace font, since this is basically a solved problem with those for the most part.

Alternatives

Can use CSS - I will in the meantime, but it'd be nice if it were supported in the extension itself

@macintacos macintacos added the enhancement New feature or request label Oct 26, 2023
@MarcoIeni
Copy link
Member

Switching l with I is the story of my life (take a look at my surname 😅)
Imo we could add the font as a setting similar to how vscode does. Not sure how feasible it is.
image

@macintacos
Copy link
Author

Yeah I took a stab at trying to use CSS to set it, and unfortunately it's not quite so straightforward since the component used seems to be a generic one. Every class I've tried to set seems to impact something else somewhere else in the UI that I don't want touched - literally just want the labels to be monospace and nothing else (even if other "menus" are invoked that use the same generic component).

I'm not sure what you can do here since this might be a VSCode limitation - is it possible to add CSS classes for the rows in the quick input panel that users can more readily target?

@stevenguh
Copy link
Member

image

We have a setting which uses fullwidth characters in CJK to workaround the spacing issue. We can consider adding other options such as Mathematical Alphanumeric Symbols which often has a built-in "style" to the character.

@macintacos
Copy link
Author

Personally, I'd like to be able to specify a font of my choice, but if that's not possible then I'd gladly accept whatever would help disambiguate all characters used for keys.

@stevenguh
Copy link
Member

Since we are using VScode menu API, I doubt they would allow special customization any time soon.

But there is some quick result using math monospace character block

image

@photkey
Copy link

photkey commented Jan 8, 2024

It should be possible to customize the font using the Apc Customize UI++ plugin, but I don't know how to make the modifications. If anyone can provide the correct instructions, I would greatly appreciate it!
Here is an example of someone who successfully made modifications: drcika/apc-extension#39 (comment)

@fgimian
Copy link

fgimian commented Aug 26, 2024

As an additional question to this, is there a way to set the font and font size for the menu? I do notice the text is quite a lot smaller and looks different to the usual Ctrl+Shift+P and Ctrl+P menus. 😄

Cheers
Fotis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants