mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-19 05:24:48 -04:00
refactor(tracker): remove Contents from PopupStyle; pass it to Layout instead
This commit is contained in:
@ -58,7 +58,7 @@ func (t *Tracker) layoutSongButtons(gtx C) D {
|
||||
)
|
||||
}
|
||||
|
||||
fileMenu := Popup(&t.FileMenuVisible, menuContents)
|
||||
fileMenu := Popup(&t.FileMenuVisible)
|
||||
fileMenu.NE = unit.Dp(0)
|
||||
fileMenu.ShadowN = unit.Dp(0)
|
||||
fileMenu.NW = unit.Dp(0)
|
||||
@ -83,7 +83,7 @@ func (t *Tracker) layoutSongButtons(gtx C) D {
|
||||
op.Offset(f32.Pt(0, float32(dims.Size.Y))).Add(gtx.Ops)
|
||||
gtx.Constraints.Max.X = 160
|
||||
gtx.Constraints.Max.Y = 300
|
||||
fileMenu.Layout(gtx)
|
||||
fileMenu.Layout(gtx, menuContents)
|
||||
return dims
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user