From 37d63bf19ecc5d684f8a12465a643a76558a2c6d Mon Sep 17 00:00:00 2001 From: Caleb Bassi Date: Wed, 21 Feb 2018 17:49:47 -0800 Subject: [PATCH] Updated colorschemes --- README.md | 2 +- colorschemes/default.go | 5 +---- colorschemes/solarized.go | 5 +---- gotop.go | 6 +++--- 4 files changed, 6 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 5d43840..138ed6d 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,7 @@ Feel free to add a new one. You can use 256 colors, bold, underline, and reverse * Process List - memory total goes above 100% * general - - copy over vtop themes + - more themes - command line option to set polling interval for CPU and mem - command line updating - command line option to only show processes, CPU, and mem diff --git a/colorschemes/default.go b/colorschemes/default.go index 569f008..72cebe9 100644 --- a/colorschemes/default.go +++ b/colorschemes/default.go @@ -1,9 +1,6 @@ package colorschemes -var DefaultCS = Colorscheme{ - Name: "Default", - Author: "Caleb Bassi", - +var Default = Colorscheme{ Fg: 7, Bg: -1, diff --git a/colorschemes/solarized.go b/colorschemes/solarized.go index 83561e4..c4c5650 100644 --- a/colorschemes/solarized.go +++ b/colorschemes/solarized.go @@ -1,9 +1,6 @@ package colorschemes -var SolarizedCS = Colorscheme{ - Name: "Default", - Author: "Caleb Bassi", - +var Solarized = Colorscheme{ Fg: 250, Bg: -1, diff --git a/gotop.go b/gotop.go index 4e096fe..1ee5a14 100644 --- a/gotop.go +++ b/gotop.go @@ -25,7 +25,7 @@ var ( procLoaded = make(chan bool, 1) keyPressed = make(chan bool, 1) - colorscheme = colorschemes.DefaultCS + colorscheme = colorschemes.Default cpu *w.CPU mem *w.Mem @@ -74,9 +74,9 @@ func updateGotop() { func handleColorscheme(cs string) { switch cs { case "solarized": - colorscheme = colorschemes.SolarizedCS + colorscheme = colorschemes.Solarized case "default": - colorscheme = colorschemes.DefaultCS + colorscheme = colorschemes.Default default: fmt.Fprintf(os.Stderr, "error: colorscheme not recognized\n") os.Exit(1)