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()))
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)
}
}()

View File

@ -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)

View File

@ -4,19 +4,27 @@ 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
@ -24,3 +32,6 @@ k9s:
bgColor: default
indicator:
bgColor: default
yaml:
colonColor: default
valueColor: default