Trouble on list helper background #975
Unanswered
MathiasP39
asked this question in
Q&A
Replies: 1 comment
-
|
the list itself doesn't paint a background, the delegate does. so setting it on the list container doesn't reach the item rows. set it on the delegate styles instead: d := list.NewDefaultDelegate()
d.Styles.NormalTitle = d.Styles.NormalTitle.Background(lipgloss.Color("#000000"))
d.Styles.NormalDesc = d.Styles.NormalDesc.Background(lipgloss.Color("#000000"))
d.Styles.SelectedTitle = d.Styles.SelectedTitle.Background(lipgloss.Color("#000000"))
d.Styles.SelectedDesc = d.Styles.SelectedDesc.Background(lipgloss.Color("#000000"))
l := list.New(items, d, width, height)those squares are the rows where NormalTitle/NormalDesc have no background set, so the terminal default bleeds through. SelectedTitle/SelectedDesc cover the highlighted one. if there's still gaps around the header and the bottom pagination, those are |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello there, I'm a newcomer to this library and i am trying to use the list bubble.
I am trying to set a full black background but I can't solve a problem.
The issue is that I can't find how to have the black applied on those little squares. Have I missed some element ?
Thanks 🙏
Beta Was this translation helpful? Give feedback.
All reactions