mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-02 02:59:09 -07:00
Use termenv's EnvColorProfile, which respects NO_COLOR and CLICOLOR_FORCE env vars
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user