Themes documentation

35 views
Skip to first unread message

Rob

unread,
Nov 9, 2020, 3:22:04 PM11/9/20
to leo-editor
Having trouble loading different themes, so checking the online documentation here as well as looking at the main LeoSettings.leo and other theme files, I'm confused.

Quoting from the web site:

To enable a theme, put the following setting in myLeoSettings.leo:
@string theme-name <name of theme file>

First question is shouldn't that read: @string theme-name = <name of theme file>? (Missing `=`)

Then later:

Theme files should contain three settings that describe the theme:

@bool color_theme_is_dark # True for dark themes 
@string color_theme = name # Used to find icons 
@string theme_name # Used to find other graphics elements.

Second question, is which syntax is correct theme_name or theme-name (underscore or dash)? I see both used. Does it matter?

Third question is even trying both syntaxes, I can't get a different theme to load. I continue to get the 'expand_css_constants Unresolved @constants' errors from before and don't know if those are theme related.

Rob...

Rob

unread,
Nov 9, 2020, 3:34:20 PM11/9/20
to leo-editor
Ignore the third question as I had the setting in the wrong place.

Thomas Passin

unread,
Nov 9, 2020, 4:27:04 PM11/9/20
to leo-editor
On Monday, November 9, 2020 at 3:22:04 PM UTC-5, Rob wrote:
Having trouble loading different themes, so checking the online documentation here as well as looking at the main LeoSettings.leo and other theme files, I'm confused.

Quoting from the web site:

To enable a theme, put the following setting in myLeoSettings.leo:
@string theme-name <name of theme file>

First question is shouldn't that read: @string theme-name = <name of theme file>? (Missing `=`)

Right.
 
Then later:

Theme files should contain three settings that describe the theme:

@bool color_theme_is_dark # True for dark themes 
@string color_theme = name # Used to find icons 
@string theme_name # Used to find other graphics elements.

Second question, is which syntax is correct theme_name or theme-name (underscore or dash)? I see both used. Does it matter?

I think underscore vs dash does not matter.  When Leo imports the settings, both of them are removed (as I'm pretty sure I saw somewhere in the code).

Edward K. Ream

unread,
Nov 14, 2020, 4:48:45 PM11/14/20
to leo-editor
On Mon, Nov 9, 2020 at 2:22 PM Rob <lar...@gmail.com> wrote:
Having trouble loading different themes, so checking the online documentation here as well as looking at the main LeoSettings.leo and other theme files, I'm confused.

Quoting from the web site:

To enable a theme, put the following setting in myLeoSettings.leo:
@string theme-name <name of theme file>

First question is shouldn't that read: @string theme-name = <name of theme file>? (Missing `=`)

Fixed in devel.

Edward

Edward K. Ream

unread,
Nov 14, 2020, 4:49:43 PM11/14/20
to leo-editor


On Mon, Nov 9, 2020 at 3:27 PM Thomas Passin <tbp1...@gmail.com> wrote:


I think underscore vs dash does not matter.  When Leo imports the settings, both of them are removed.

That's correct.

Edward
Reply all
Reply to author
Forward
0 new messages