From 9c11b386ad6fce1d75f77069c76ebd01fc7806eb Mon Sep 17 00:00:00 2001 From: Drew Weymouth Date: Thu, 2 Nov 2023 16:40:31 -0700 Subject: [PATCH] fix list rows focus and selection background not updating with theme --- ui/widgets/listrowbase.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/widgets/listrowbase.go b/ui/widgets/listrowbase.go index d220dba..bfeba84 100644 --- a/ui/widgets/listrowbase.go +++ b/ui/widgets/listrowbase.go @@ -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() }