feat(tracker/gioui): refactor & rework playbar with the play buttons

This commit is contained in:
5684185+vsariola@users.noreply.github.com
2025-04-27 11:34:00 +03:00
parent 42c95ab8ee
commit 40be82de46
6 changed files with 102 additions and 92 deletions

View File

@ -79,7 +79,7 @@ func (oe *OrderEditor) Layout(gtx C, t *Tracker) D {
}
rowTitleBg := func(gtx C, j int) D {
if t.SongPanel.PlayingBtn.Bool.Value() && j == t.PlayPosition().OrderRow {
if t.Model.Playing().Value() && j == t.PlayPosition().OrderRow {
paint.FillShape(gtx.Ops, patternPlayColor, clip.Rect{Max: image.Pt(gtx.Constraints.Max.X, gtx.Dp(patternCellHeight))}.Op())
}
return D{}