Open proletarius101 opened 1 year ago
Hmm... interesting, I can look into that.
Might also have to consider it should interact with custom colour schemes in the config - I guess I could open up a section for dark mode custom colours if someone wanted to specify custom light and dark mode themes.
I hate to be that person, but: Any news on this? My terminal(well, whole OS) color scheme changes at least two times per day. So not having to care about extra cmd line flag every time would be awesome.
Haven't had too much time so not yet, sorry! Can try to take a look when I have time as I think this isn't too hard to do though, I think I can borrow a lot of the lessons/ideas from the linked bat
issue too.
Checklist
Describe the feature request
Currently, the
bottom
program only allows for specification of one theme using--color --color default-light
. However, it would be more efficient if we could implement automatic detection of light or dark theme variants to match the theme variant of the terminal program, preventing ineligibility when switching between terminal theme variants. This feature is particularly useful when the terminal is set touse system color
.Implementation
The
termbg
library, available at https://github.com/dalance/termbg, is useful for implementing this feature.Relevant tickets