diff options
author | Caleb Bassi <calebjbassi@gmail.com> | 2018-02-20 23:56:37 -0800 |
---|---|---|
committer | Caleb Bassi <calebjbassi@gmail.com> | 2018-02-20 23:56:37 -0800 |
commit | eb6813361345f59088453b382e8aad74a13d64c6 (patch) | |
tree | 4ce22c921066b9520c26b2b8665cff9cabe0c91a /colorschemes | |
parent | 8cc70da406708333976edc171067d6977894c57e (diff) |
Started working on colorschemes
Diffstat (limited to 'colorschemes')
-rw-r--r-- | colorschemes/default.go | 30 | ||||
-rw-r--r-- | colorschemes/solarized.go | 0 | ||||
-rw-r--r-- | colorschemes/solarized.png | 0 | ||||
-rw-r--r-- | colorschemes/template.go | 46 |
4 files changed, 76 insertions, 0 deletions
diff --git a/colorschemes/default.go b/colorschemes/default.go new file mode 100644 index 0000000..985b0a4 --- /dev/null +++ b/colorschemes/default.go @@ -0,0 +1,30 @@ +package colorschemes + +var DefaultCS = Colorscheme{ + Name: "Default", + Author: "Caleb Bassi", + + Bg: -1, + + Border{ + Labels: 0, + Line: 0, + }, + + CPU{ + Lines: []int{0, 0, 0, 0}, + }, + + Mem{ + Main: 0, + Swap: 0, + }, + + Proc{ + Cursor: 5, + }, + + Sparkline{ + Graph: 10, + }, +} diff --git a/colorschemes/solarized.go b/colorschemes/solarized.go new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/colorschemes/solarized.go diff --git a/colorschemes/solarized.png b/colorschemes/solarized.png new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/colorschemes/solarized.png diff --git a/colorschemes/template.go b/colorschemes/template.go new file mode 100644 index 0000000..5819f74 --- /dev/null +++ b/colorschemes/template.go @@ -0,0 +1,46 @@ +package colorschemes + +/* + the standard 256 terminal colors are supported + + -1 = clear + + You can combine a color with Bold, Underline, or Reverse by using bitwise OR ('|'). + For example, to get Bold red Labels, you would do 'Labels: 2 | Bold' +*/ + +// Ignore this +const ( + Bold int = 1 << (iota + 9) + Underline + Reverse +) + +type Colorscheme struct { + Name string + Author string + + Bg int + + Border struct { + Labels int + Line int + } + + CPU struct { + Lines []int + } + + Mem struct { + Main int + Swap int + } + + Proc struct { + Cursor int + } + + Sparkline struct { + Graph int + } +} |