You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would definitely be a nice feature to have. I would go about it as follows:
Allow users to store theme files in their config directory (eg. ~/.config/hours/themes/custom-a.json). I'm thinking JSON files as they're the simplest to parse. os.UserConfigDir should do the trick.
These theme files don't need to provide a color for every UI element we're planning to support. If a value doesn't exist, we fallback to the default value.
Once a custom theme is set up, a user can pass in a flag to have that theme picked up.
hours --theme custom-a
In the future, we could ship built-in themes as well, and have the user ask for them in the same way.
hours --theme catppuccin-mocha
At some point (once enough configuration accumulates up), hours will accept user config via more means (TOML/YAML file and environment vars). Allowing a dedicated way of providing theme config will allow a user to attach a theme to multiple config files (instead of having to copy and paste the theme config).
Describe the solution you'd like
Ability to change some colors as defined in
hours/internal/ui/styles.go
Lines 9 to 36 in 2943de2
This could be implemented in three levels:
alias hours='hours --colors...'
)Is your feature request related to a problem? Please describe.
I'm a terminal freak and I want hours to be best looking.
This may also be an accessibility feature for people with vision deficiencies.
Describe alternatives you've considered
No alternatives, AFAIK.
The text was updated successfully, but these errors were encountered: