ClementTsang / bottom

Yet another cross-platform graphical process/system monitor.
https://clementtsang.github.io/bottom
MIT License
9.94k stars 235 forks source link

Support for different themes based on Terminal color scheme #1284

Open proletarius101 opened 1 year ago

proletarius101 commented 1 year ago

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 to use system color.

Implementation

The termbg library, available at https://github.com/dalance/termbg, is useful for implementing this feature.

Relevant tickets

ClementTsang commented 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.

MichalBryxi commented 5 months ago

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.

ClementTsang commented 5 months ago

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.