Updated colorschemes

This commit is contained in:
Caleb Bassi 2018-02-21 17:49:47 -08:00
parent 11ea4262e9
commit 37d63bf19e
4 changed files with 6 additions and 12 deletions

View File

@ -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

View File

@ -1,9 +1,6 @@
package colorschemes
var DefaultCS = Colorscheme{
Name: "Default",
Author: "Caleb Bassi",
var Default = Colorscheme{
Fg: 7,
Bg: -1,

View File

@ -1,9 +1,6 @@
package colorschemes
var SolarizedCS = Colorscheme{
Name: "Default",
Author: "Caleb Bassi",
var Solarized = Colorscheme{
Fg: 250,
Bg: -1,

View File

@ -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)