Repository navigation
Description
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
It'd be nice to customize the color of the TUI.
Describe the solution you'd like
A clear and concise description of what you want to happen
Configurable theme section of config.yml. To start with, it'll just have two fields:
theme:
primary_color: yellow
error_color: #0000ffratatui::Color deserializes from both HTML hex strings and color names automatically, so we don't even need to implement that.
We may also want to add a field secondary_color, which would be used for things like the template color. Could also punt that to the future though.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered
We could make the entire style book customizable (Style does implement Deserialize!), but I think that would be way too complex and also opens us up to maintaining the entire set of styles as part of the external API. Making a few core settings customizable, then deriving styles from that, I think is a much better solution.
Additional context
Add any other context or screenshots about the feature request here
If anyone wants to pick this up, the work involved is:
- Split
Themeinto two structs (theme.rs):- A small simple one that defines what's configurable in the config, which I would have keep the name
Theme - A complex one with all the individual styles, which I would call
Styles. This would be derived from the theme, and stored inTuiContext
- A small simple one that defines what's configurable in the config, which I would have keep the name
- Add a new field
theme: Themeto the config (config.rs) - Document
themefield in the config docs
Activity
Make colors customizable
Make colors customizable
Make colors customizable
Make colors customizable
net/slumber: update to 1.1.0
net/slumber: update to 1.1.0
net/slumber: update to 1.1.0
net/slumber: update to 1.1.0