...
1 package cview
2
3 import "github.com/gdamore/tcell/v2"
4
5
6 type Theme struct {
7
8 TitleColor tcell.Color
9 BorderColor tcell.Color
10 GraphicsColor tcell.Color
11
12
13 PrimaryTextColor tcell.Color
14 SecondaryTextColor tcell.Color
15 TertiaryTextColor tcell.Color
16 InverseTextColor tcell.Color
17 ContrastPrimaryTextColor tcell.Color
18 ContrastSecondaryTextColor tcell.Color
19
20
21 PrimitiveBackgroundColor tcell.Color
22 ContrastBackgroundColor tcell.Color
23 MoreContrastBackgroundColor tcell.Color
24
25
26 ButtonCursorRune rune
27
28
29 CheckBoxCheckedRune rune
30 CheckBoxCursorRune rune
31
32
33 ContextMenuPaddingTop int
34 ContextMenuPaddingBottom int
35 ContextMenuPaddingLeft int
36 ContextMenuPaddingRight int
37
38
39 DropDownAbbreviationChars string
40 DropDownSymbol rune
41 DropDownOpenSymbol rune
42 DropDownSelectedSymbol rune
43
44
45 ScrollBarColor tcell.Color
46
47
48 WindowMinWidth int
49 WindowMinHeight int
50 }
51
52
53
54
55 var Styles = Theme{
56 TitleColor: tcell.ColorWhite.TrueColor(),
57 BorderColor: tcell.ColorWhite.TrueColor(),
58 GraphicsColor: tcell.ColorWhite.TrueColor(),
59
60 PrimaryTextColor: tcell.ColorWhite.TrueColor(),
61 SecondaryTextColor: tcell.ColorYellow.TrueColor(),
62 TertiaryTextColor: tcell.ColorLimeGreen.TrueColor(),
63 InverseTextColor: tcell.ColorBlack.TrueColor(),
64 ContrastPrimaryTextColor: tcell.ColorBlack.TrueColor(),
65 ContrastSecondaryTextColor: tcell.ColorLightSlateGray.TrueColor(),
66
67 PrimitiveBackgroundColor: tcell.ColorBlack.TrueColor(),
68 ContrastBackgroundColor: tcell.ColorGreen.TrueColor(),
69 MoreContrastBackgroundColor: tcell.ColorDarkGreen.TrueColor(),
70
71 ButtonCursorRune: '◀',
72
73 CheckBoxCheckedRune: 'X',
74 CheckBoxCursorRune: '◀',
75
76 ContextMenuPaddingTop: 0,
77 ContextMenuPaddingBottom: 0,
78 ContextMenuPaddingLeft: 1,
79 ContextMenuPaddingRight: 1,
80
81 DropDownAbbreviationChars: "...",
82 DropDownSymbol: '◀',
83 DropDownOpenSymbol: '▼',
84 DropDownSelectedSymbol: '▶',
85
86 ScrollBarColor: tcell.ColorWhite.TrueColor(),
87
88 WindowMinWidth: 4,
89 WindowMinHeight: 3,
90 }
91
View as plain text