Updated colorschemes
This commit is contained in:
parent
11ea4262e9
commit
37d63bf19e
@ -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
|
||||
|
@ -1,9 +1,6 @@
|
||||
package colorschemes
|
||||
|
||||
var DefaultCS = Colorscheme{
|
||||
Name: "Default",
|
||||
Author: "Caleb Bassi",
|
||||
|
||||
var Default = Colorscheme{
|
||||
Fg: 7,
|
||||
Bg: -1,
|
||||
|
||||
|
@ -1,9 +1,6 @@
|
||||
package colorschemes
|
||||
|
||||
var SolarizedCS = Colorscheme{
|
||||
Name: "Default",
|
||||
Author: "Caleb Bassi",
|
||||
|
||||
var Solarized = Colorscheme{
|
||||
Fg: 250,
|
||||
Bg: -1,
|
||||
|
||||
|
6
gotop.go
6
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user