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 committed 2020-01-14 02:01:22 +01:00
1 parent 392f5b033b
commit ac879be81a
5 files changed
+28 -4

No files matched your search

+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 {