The new --theme=name command-line argument is functional. More work is coming.
The "name" argument can be the name (or path) to any .leo file, with or without the .leo suffix. Absolute paths are allowed. Relative names/paths are resolved to directories in the following order: home home/themes home/.leo home/.leo/themes leo/themes *Still to do* - At present the specified theme file is opened last. In most cases it should then be closed. - Support @theme-name = name. It would (for the user) be equivalent to --theme=name. - Clean up the StyleSheetManager class. For example, the LM.computeThemeDirectories may supersede ssm.compute_theme_directories. This is much simpler work then envisioned previously. *Summary* Work is almost complete on theme-related machinery. Remaining substantive work will likely be confined to the LoadManager class. Except for cleanups, the StyleSheetManager class will remain as it is. --theme=name and @theme-name = name will be roughly equivalent. This means that theme-related settings *may optionally *be moved out of myLeoSettings.leo if desired. All new features are *completely optional*. Leo will load myLeoSettings.leo exactly as before, including themes-related settings. Defining themes in myLeoSettings.leo will be slightly faster than loading a separate theme file. Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
