fix list rows focus and selection background not updating with theme

This commit is contained in:
Drew Weymouth
2023-11-02 16:40:31 -07:00
parent 8c873881d3
commit 9c11b386ad
+2
View File
@@ -75,7 +75,9 @@ func (l *ListRowBase) TypedRune(r rune) {
}
func (l *ListRowBase) Refresh() {
l.focusedRect.FillColor = theme.HoverColor()
l.focusedRect.Hidden = !l.Focused
l.selectionRect.FillColor = theme.SelectionColor()
l.selectionRect.Hidden = !l.Selected
l.BaseWidget.Refresh()
}