1package tview
2
3import "github.com/gdamore/tcell"
4
5// Theme defines the colors used when primitives are initialized.
6type Theme struct {
7	PrimitiveBackgroundColor    tcell.Color // Main background color for primitives.
8	ContrastBackgroundColor     tcell.Color // Background color for contrasting elements.
9	MoreContrastBackgroundColor tcell.Color // Background color for even more contrasting elements.
10	BorderColor                 tcell.Color // Box borders.
11	TitleColor                  tcell.Color // Box titles.
12	GraphicsColor               tcell.Color // Graphics.
13	PrimaryTextColor            tcell.Color // Primary text.
14	SecondaryTextColor          tcell.Color // Secondary text (e.g. labels).
15	TertiaryTextColor           tcell.Color // Tertiary text (e.g. subtitles, notes).
16	InverseTextColor            tcell.Color // Text on primary-colored backgrounds.
17	ContrastSecondaryTextColor  tcell.Color // Secondary text on ContrastBackgroundColor-colored backgrounds.
18}
19
20// Styles defines the theme for applications. The default is for a black
21// background and some basic colors: black, white, yellow, green, cyan, and
22// blue.
23var Styles = Theme{
24	PrimitiveBackgroundColor:    tcell.ColorBlack,
25	ContrastBackgroundColor:     tcell.ColorBlue,
26	MoreContrastBackgroundColor: tcell.ColorGreen,
27	BorderColor:                 tcell.ColorWhite,
28	TitleColor:                  tcell.ColorWhite,
29	GraphicsColor:               tcell.ColorWhite,
30	PrimaryTextColor:            tcell.ColorWhite,
31	SecondaryTextColor:          tcell.ColorYellow,
32	TertiaryTextColor:           tcell.ColorGreen,
33	InverseTextColor:            tcell.ColorBlue,
34	ContrastSecondaryTextColor:  tcell.ColorDarkCyan,
35}
36