tracker: improve the layout of unit editing buttons

This commit is contained in:
vsariola
2021-02-17 17:42:21 +02:00
parent 692615c76d
commit 2f0c9a9f04
2 changed files with 34 additions and 28 deletions

View File

@ -181,6 +181,8 @@ func (t *Tracker) layoutInstrumentEditor(gtx C) D {
t.AddUnit()
}
addUnitBtnStyle := material.IconButton(t.Theme, t.AddUnitBtn, widgetForIcon(icons.ContentAdd))
addUnitBtnStyle.Color = t.Theme.ContrastFg
addUnitBtnStyle.Background = t.Theme.Fg
addUnitBtnStyle.Inset = layout.UniformInset(unit.Dp(4))
for len(t.StackUse) < len(t.song.Patch.Instruments[t.CurrentInstrument].Units) {