Use TrueColor color profile as default

Users can override the desired profile by calling WithColorProfile.
This commit is contained in:
Christian Muehlhaeuser
2020-02-10 14:28:08 +01:00
parent a2997cbe4a
commit 8d4e3f0692
12 changed files with 59 additions and 46 deletions
+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
}