Provide theme for light mode #15
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
windows
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
kahliburke/Tachikoma.jl#15
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I looked at the available themes (in TachikomaDemos/launcher), and all are quite difficult to read on my screen. I am using light mode, i.e. a light background, and the current themes all use several colours that are too close to white.
@eschnett - I'm dark mode 100%, so it's reflecting my bias. I would welcome a contribution of something like:
Any toggles should have a user persisted preference via LocalPreferences, and be placed into the Tachikoma settings controls (opened with ctrl-s by default)
There would be a related issue which is that pixel canvases are rendered on a dark background, the light theme mode would need to be integrated into this system as well.
Happy to have a working session on any of these things if you would like.
Here is an idea I have. Define a few functions:
and then write e.g.
This would automate creating light themes by just inverting the dark themes. The results are readable – but of course the colours are "wrong", instead of a blue-ish style, the kokaku_light theme is deep purple-ish. The error colour is now green-cyan-ish. All very visible, though.
It might also be possible to auto-detect the terminal background colour by using OSC 11, and to switch between light and dark themes automatically. I don't know whether this is a good idea.
+1 one on auto-detecting the terminal background color. There are a few methods that generally work, both via escape codes, or via environment variables (
COLORFGBGis a classic one, but sometimes specific terminal emulators set additional variables).It might also be interesting to experiment with a monochrome "color" (or rather, no-color) scheme by default that simply uses the "default" foreground and background color of the terminal. Something like
Sessionsmight go a long way in monochrome, even if that doesn't allow for things like syntax highlighting of Julia code or fancy colorful plots.Beyond that, you'd probably want a preferences-file to choose a color theme or to set specific colors. Incidentally (mixing this issue with a concern for
Sessionsspecifically): can I switch between the existing color schemes inSessions, or define my own colors in some file that I could then experiment with?I don't know specifically about whether Sessions exposes the default keybindings which includes Ctrl-\ for opening the theme selector.
I'm not going to implement the dark/light. mode detector at this time. If you want to implement it and test it in all the browsers, I'd consider a patch. It just seems like a fiddly thing for not that much gain. You'll be able to select your alignment (dark/light) and then have a set of themes for those modes. Theme and alignment selection is persistent by default. (theme already was through LocalPreferences), but that can be app specific.
Please try in the new release and provide any feedback on whether it works for your needs!