mirror of
https://github.com/vsariola/sointu.git
synced 2025-11-12 12:52:53 -05:00
refactor(tracker/gioui): Surface is given relative Height, not Gray
This commit is contained in:
parent
3495d91a4a
commit
fa9654d311
@ -146,7 +146,7 @@ func (ul *InstrumentEditor) layoutList(gtx C) D {
|
||||
}),
|
||||
)
|
||||
}
|
||||
return Surface{Gray: 30, Focus: t.PatchPanel.TreeFocused(gtx)}.Layout(gtx, surface)
|
||||
return Surface{Height: 4, Focus: t.PatchPanel.TreeFocused(gtx)}.Layout(gtx, surface)
|
||||
}
|
||||
|
||||
func (ul *InstrumentEditor) update(gtx C) {
|
||||
@ -279,7 +279,7 @@ func (pe *InstrumentEditor) layoutTable(gtx C) D {
|
||||
if pe.searching.Value() {
|
||||
editorFunc = pe.layoutUnitTypeChooser
|
||||
}
|
||||
return Surface{Gray: 24, Focus: t.PatchPanel.TreeFocused(gtx)}.Layout(gtx, func(gtx C) D {
|
||||
return Surface{Height: 3, Focus: t.PatchPanel.TreeFocused(gtx)}.Layout(gtx, func(gtx C) D {
|
||||
return layout.Flex{Axis: layout.Vertical}.Layout(gtx,
|
||||
layout.Flexed(1, editorFunc),
|
||||
layout.Rigid(pe.layoutFooter),
|
||||
|
||||
Reference in New Issue
Block a user