How to change font size of applications's menu items?

Is it possible to change the font size of all (i.e. globally) of the applications menu items? For example, this is vs code:

The font size of the menu items is a bit larger than I would like it to be. I had a look at lxappearance but could not find a setting that would allow me to change that font.

Thank you in advance!

yes lxapperance has not that detailed settings… you can try something in
could be also that ~/.gtkrc-2.0 is needed
seems gtk3 and after do not take such options from settings.ini and it needs the gtk.css file to be edited for it… i can check that later

1 Like

Seems he wants to change the menu font size of VSCode or Codium. Which I think is not available in VSCode.

1 Like

hmm yea code is electron app or i am wrong? not sure about how it handles these settings

1 Like

Yes, you are correct. vscode is an Electron app, I did not think that mattered. I thought there might be a setting that I can set to apply the font size globally in my system :confused:

I tried to find such an option in vscode but failed :confused:

Yes, it is electron just like Atom but better (for some reason it’s faster than Atom and handles well).

The menu font size issue is there since 2018

VS Code doesn’t have that setting yet and globally I highly dought it because it’s not a global menu.

1 Like

Ah, I see. Thank you! I guess this is a dead-end then. Appreciate your time :slight_smile:

1 Like

vscode is getting that font size from the system.

I am not familiar with QTile but in plasma the menu in vscode is controlled by the “General” font size option. Making that font bigger or smaller will effect that menu. Of course, it also changes a bunch of other text all over the place.

It is worth noting that you may have to restart vscode for font size changes to take effect.

Thank you for your comment. I am not sure if there is an equivalent of the “General” menu in Qtile :confused:

you could try qt5ct.
install it and set the font size with it.
there is also gtk settings:
and in the same folder you can have a gtk.css with more detailed options.

#pane #menubar, 
#pane #menubar GtkMenuShell, 
#pane #menubar GtkMenuShell * 
    font-family: "Noto Sans"; 
    font-size: 18px; 

1 Like

After editing ~/.config/gtk-3.0/settings.ini and changing the gtk-font-name variable the menu items changed in vscode (and also other apps such as xfce4-terminal`

end result:

Thank you very much! :slight_smile:


This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.