Fix. Correct in the "FFplay Player Keys" window so that the last line does not change the text style.
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user