package main import ( "github.com/bcicen/ctop/theme" ui "github.com/gizak/termui" ) var ColorMap map[string]ui.Attribute // SetColorMap installs the color scheme for the currently selected theme func SetColorMap() { ColorMap = theme.BuildColorMap() } // InvertColorMap switches to the inverse (light/dark) flavor func InvertColorMap() { if theme.Current() == theme.Latte { theme.Set(theme.Mocha) } else { theme.Set(theme.Latte) } SetColorMap() }