* Updated daily chart to use the theme selector
* Added sleep after changing theme so the chart can update
* Added code for pink theme, made it easier to add more themes in the future
* Added blue chart for future blue theme
* Set chart background to none so it's transparent
* Added back background for dark mode.
* Change daily chart based on file based settings. Only support light/dark mode.
* Cleanup
* Added borders around the bars on the bar chart
* Updated background color for dark theme
* Merge from main
* Fixed some spacing
* Updating Python version for linting
* Cleanup
* Back leveled to Python 3.9
* Update scripts/daily_plot.py
Co-authored-by: Nachtzuster <Nachtzuster@users.noreply.github.com>
* Coding suggestions
---------
Co-authored-by: Nachtzuster <Nachtzuster@users.noreply.github.com>
Introduction of yesterday/today handling added a bug that expresses itself on systems whose timezones are behind UTC. Specifically, the 'localtime' modifier to DATE() attempts to interpret the date to the left as UTC, and convert to localtime. The result is that in timezones behind UTC, the date selected is always 1 earlier than intended.
No timezone conversion should be done. The db data is in local time already.
Here's a demonstration of calling DATE() in various ways in North America EST:
sqlite> select DATE('now');
2024-02-26
sqlite> select DATETIME('now');
2024-02-26 17:20:46
sqlite> select DATE('2024-02-26');
2024-02-26
sqlite> select DATETIME('2024-02-26');
2024-02-26 00:00:00
sqlite> select DATE('now', 'localtime');
2024-02-26
sqlite> select DATE('2024-02-26', 'localtime');
2024-02-25 <--- this is the bug