Skip to content

Commit

Permalink
Add missing refresh calls
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Nov 29, 2024
1 parent b665464 commit e8be3f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions widget/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,9 @@ func (c *checkRenderer) updateResource(th fyne.Theme) {
bgRes.ColorName = theme.ColorNameBackground
}
c.icon.Resource = res
c.icon.Refresh()
c.bg.Resource = bgRes
c.bg.Refresh()
}

// must be called while holding c.check.propertyLock for reading
Expand Down
2 changes: 2 additions & 0 deletions widget/radio_item.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,9 @@ func (r *radioItemRenderer) update() {
out.ColorName = theme.ColorNameDisabled
}
r.icon.Resource = in
r.icon.Refresh()
r.over.Resource = out
r.over.Refresh()

if r.item.Disabled() {
r.focusIndicator.FillColor = color.Transparent
Expand Down

0 comments on commit e8be3f6

Please sign in to comment.