forked from Mirrors/bubbletea
Use termenv's EnvColorProfile, which respects NO_COLOR and CLICOLOR_FORCE env vars
This commit is contained in:
parent
9a06319ff1
commit
7c939e8dfb
|
@ -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
|
||||
)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue