Carlos Alexandro Becker
c783aea2e6
feat: update chroma ( #154 )
2023-03-08 14:38:17 +01:00
Ayman Bagabas
50e7d3bab8
fix(ansi): register chroma styles
...
termenv changed the order of profiles, now 1 no longer equals ANSI.
2022-10-15 05:21:37 +02:00
Ayman Bagabas
a99aac8527
fix: register chroma style once
...
don't register chroma style if it's already registered
this could cause a "concurrent map writes" fatal error when used in a
concurrent setting like a bubbletea wish app. use a package-wide mutex
to protect registering a new style.
2022-07-27 20:34:16 +02:00
Christian Muehlhaeuser
9474015b79
Don't use chroma for Ascii profiles
2020-02-28 07:17:43 +01:00
Christian Muehlhaeuser
8d4e3f0692
Use TrueColor color profile as default
...
Users can override the desired profile by calling WithColorProfile.
2020-02-10 14:28:08 +01:00
Christian Muehlhaeuser
96e48d9d5b
Reuse reflow's writer-pipes
2020-02-10 13:36:02 +01:00
Christian Muehlhaeuser
66b7555d75
Keep termenv profile in RenderContext
2020-01-31 14:47:00 +01:00
Christian Muehlhaeuser
9157a40ab2
Document BlockStack and make linter happ[y/ier].
2019-12-25 05:26:18 +01:00
Christian Muehlhaeuser
a1da1963cb
Document public types and methods
2019-12-25 05:19:33 +01:00
Christian Muehlhaeuser
5b742594cc
Automatically apply custom chroma theme when set in style
2019-12-16 08:37:31 +01:00
Christian Muehlhaeuser
850c3affd3
Use upstream indent & padding writers from reflow
2019-12-15 03:42:40 +01:00
Christian Muehlhaeuser
64af8be306
Support bold, italic & underline chroma styles
2019-12-15 00:22:27 +01:00
Christian Muehlhaeuser
ed99f8a844
Move chroma style settings to separate struct
2019-12-15 00:08:11 +01:00
Christian Muehlhaeuser
aeda17f93a
Generate chroma theme from our style settings
2019-12-14 20:52:20 +01:00
Christian Muehlhaeuser
4b65ed22c2
Move ANSIRenderer into a separate package
2019-12-14 00:11:29 +01:00