Add default-dark colorscheme
This commit is contained in:
parent
adbc86235c
commit
40981ed02b
23
colorschemes/default_dark.go
Normal file
23
colorschemes/default_dark.go
Normal file
@ -0,0 +1,23 @@
|
||||
package colorschemes
|
||||
|
||||
var DefaultDark = Colorscheme{
|
||||
Fg: 235,
|
||||
Bg: -1,
|
||||
|
||||
BorderLabel: 235,
|
||||
BorderLine: 6,
|
||||
|
||||
CPULines: []int{4, 3, 2, 1, 5, 6, 7, 8},
|
||||
|
||||
MainMem: 5,
|
||||
SwapMem: 3,
|
||||
|
||||
ProcCursor: 33,
|
||||
|
||||
Sparkline: 4,
|
||||
|
||||
DiskBar: 252,
|
||||
|
||||
TempLow: 2,
|
||||
TempHigh: 1,
|
||||
}
|
11
main.go
11
main.go
@ -59,6 +59,7 @@ Options:
|
||||
|
||||
Colorschemes:
|
||||
default
|
||||
default-dark (for white background)
|
||||
solarized
|
||||
monokai
|
||||
`
|
||||
@ -82,12 +83,14 @@ Colorschemes:
|
||||
|
||||
func handleColorscheme(cs string) {
|
||||
switch cs {
|
||||
case "monokai":
|
||||
colorscheme = colorschemes.Monokai
|
||||
case "solarized":
|
||||
colorscheme = colorschemes.Solarized
|
||||
case "default":
|
||||
colorscheme = colorschemes.Default
|
||||
case "solarized":
|
||||
colorscheme = colorschemes.Solarized
|
||||
case "monokai":
|
||||
colorscheme = colorschemes.Monokai
|
||||
case "default-dark":
|
||||
colorscheme = colorschemes.DefaultDark
|
||||
default:
|
||||
fmt.Fprintf(os.Stderr, "error: colorscheme not recognized\n")
|
||||
os.Exit(1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user