leo + mac: Old light themes and shortcut for edit headline?

48 views
Skip to first unread message

Satheesh Vattekkat

unread,
May 12, 2021, 8:07:11 AM5/12/21
to leo-editor
Got a new macbook (work policy:)) and I had to get this all setup again.

Installed Leo from git and two things I am finding it difficult on how to handle (I was on an older version of Leo on Linux so far).

1. How do I get the old light color scheme. Couldn't see any @theme files for that. Dark DefaultTheme is too dark for me and PaperLight and EKRLight are, well not something I am used to yet.
2. Cmd-H is reserved by Apple. Saw EKR's post about this. Is there any way we can set a shortcut for this? I tried @shortcut in myLocalSettings for edit-headline and it always shows up as an error.

edit-headline = Alt-h  for example didn't work.

Any help will be great... I did search around in groups and in documentation - made a new theme, but it is not really as good as the old one.

tbp1...@gmail.com

unread,
May 12, 2021, 1:37:02 PM5/12/21
to leo-editor
About themes, what I do is to specify a non-existent theme, then add a few settings to tweak the appearance, which is much like the old one.

Here is what I put in MyLeoSettings.leo:

@settings
    @string theme-name = xxtbp_default_theme
    No-theme Appearance Settings
        @string font-size = 10pt 
        @string font-family = Consolas, Droid Sans Mono, DejaVu Sans Mono, sans-serif
    Gutter Settings
        @bool use_gutter = True
        @int gutter-y-adjust = 5

You will probably want to change the font to something that is on the Mac that you like.  I only have all those fonts to be able to get something reasonable on a variety of Windows and Linux machines I sometimes use (I copy the file to each of them when I set them up with Leo).  You might need to tweak the gutter-y-adjust to suit your font.

The theme name points to a theme file that doesn't exist.  Leo doesn't use the default theme if it can't find the one you specify here, and instead gives you the old appearance. That seems a bit odd, but I'm very glad of it.  I hope that Edward doesn't decide to change it.

Satheesh Vattekkat

unread,
May 13, 2021, 12:52:11 AM5/13/21
to leo-editor
Awesome! This worked exactly like what I wanted. I tried using NoneTheme and spent lot of time tweaking the settings - duh moment, didn't think of giving a wrong theme name at all :)

Satheesh Vattekkat

unread,
May 15, 2021, 10:09:16 AM5/15/21
to leo-editor
I realized that in OSX, this solution doesn't paint the tree open/closed icons making it a bit difficult to figure out whether a node has children or not.

I tried adding in myLeoSettings: @string tree-image-open = nodes-light/triangles/open.png; looking at the code, it does read this file, but icons are not drawn. Could be an OSX specific things.

Anyway, found a solution that goes with my preferred light gray background schemes. All nice light colors; arrow icons back etc.

Header edit shortcut is still a problem - since my workflow involves making outline first, edits of the text is not that much and living with it now.

@string theme-name = NullTheme
@string font-family = Fira Code,Droid Sans Mono
@string font-size-body = 14pt
@data qt-gui-user-style-sheet
  QWidget {
  background:  #e5e9f0;
  font-family: @font-family;
  font-size: @font-size-body;
  }
  QTextEdit {
  background: #e5e9f0;
  font-family: @font-family;
Reply all
Reply to author
Forward
0 new messages