Replies: 1 comment
-
Hi! Lip Gloss doesn't expose a way to read the terminal's background color, however you can make the border and background transparent like so: s := style.
UnsetBackground() // remove the background, making it transparent
BorderStyle(lipgloss.HiddenBorder) // transparent borders To make the foreground transparent, you could technically replace the characters in the string with spaces… str := strings.Repeat(" ", lipgloss.Width("Hello! 你好!"))
output := style.Render(str) …however perhaps a helper function would make sense here. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I've tried hiding borders (or other objects for that matter) on certain events, but I can't find the terminal's background color.
NoColor
doesn't help here as it goes directly to the foreground default which in my case is white.I don't want to not render the objects as the layout breaks if I do and it makes sense to me to keep them hidden.
Is there a way to access the terminal's background color from lipgloss?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions