xmtop/termui/colors.go
2018-02-21 02:28:17 -08:00

49 lines
671 B
Go

package termui
type Color int
const ColorDefault = -1
const (
AttrBold Color = 1 << (iota + 9)
AttrUnderline
AttrReverse
)
var Theme = DefaultTheme
var DefaultTheme = Colorscheme{
Fg: 7,
Bg: -1,
LabelFg: 7,
LabelBg: -1,
BorderFg: 6,
BorderBg: -1,
Sparkline: 4,
LineGraph: -1,
TableCursor: 4,
BarColor: 7,
TempLow: 2,
TempHigh: 1,
}
// A ColorScheme represents the current look-and-feel of the dashboard.
type Colorscheme struct {
Fg Color
Bg Color
LabelFg Color
LabelBg Color
BorderFg Color
BorderBg Color
Sparkline Color
LineGraph Color
TableCursor Color
BarColor Color
TempLow Color
TempHigh Color
}