whatscli icon indicating copy to clipboard operation
whatscli copied to clipboard

Adds support for hex and rgb values in config.

Open samuelstevens opened this issue 4 years ago • 0 comments

  • improves support for #24 (hex).

Design

  • Adds a struct to represent the config right after loading from the .ini file using primitive types (string, int, bool, etc.)
  • Adds a struct to represent the config with rich types (tcell.Color).
  • Prints any errors in the configuration to the console.
  • config.Color is a simple wrapper around tcell.Color that has a .HexCode method to return a "#RRGGBB" string where needed.

samuelstevens avatar Nov 12 '21 21:11 samuelstevens