Added 'auto' style config

AutoStyleConfig points to either DarkStyleConfig or LightStyleConfig
depending on the current terminal's background color.
This commit is contained in:
Christian Muehlhaeuser
2020-01-14 02:01:22 +01:00
parent 392f5b033b
commit ac879be81a
5 changed files with 28 additions and 4 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ func renderText(w io.Writer, rules StylePrimitive, s string) {
return
}
p := termenv.SupportedColorProfile()
p := termenv.ColorProfile()
out := termenv.String(s)
if rules.Color != nil {