Fix #625: Allow customization of grid card size

This commit is contained in:
Drew Weymouth
2025-05-28 09:21:24 -07:00
parent af1ae4641e
commit 0fd8b4621b
7 changed files with 49 additions and 4 deletions
+5
View File
@@ -517,6 +517,10 @@ func (g *GridViewItem) Update(model *GridViewItemModel) {
}
}
func (g *GridViewItem) SetSize(sideDim float32) {
g.Cover.Im.SetMinSize(fyne.NewSquareSize(sideDim))
}
func (g *GridViewItem) Refresh() {
if g.focused {
g.focusRect.Show()
@@ -531,6 +535,7 @@ func (g *GridViewItem) Refresh() {
g.secondaryText.Suffix = ""
g.secondaryText.Refresh()
}
canvas.Refresh(g)
}
func (g *GridViewItem) ItemID() string {