add center alignment option to list columns

This commit is contained in:
Drew Weymouth
2023-05-23 14:24:02 -07:00
parent bd7388fbf2
commit 8bf9f20b8e
4 changed files with 28 additions and 38 deletions
+4 -4
View File
@@ -286,10 +286,10 @@ func NewPlaylistList() *PlaylistList {
func (p *PlaylistList) buildHeader() {
p.header = widgets.NewListHeader([]widgets.ListColumn{
{"Name", false, false},
{"Description", false, false},
{"Owner", false, false},
{"Track Count", true, false}}, p.columnsLayout)
{"Name", fyne.TextAlignLeading, false},
{"Description", fyne.TextAlignLeading, false},
{"Owner", fyne.TextAlignLeading, false},
{"Track Count", fyne.TextAlignTrailing, false}}, p.columnsLayout)
p.header.DisableSorting = true
}