How to customize look&feel?

84 views
Skip to first unread message

gar

unread,
Jun 20, 2019, 11:23:45 AM6/20/19
to leo-editor
I'm trying to customize Leo for my likings. 
First of all I took a theme and placed it's name into appropriate setting of myLeoSettings project. Ok, it applied, but font size is so huge that all texts run out of my screen.

Ok. I added a setting for base font size. It didnt work. Fonts remained huge.
Ok, I said. I copied theme node into mySettings. Changed font sizes everywhere I found their traces. And nothing has changed again. Magic.

Is there any way to customize fonts when theme is used? I suspect that their sizes hardcoded somewhere in qml files - seems like so.


gar

unread,
Jun 20, 2019, 11:40:10 AM6/20/19
to leo-editor
Strange... My settings contain (for example) @string font-size-body = 12px
But when I dump all the settings via menu command I see that: [F] @string fontsizebody = 22px
Got no idea what does that mean and why does it go in this way.
It seems strange to me to spend hours debugging setup of font sizes of the editor....

четверг, 20 июня 2019 г., 18:23:45 UTC+3 пользователь gar написал:

Chris George

unread,
Jun 20, 2019, 11:55:31 AM6/20/19
to leo-editor
HI Gar,

Here is how I use themes.

In the directory leo-editor/leo/themes are a number of theme files. These can be loaded using the File, Open Outline menu option in Leo. Opening an outline automatically loads it. Keep opening outlines until you find one you like.

Then close all of the theme files.

Copy the theme file you chose from leo-editor/leo/themes to ~/.leo/themes (you will have to create the themes folder here) and rename it something like this: Original file is BreezeDarkTheme.leo rename to BreezeDarkThemeLocal.leo

Now open your myLeoSettings.leo file.

Add the following to the headline of a new node as a child of your @settings node:
@string theme-name = BreezeDarkThemeLocal

Now save the file and restart Leo.

You should now be using the theme of your choice. From here you need to open the local theme file with Leo. The font sizing and colors are under Theme Settings in the tree.

HTH,

Chris

Edward K. Ream

unread,
Jun 20, 2019, 12:10:29 PM6/20/19
to leo-editor
On Thu, Jun 20, 2019 at 10:40 AM gar <gar...@gmail.com> wrote:
Strange... My settings contain (for example) @string font-size-body = 12px
But when I dump all the settings via menu command I see that: [F] @string fontsizebody = 22px
Got no idea what does that mean and why does it go in this way.

The [F] means that the setting in question is defined in the local .leo file, not in myLeoSettings.leo or leoSettings.leo.
It seems strange to me to spend hours debugging setup of font sizes of the editor....

Yeah, all this flexibility is usually not all that helpful.

Edward

gar

unread,
Jun 20, 2019, 12:24:40 PM6/20/19
to leo-editor
Thanks a lot, Chris! You recipe just worked. But it isn't obvious for me though.

Edward, I believe that this should be written in the docs. It shouldn't be THAT hard to just change the font size....

четверг, 20 июня 2019 г., 18:55:31 UTC+3 пользователь Chris George написал:

Edward K. Ream

unread,
Jun 20, 2019, 12:31:26 PM6/20/19
to leo-editor
On Thu, Jun 20, 2019 at 11:24 AM gar <gar...@gmail.com> wrote:
Thanks a lot, Chris! You recipe just worked. But it isn't obvious for me though.

Edward, I believe that this should be written in the docs. It shouldn't be THAT hard to just change the font size....

You're right.  It's on the list for 6.0.

Edward

Austin(Xu) Wang

unread,
Aug 19, 2019, 6:57:59 AM8/19/19
to leo-editor
Thanks Chris..

Suggest to put this procedure in the document something like a best practice(for newbie?)..  

I was not able to config theme successfully following the instructions at 

Until I found this email.

Matt Wilkie

unread,
Aug 19, 2019, 4:35:34 PM8/19/19
to leo-editor
Suggest to put this procedure in the document something like a best practice(for newbie?)..  

Reply all
Reply to author
Forward
0 new messages