remove redundant CenterPad layout

This commit is contained in:
Drew Weymouth
2024-05-24 17:07:44 -07:00
parent 819f42dac0
commit ceed42dcf2
4 changed files with 4 additions and 47 deletions
+1 -2
View File
@@ -5,7 +5,6 @@ import (
"net/url"
"github.com/dweymouth/supersonic/res"
"github.com/dweymouth/supersonic/ui/layouts"
"fyne.io/fyne/v2"
"fyne.io/fyne/v2/canvas"
@@ -75,7 +74,7 @@ func (a *AboutDialog) buildMainTabContainer(version string) *fyne.Container {
widget.NewHyperlink("Support the project", kofiUrl)),
)
return container.New(&layouts.CenterPadLayout{PadTopBottom: 10},
return container.New(&layout.CustomPaddedLayout{TopPadding: 10, BottomPadding: 10},
container.NewVBox(iconImage,
container.New(layout.NewCustomPaddedVBoxLayout(theme.Padding()-10), title, versionLbl, copyright, license, githubKofi)))
}