Skip to content

Commit

Permalink
got basic vector layout working
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoreilly committed Feb 25, 2024
1 parent 06edf39 commit b10aa96
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions vector/vectorview.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,8 @@ func (vv *VectorView) SetModalText() {
tbs.UpdateEndLayout(updt)
}

func (vv *VectorView) HBox() *gi.Layout {
return vv.ChildByName("hbox", 2).(*gi.Layout)
func (vv *VectorView) HBox() *gi.Frame {
return vv.ChildByName("hbox", 2).(*gi.Frame)
}

func (vv *VectorView) Tools() *gi.Toolbar {
Expand Down Expand Up @@ -355,8 +355,10 @@ func (vv *VectorView) Config() {
gi.NewLayout(vv, "modal-tb").Style(func(s *styles.Style) {
s.Display = styles.Stacked
})
hb := gi.NewLayout(vv, "hbox")
gi.NewFrame(vv, "statusbar")
hb := gi.NewFrame(vv, "hbox")
gi.NewFrame(vv, "statusbar").Style(func(s *styles.Style) {
s.Grow.Set(1, 0)
})

gi.NewToolbar(hb, "tools").Style(func(s *styles.Style) {
s.Direction = styles.Column
Expand Down

0 comments on commit b10aa96

Please sign in to comment.