Use termenv's EnvColorProfile, which respects NO_COLOR and CLICOLOR_FORCE env vars

This commit is contained in:
Christian Muehlhaeuser 2022-02-06 04:19:46 +01:00
parent 9a06319ff1
commit 7c939e8dfb
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ import (
)
var (
color = termenv.ColorProfile().Color
color = termenv.EnvColorProfile().Color
keyword = termenv.Style{}.Foreground(color("204")).Background(color("235")).Styled
help = termenv.Style{}.Foreground(color("241")).Styled
)

View File

@ -28,7 +28,7 @@ const (
// General stuff for styling the view
var (
term = termenv.ColorProfile()
term = termenv.EnvColorProfile()
keyword = makeFgStyle("211")
subtle = makeFgStyle("241")
progressEmpty = subtle(progressEmptyChar)