You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wonder if it makes any kind of sense for the default renderer to contain default settings that would be inherited by styles belonging from that renderer. The styles themselves could, of course, override those defaults.
r:=lipgloss.NewRenderer(os.Stdout)
r.TabWidth(2)
r.Background(lipgloss.Color("#0000FF"))
str1:=r.NewStyle().Render("Hello") // blue backgroundstr2:=r.NewStyle().Background("#FF0000").Render("Hi, again.") // red background
It feels a bit niche, but logging it here as a potential feature regardless.
The text was updated successfully, but these errors were encountered:
I wonder if it makes any kind of sense for the default renderer to contain default settings that would be inherited by styles belonging from that renderer. The styles themselves could, of course, override those defaults.
It feels a bit niche, but logging it here as a potential feature regardless.
The text was updated successfully, but these errors were encountered: