feat(tracker): make instrument names use draglist

This commit is contained in:
vsariola
2021-02-06 18:35:42 +02:00
parent 73cbc4314f
commit b34161b173
6 changed files with 132 additions and 147 deletions

View File

@ -61,7 +61,6 @@ func (s *FilledDragListStyle) Layout(gtx C) D {
s.dragList.tags = append(s.dragList.tags, false)
}
bg := func(gtx C) D {
gtx.Constraints = layout.Exact(image.Pt(120, 20))
var color color.NRGBA
if s.dragList.SelectedItem == index {
color = s.SelectedColor