Fix bugs in e2e tests and remove list item selection highlight

This commit is contained in:
gmp
2026-06-02 13:30:09 -04:00
parent 367e6e9052
commit 57a185fa36
8 changed files with 107 additions and 57 deletions
+3 -1
View File
@@ -290,13 +290,15 @@ func (lv ListView) Draw(gtx layout.Context, r *Renderer) {
if y+rowHeight < lv.region.Y || y > lv.region.Y+lv.region.H {
continue
}
// Draw background for selected item
// Draw background for selected item (removed as per request)
/*
if item.Selected || (lv.Selected == i) {
r.drawBg(gtx, Region{
X: lv.region.X, Y: y,
W: lv.region.W, H: rowHeight,
}, Color{R: 200, G: 220, B: 255, A: 255})
}
*/
// Register click area for this row
rowID := fmt.Sprintf("list_row_%d", rowGlobalIndex)
r.RegisterClick(gtx, rowID, Region{