summaryrefslogtreecommitdiffstats
path: root/colorschemes
diff options
context:
space:
mode:
Diffstat (limited to 'colorschemes')
-rw-r--r--colorschemes/default.go32
-rw-r--r--colorschemes/default_dark.go23
-rw-r--r--colorschemes/monokai.go23
-rw-r--r--colorschemes/solarized.go23
-rw-r--r--colorschemes/template.go52
5 files changed, 50 insertions, 103 deletions
diff --git a/colorschemes/default.go b/colorschemes/default.go
index 48db2d3..b935b07 100644
--- a/colorschemes/default.go
+++ b/colorschemes/default.go
@@ -1,23 +1,31 @@
package colorschemes
var Default = Colorscheme{
- Fg: 7,
- Bg: -1,
+ Default: ColorTeal,
- BorderLabel: 7,
- BorderLine: 6,
+ BorderLabel: ColorTeal,
+ // BorderLine: 6,
+ BorderLine: ColorAqua,
- CPULines: []int{4, 3, 2, 1, 5, 6, 7, 8},
+ // CPULines: []int{4, 3, 2, 1, 5, 6, 7, 8},
+ CPULines: []int32{ColorBlue, ColorOlive, ColorGreen, ColorRed},
- MainMem: 5,
- SwapMem: 11,
+ // MainMem: 5,
+ MainMem: ColorPurple,
+ // SwapMem: 11,
+ SwapMem: ColorYellow,
- ProcCursor: 4,
+ // ProcCursor: 4,
+ ProcCursor: ColorBlue,
- Sparkline: 4,
+ Sparkline: ColorBlue,
+ // Sparkline: 4,
- DiskBar: 7,
+ // DiskBar: 7,
+ DiskBar: ColorTeal,
- TempLow: 2,
- TempHigh: 1,
+ // TempLow: 2,
+ TempLow: ColorGreen,
+ // TempHigh: 1,
+ TempHigh: ColorRed,
}
diff --git a/colorschemes/default_dark.go b/colorschemes/default_dark.go
deleted file mode 100644
index 15f7137..0000000
--- a/colorschemes/default_dark.go
+++ /dev/null
@@ -1,23 +0,0 @@
-package colorschemes
-
-var DefaultDark = Colorscheme{
- Fg: 235,
- Bg: -1,
-
- BorderLabel: 235,
- BorderLine: 6,
-
- CPULines: []int{4, 3, 2, 1, 5, 6, 7, 8},
-
- MainMem: 5,
- SwapMem: 3,
-
- ProcCursor: 33,
-
- Sparkline: 4,
-
- DiskBar: 252,
-
- TempLow: 2,
- TempHigh: 1,
-}
diff --git a/colorschemes/monokai.go b/colorschemes/monokai.go
deleted file mode 100644
index b3dbc23..0000000
--- a/colorschemes/monokai.go
+++ /dev/null
@@ -1,23 +0,0 @@
-package colorschemes
-
-var Monokai = Colorscheme{
- Fg: 249,
- Bg: -1,
-
- BorderLabel: 249,
- BorderLine: 239,
-
- CPULines: []int{81, 70, 208, 197, 249, 141, 221, 186},
-
- MainMem: 208,
- SwapMem: 186,
-
- ProcCursor: 197,
-
- Sparkline: 81,
-
- DiskBar: 102,
-
- TempLow: 70,
- TempHigh: 208,
-}
diff --git a/colorschemes/solarized.go b/colorschemes/solarized.go
deleted file mode 100644
index 2ead4df..0000000
--- a/colorschemes/solarized.go
+++ /dev/null
@@ -1,23 +0,0 @@
-package colorschemes
-
-var Solarized = Colorscheme{
- Fg: 250,
- Bg: -1,
-
- BorderLabel: 250,
- BorderLine: 37,
-
- CPULines: []int{61, 33, 37, 64, 125, 160, 166, 136},
-
- MainMem: 125,
- SwapMem: 166,
-
- ProcCursor: 136,
-
- Sparkline: 33,
-
- DiskBar: 245,
-
- TempLow: 64,
- TempHigh: 160,
-}
diff --git a/colorschemes/template.go b/colorschemes/template.go
index f5a84bb..e7cd93a 100644
--- a/colorschemes/template.go
+++ b/colorschemes/template.go
@@ -12,36 +12,44 @@ package colorschemes
in `gotop.go`.
*/
-// Ignore this
-const (
- Bold int = 1 << (iota + 9)
- Underline
- Reverse
-)
-
type Colorscheme struct {
- Name string
- Author string
-
- Fg int
- Bg int
+ Default int32
- BorderLabel int
- BorderLine int
+ BorderLabel int32
+ BorderLine int32
// should add at least 8 here
- CPULines []int
+ CPULines []int32
- MainMem int
- SwapMem int
+ MainMem int32
+ SwapMem int32
- ProcCursor int
+ ProcCursor int32
- Sparkline int
+ Sparkline int32
- DiskBar int
+ DiskBar int32
// colors the temperature number a different color if it's over a certain threshold
- TempLow int
- TempHigh int
+ TempLow int32
+ TempHigh int32
}
+
+const (
+ ColorBlack = 0x000000
+ ColorMaroon = 0x800000
+ ColorGreen = 0x008000
+ ColorOlive = 0x808000
+ ColorNavy = 0x000080
+ ColorPurple = 0x800080
+ ColorTeal = 0x008080
+ ColorSilver = 0xC0C0C0
+ ColorGray = 0x808080
+ ColorRed = 0xFF0000
+ ColorLime = 0x00FF00
+ ColorYellow = 0xFFFF00
+ ColorBlue = 0x0000FF
+ ColorFuchsia = 0xFF00FF
+ ColorAqua = 0x00FFFF
+ ColorWhite = 0xFFFFFF
+)