def computeThemeDirectories(self):
"""
Return a list of *existing* directories that might contain theme .leo files.
"""
join = g.os_path_finalize_join
home = g.app.homeDir
leo = join(g.app.loadDir, '..')
table = [
home,
join(home, 'themes'),
join(home, '.leo'),
join(home, '.leo', 'themes'),
join(leo, 'themes'),
]
return [g.os_path_normslashes(z) for z in table if g.os_path_exists(z)]
# Make sure home has normalized slashes.Since I posted, I found that bit in the LeoPyRef.leo file, made a themes subdirectory in .leo, and tried it out. It did work. I had a bit of uncertainty about what name to use for the theme specification in myLeoSettings.leo. Ultimately I used the filename of my copy of the theme file (without the .leo extension) and that worked. I also tried it on the command line using --theme= and that worked too.
Not sure if this is related, but after pulling the latest updates, my custom theme doesn't work and I now have a dark theme with black text on black background, so Leo is completely unusable. I also get this is the console:resolve_urls None ==> NOT FOUND
resolve_urls Search paths...
[
'D:/Synced/github repos/leo/leo/themes',
'D:/Synced/github repos/leo/leo/Icons',
'C:/Users/rob_iawac46',
'C:/Users/rob_iawac46/.leo'
]
resolve_urls None ==> NOT FOUNDAll 4 paths are valid, so I don't know what the message means.
Any suggestions to revert so I can get back to work?
resolve_urls None ==> NOT FOUND
resolve_urls None ==> NOT FOUNDThis message is probably not relevant.
What do you have in your myLeoSettings.leo for @string theme-name ?Setting it to None should restore the legacy operation.