add named colors via the config file

This commit is contained in:
2020-04-04 10:27:09 -05:00
parent 3a6ee185fb
commit f8e9dbc716
2 changed files with 16 additions and 1 deletions

View File

@ -10,7 +10,7 @@ import (
type Config struct {
AccessToken string
Colors map[string]string `toml:"colors"`
Colors map[string][]float32 `toml:"colors"`
}
type CmdArgs struct {
@ -44,6 +44,7 @@ var (
defaultHue string = ""
defaultSaturation string = ""
defaultRGB string = ""
defaultName string = ""
)
func (f Flags) String(name string) string {