enable theme file

32 views
Skip to first unread message

wang xu

unread,
Aug 19, 2019, 6:57:59 AM8/19/19
to leo-editor
Dear All,

I'm trying to enable a theme, below is the procedure I followed:

1) Create one empty leo file, name it myLeoSettings.leo, put is under my home folder.
2) Added one node in the empty myLeoSettings.leo with following headline:

@string BreezeDark2Theme BreezeDark2Theme.leo

3) save myLeoSettings.leo
4) quit leo and restart leo.

The theme was not enabled.
There must be something wrong in my myLeoSettings.leo?

I also tried 
1) put another @settings node and make @string BreezeDark2Theme BreezeDark2Theme.leo under that node
2) change @string BreezeDark2Theme BreezeDark2Theme.leo to @string BreezeDark2Theme=BreezeDark2Theme.leo

all failed.

Finally, I workaround this by making a copy of BreezeDark2Theme.leo to ~/myLeoSettings.leo and the theme began to work.

This should not the proper way.. how to enable a them in myLeoSettings.leo?

BR,Xu


vitalije

unread,
Aug 19, 2019, 8:16:31 AM8/19/19
to leo-editor
myLeoSettings.leo file should be in ~/.leo/ folder. not in ~/   (your home folder).

and the setting you should have under the @settings node is:
@string theme-name=BreezeDark2Theme.leo

Vitalije

Xu Wang

unread,
Aug 20, 2019, 6:11:51 AM8/20/19
to leo-editor


在 2019年8月19日星期一 UTC+7下午7:16:31,vitalije写道:
myLeoSettings.leo file should be in ~/.leo/ folder. not in ~/   (your home folder).

and the setting you should have under the @settings node is:
@string theme-name=BreezeDark2Theme.leo



thanks Vitalije..  it's solved. 
Reply all
Reply to author
Forward
0 new messages