Use TrueColor color profile as default

Users can override the desired profile by calling WithColorProfile.
This commit is contained in:
Christian Muehlhaeuser committed 2020-02-10 14:28:08 +01:00
1 parent a2997cbe4a
commit 8d4e3f0692
12 files changed
+59 -46

No files matched your search

+1 -1
View File
@@ -28,6 +28,6 @@ func (w *StyleWriter) Write(b []byte) (int, error) {
// Close must be called when you're finished writing to a StyleWriter.
func (w *StyleWriter) Close() error {
renderText(w.w, w.ctx.colorProfile, w.rules, w.buf.String())
renderText(w.w, w.ctx.options.ColorProfile, w.rules, w.buf.String())
return nil
}