Skip to content
This repository has been archived by the owner on Aug 29, 2020. It is now read-only.

Commit

Permalink
Add default-dark colorscheme
Browse files Browse the repository at this point in the history
  • Loading branch information
cjbassi committed Apr 10, 2018
1 parent adbc862 commit 8ca3974
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
23 changes: 23 additions & 0 deletions colorschemes/default_dark.go
Original file line number Diff line number Diff line change
@@ -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 changes: 7 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ Options:
Colorschemes:
default
default-dark (for terminals with a white background)
solarized
monokai
`
Expand All @@ -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)
Expand Down

0 comments on commit 8ca3974

Please sign in to comment.