From 8f382eb33eae045c37d5d90426d4de2c023db11d Mon Sep 17 00:00:00 2001 From: wkyoshida <15043193+wkyoshida@users.noreply.github.com> Date: Sat, 3 Dec 2022 16:44:46 -0300 Subject: [PATCH] Use default terminal colors for better readability (#1290) (#1837) * fix(skins): use additional default colors for 'transparent' skin * fix(cmd): use default terminal color for cmd output --- cmd/root.go | 2 +- cmd/version.go | 2 +- skins/transparent.yml | 13 ++++++++++++- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index a3c37449..1437c132 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -69,7 +69,7 @@ func run(cmd *cobra.Command, args []string) { log.Error().Msg(string(debug.Stack())) printLogo(color.Red) fmt.Printf("%s", color.Colorize("Boom!! ", color.Red)) - fmt.Println(color.Colorize(fmt.Sprintf("%v.", err), color.LightGray)) + fmt.Printf("%v.\n", err) } }() diff --git a/cmd/version.go b/cmd/version.go index e96fc961..13617a48 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -41,7 +41,7 @@ func printVersion(short bool) { func printTuple(fmat, section, value string, outputColor color.Paint) { if outputColor != -1 { - fmt.Fprintf(out, fmat, color.Colorize(section+":", outputColor), color.Colorize(value, color.LightGray)) + fmt.Fprintf(out, fmat, color.Colorize(section+":", outputColor), value) return } fmt.Fprintf(out, fmat, section, value) diff --git a/skins/transparent.yml b/skins/transparent.yml index 2e0b6896..917dbc24 100644 --- a/skins/transparent.yml +++ b/skins/transparent.yml @@ -4,23 +4,34 @@ k9s: bgColor: default promt: bgColor: default + info: + sectionColor: default dialog: bgColor: default + labelFgColor: default + fieldFgColor: default frame: crumbs: bgColor: default title: bgColor: default + counterColor: default + menu: + fgColor: default views: charts: bgColor: default table: bgColor: default header: + fgColor: default bgColor: default xray: bgColor: default logs: bgColor: default indicator: - bgColor: default \ No newline at end of file + bgColor: default + yaml: + colonColor: default + valueColor: default