VladimirMarkelov / ttdl

TTDL - Terminal Todo List Manager
MIT License
202 stars 17 forks source link

Poor contrast on light theme #71

Closed alexdavid closed 1 year ago

alexdavid commented 1 year ago

Hi, thanks for writing ttdl!

I use a light theme during the day and ttdl defaults to white text which is difficult to read. Looking through the color configuration there doesn't seem to be a way to set the default color used.

In my opinion default_color should just use the default terminal fg color which I believe we can accomplish with set_fg(None) rather than set_fg(Some(Color::White)). However if you don't like that approach maybe we can just make default_color configurable instead?

I'm happy to add a PR if you let me know your preferred strategy.

VladimirMarkelov commented 1 year ago

Hi, thank you for the idea.

if set_fg(None) works as expected everywhere(I have not tried), it is a good thing to implement. Though, having a default_color in config also makes sense. We can do this way: by default the configuration does not have default_color set(the line is in section colors but the line is commented out). The config reader defaults it to None. In this case we have both: good default for everyone and it is configurable.

VladimirMarkelov commented 1 year ago

I added a default color to configuration. By default, the default foreground color is None, not White.

alexdavid commented 1 year ago

Ah sorry I missed your messages. Yes this works great as it uses the default theme's fg color. Thanks for the implementation and quick turn around!

VladimirMarkelov commented 1 year ago

Ah sorry I missed your messages. Yes this works great as it uses the default theme's fg color. Thanks for the implementation and quick turn around!

You're welcome!