Skip to content

Commit

Permalink
minor vector cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoreilly committed Feb 25, 2024
1 parent 0da646f commit 06edf39
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions vector/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"cogentcore.org/core/events"
"cogentcore.org/core/gi"
"cogentcore.org/core/icons"
"cogentcore.org/core/styles"
"cogentcore.org/core/svg"
)

Expand Down Expand Up @@ -84,9 +83,6 @@ func (gv *VectorView) ConfigTools() {
return
}

tb.Style(func(s *styles.Style) {
s.Direction = styles.Column
})
gi.NewButton(tb).SetIcon(icons.ArrowSelectorTool).SetShortcut("S").
SetTooltip("Select, move, and resize objects").
OnClick(func(e events.Event) {
Expand Down
4 changes: 0 additions & 4 deletions vector/vectorview.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,10 +264,6 @@ func (vv *VectorView) AddImage(fname gi.Filename, width, height float32) error {
//////////////////////////////////////////////////////////////////////////
// GUI Config

func (vv *VectorView) MainToolbar() *gi.Toolbar {
return vv.ChildByName("main-tb", 0).(*gi.Toolbar)
}

func (vv *VectorView) ModalToolbarStack() *gi.Layout {
return vv.ChildByName("modal-tb", 1).(*gi.Layout)
}
Expand Down

0 comments on commit 06edf39

Please sign in to comment.