summaryrefslogtreecommitdiffstats
path: root/colorschemes
diff options
context:
space:
mode:
authorCaleb Bassi <calebjbassi@gmail.com>2018-02-20 23:56:37 -0800
committerCaleb Bassi <calebjbassi@gmail.com>2018-02-20 23:56:37 -0800
commiteb6813361345f59088453b382e8aad74a13d64c6 (patch)
tree4ce22c921066b9520c26b2b8665cff9cabe0c91a /colorschemes
parent8cc70da406708333976edc171067d6977894c57e (diff)
Started working on colorschemes
Diffstat (limited to 'colorschemes')
-rw-r--r--colorschemes/default.go30
-rw-r--r--colorschemes/solarized.go0
-rw-r--r--colorschemes/solarized.png0
-rw-r--r--colorschemes/template.go46
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
+ }
+}