This PR changes our handling of icons from a String to a struct with Format and Text. This lets the WithIcon option be used to change the color and formatting of the icon. I considered an API like what was suggested in #193 however since it would force the user to always set the color even if they just wanted to change the icon, I decided it was too cumbersome to use.
This PR changes our handling of icons from a
String
to astruct
withFormat
andText
. This lets theWithIcon
option be used to change the color and formatting of the icon. I considered an API like what was suggested in #193 however since it would force the user to always set the color even if they just wanted to change the icon, I decided it was too cumbersome to use.example:
Fixes #141