-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOptions.go
59 lines (52 loc) · 1.56 KB
/
Options.go
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
package percbar
// Options presets
var (
OptionsDefault = &Options{
Chars: "▐",
Colors: "green, blue, magenta, cyan, white, black, higreen, hiblue, himagenta, hicyan, hiwhite, hiblack",
Header: "{SUM} in total",
HaveFooter: true,
AllowFooterColors: true,
}
OptionsColorBlind = &Options{
Chars: "█▐░▚▒▓▣▢",
Header: "{SUM} in total",
HaveFooter: true,
AllowFooterColors: false,
}
OptionsColorBlind2 = &Options{
Chars: "|#=@+%*$=>",
Header: "{SUM} in total",
HaveFooter: true,
AllowFooterColors: false,
}
OptionsRGB = &Options{
Chars: "RGB",
Colors: "red, green, blue",
Header: "{SUM} in total",
HaveFooter: true,
AllowFooterColors: true,
}
OptionsBgColors = &Options{
Chars: "▐",
Colors: "green:green, blue:blue, magenta:magenta, cyan:cyan, white:white, black:black, higreen:higreen, hiblue:hiblue, himagenta:himagenta, hicyan:hicyan, hiwhite:hiwhite, hiblack",
Header: "{SUM} in total",
HaveFooter: true,
AllowFooterColors: true,
}
OptionsDescending = &Options{
Chars: "▇▆▅▄▃▂▁",
Colors: "red, green, blue, ",
Header: "{SUM} in total",
HaveFooter: true,
AllowFooterColors: true,
}
)
// Options for bar display/logic
type Options struct {
Chars string
Colors string
Header string
HaveFooter bool
AllowFooterColors bool
}