Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# ======================================================================================================================

# The version of the CLI being build - this should be a valid SemVer format
VERSION ?= 1.10.1
VERSION ?= 1.10.1-rc1
MILESTONE ?=
SHELL := /bin/bash

Expand Down
27 changes: 27 additions & 0 deletions pkg/cmd/monitor_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
"github.com/spf13/cobra"
"github.com/spf13/viper"
"log"
"sort"
"strings"
"sync"
"time"
Expand Down Expand Up @@ -132,6 +133,31 @@ var styleConfigsMap = map[string]StyleConfig{
TitleStyle: tcell.StyleDefault.Foreground(tcell.ColorDarkBlue),
BoxStyle: tcell.StyleDefault.Foreground(tcell.ColorDarkGray),
},
"solarized-dark": {
TextStyle: tcell.StyleDefault.Foreground(tcell.ColorLightSlateGray),
TitleStyle: tcell.StyleDefault.Foreground(tcell.ColorGoldenrod),
BoxStyle: tcell.StyleDefault.Foreground(tcell.ColorTeal),
},
"sunset": {
TextStyle: tcell.StyleDefault.Foreground(tcell.ColorOrange),
TitleStyle: tcell.StyleDefault.Foreground(tcell.ColorTomato),
BoxStyle: tcell.StyleDefault.Foreground(tcell.ColorDarkRed),
},
"midnight": {
TextStyle: tcell.StyleDefault.Foreground(tcell.ColorLightSlateGray),
TitleStyle: tcell.StyleDefault.Foreground(tcell.ColorMediumPurple),
BoxStyle: tcell.StyleDefault.Foreground(tcell.ColorIndigo),
},
"dracula": {
TextStyle: tcell.StyleDefault.Foreground(tcell.ColorMediumOrchid),
TitleStyle: tcell.StyleDefault.Foreground(tcell.ColorDeepPink),
BoxStyle: tcell.StyleDefault.Foreground(tcell.ColorSlateBlue),
},
"clay": {
TextStyle: tcell.StyleDefault.Foreground(tcell.ColorSandyBrown),
TitleStyle: tcell.StyleDefault.Foreground(tcell.ColorPeru),
BoxStyle: tcell.StyleDefault.Foreground(tcell.ColorMaroon),
},
}

var validPanels = []panelImpl{
Expand Down Expand Up @@ -427,6 +453,7 @@ func getStyleValue(styleValue string) (StyleConfig, error) {
for k := range styleConfigsMap {
valid = append(valid, k)
}
sort.Strings(valid)
return StyleConfig{}, fmt.Errorf("invalid color style %s, valid values are %v", colorStyleParam, valid)
}

Expand Down
Loading