don't show separators between list rows

This commit is contained in:
Drew Weymouth
2024-05-27 17:20:45 -07:00
parent cb8dec3813
commit 1d96b7097c
4 changed files with 14 additions and 6 deletions
+1
View File
@@ -84,6 +84,7 @@ func NewSearchDialog(im util.ImageFetcher, title, dismissBtn string, onSearched
sr.Update(result)
},
)
sd.list.HideSeparators = true
return sd
}
+4 -3
View File
@@ -29,9 +29,10 @@ type FocusListRow interface {
func NewFocusList(len func() int, create func() fyne.CanvasObject, update func(widget.GridWrapItemID, fyne.CanvasObject)) *FocusList {
g := &FocusList{
List: widget.List{
Length: len,
CreateItem: create,
UpdateItem: update,
HideSeparators: true,
Length: len,
CreateItem: create,
UpdateItem: update,
},
itemForIndex: make(map[int]FocusListRow),
}