summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/cjbassi/termui/colors.go
blob: 7913a67eeb207b7090af2bfcc4dfccfe765f260e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package termui

// Color is an integer in the range -1 to 255.
type Color int

// ColorDefault = clear
const ColorDefault = -1

// Copied from termbox. Attributes that can be bitwise OR'ed with a color.
const (
	AttrBold Color = 1 << (iota + 9)
	AttrUnderline
	AttrReverse
)

// 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
	GaugeColor  Color
}

var Theme = Colorscheme{
	Fg: 7,
	Bg: -1,

	LabelFg:  7,
	LabelBg:  -1,
	BorderFg: 6,
	BorderBg: -1,

	Sparkline:   4,
	LineGraph:   0,
	TableCursor: 4,
	GaugeColor:  7,
}