Fix. Correct in the "FFplay Player Keys" window so that the last line does not change the text style.

This commit is contained in:
2025-08-21 21:07:30 +05:00
parent 04eb6b87f4
commit aaf43c15aa

View File

@@ -80,14 +80,21 @@ func HelpFFplay() fyne.CanvasObject {
return widget.NewLabel("")
},
func(i widget.TableCellID, o fyne.CanvasObject) {
label := o.(*widget.Label)
label.TextStyle.Bold = false
label.SizeName = theme.SizeNameText
if i.Row == 0 {
o.(*widget.Label).TextStyle.Bold = true
o.(*widget.Label).SizeName = theme.SizeNameSubHeadingText
label.TextStyle.Bold = true
label.SizeName = theme.SizeNameSubHeadingText
}
if i.Col == 0 {
o.(*widget.Label).TextStyle.Bold = true
label.TextStyle.Bold = true
}
o.(*widget.Label).SetText(data[i.Row][i.Col])
label.SetText(data[i.Row][i.Col])
})
list.SetRowHeight(0, 40)
list.SetColumnWidth(0, 200)