change main app's font

45 views
Skip to first unread message

gar

unread,
Mar 20, 2020, 3:22:09 AM3/20/20
to leo-editor
Hello.

Via settings file some font options for some parts of leo may be changed, like: for body, for tree, for log etc.
But still some fonts are always have some pre-defined value: for buttons in toolbar, for find and nav pane etc.
This is very inconvenient in certain circumstances.

Is there any way to change the font for the app itself? I do really want to make it smaller at least for Find and Nav panes.
Thanks!

Edward K. Ream

unread,
Mar 20, 2020, 8:28:36 AM3/20/20
to leo-editor
On Fri, Mar 20, 2020 at 2:22 AM gar <gar...@gmail.com> wrote:

Is there any way to change the font for the app itself? I do really want to make it smaller at least for Find and Nav panes.

This is really a question about Qt style sheets. The short answer is, you can change the font for anything that has a font. The longer answer is that you will have to take a close look at the style sheet in effect for a particular theme.

Edward

gar

unread,
Mar 23, 2020, 3:03:41 AM3/23/20
to leo-editor
In the theme's leo file I navigated to: @settings / <theme> / @data qt-gui-plugin-style-sheet / General Widgets
and changed 'font-size' property in 'QWidget' section.
It changed the overall app's font size.
Thanks for the clue!

Edward K. Ream

unread,
Mar 23, 2020, 11:21:07 AM3/23/20
to leo-editor
You're welcome. Glad it works for you.

Edward
Reply all
Reply to author
Forward
0 new messages