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 (
|
var (
|
||||||
color = termenv.ColorProfile().Color
|
color = termenv.EnvColorProfile().Color
|
||||||
keyword = termenv.Style{}.Foreground(color("204")).Background(color("235")).Styled
|
keyword = termenv.Style{}.Foreground(color("204")).Background(color("235")).Styled
|
||||||
help = termenv.Style{}.Foreground(color("241")).Styled
|
help = termenv.Style{}.Foreground(color("241")).Styled
|
||||||
)
|
)
|
||||||
|
|
|
@ -28,7 +28,7 @@ const (
|
||||||
|
|
||||||
// General stuff for styling the view
|
// General stuff for styling the view
|
||||||
var (
|
var (
|
||||||
term = termenv.ColorProfile()
|
term = termenv.EnvColorProfile()
|
||||||
keyword = makeFgStyle("211")
|
keyword = makeFgStyle("211")
|
||||||
subtle = makeFgStyle("241")
|
subtle = makeFgStyle("241")
|
||||||
progressEmpty = subtle(progressEmptyChar)
|
progressEmpty = subtle(progressEmptyChar)
|
||||||
|
|
Loading…
Reference in New Issue