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
mine
wkyoshida 2022-12-03 16:44:46 -03:00 committed by GitHub
parent ff4bfe1162
commit 8f382eb33e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 3 deletions

View File

@ -69,7 +69,7 @@ func run(cmd *cobra.Command, args []string) {
log.Error().Msg(string(debug.Stack())) log.Error().Msg(string(debug.Stack()))
printLogo(color.Red) printLogo(color.Red)
fmt.Printf("%s", color.Colorize("Boom!! ", 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)
} }
}() }()

View File

@ -41,7 +41,7 @@ func printVersion(short bool) {
func printTuple(fmat, section, value string, outputColor color.Paint) { func printTuple(fmat, section, value string, outputColor color.Paint) {
if outputColor != -1 { 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 return
} }
fmt.Fprintf(out, fmat, section, value) fmt.Fprintf(out, fmat, section, value)

View File

@ -4,23 +4,34 @@ k9s:
bgColor: default bgColor: default
promt: promt:
bgColor: default bgColor: default
info:
sectionColor: default
dialog: dialog:
bgColor: default bgColor: default
labelFgColor: default
fieldFgColor: default
frame: frame:
crumbs: crumbs:
bgColor: default bgColor: default
title: title:
bgColor: default bgColor: default
counterColor: default
menu:
fgColor: default
views: views:
charts: charts:
bgColor: default bgColor: default
table: table:
bgColor: default bgColor: default
header: header:
fgColor: default
bgColor: default bgColor: default
xray: xray:
bgColor: default bgColor: default
logs: logs:
bgColor: default bgColor: default
indicator: indicator:
bgColor: default bgColor: default
yaml:
colonColor: default
valueColor: default