0.1.1 Refactoring almost done. /JL

This commit is contained in:
2022-12-17 15:53:29 +01:00
parent 9b5856ddf1
commit 1e4e718e0c
5 changed files with 223 additions and 146 deletions
+9 -2
View File
@@ -76,11 +76,18 @@ type (
)
func CreatePalletteGroup(mw *MyMainWindow) *walk.GroupBox {
mw.leftPanel, _ = walk.NewComposite(mw.content)
vb := walk.NewVBoxLayout()
mw.leftPanel.SetLayout(vb)
vb.SetMargins(walk.Margins{0, 0, 0, 0})
mw.leftPanel.SetMinMaxSize(walk.Size{Width: 280, Height: 0}, walk.Size{Width: 280, Height: 0})
pallette_group, _ := walk.NewGroupBox(mw.leftPanel)
pallette_group.SetTitle("Pallette")
pallette_group.SetLayout(walk.NewVBoxLayout())
vb = walk.NewVBoxLayout()
pallette_group.SetLayout(vb)
comp, _ := walk.NewComposite(pallette_group)
comp.SetLayout(walk.NewHBoxLayout())
hb := walk.NewHBoxLayout()
comp.SetLayout(hb)
comp.Layout().SetMargins(walk.Margins{0, 0, 0, 0})
lbl, _ := walk.NewLabel(comp)
lbl.SetText("Brand:")