~whereswaldon/rosebud

8f37bc5015890b5101d884a55c7aaa25f74c964d — Chris Waldon 1 year, 2 months ago 340171e
cmd/rosebud: use new form as transaction editor

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
1 files changed, 3 insertions(+), 3 deletions(-)

M cmd/rosebud/main.go
M cmd/rosebud/main.go => cmd/rosebud/main.go +3 -3
@@ 99,7 99,7 @@ type UI struct {
	BalanceList widget.List
	AccountRegistry
	Tree     *AccountTreeNode
	TxEditor appwidget.TxEditor
	TxEditor appwidget.TxForm
}

type AccountState struct {


@@ 324,10 324,10 @@ func (u *UI) layoutTransactions(gtx C) D {
				switch e := e.(type) {
				case appwidget.SuggestionRequestEvent[string]:
					suggestions := fuzzy.FindFold(e.Text, maps.Keys(u.AccountRegistry.elements))
					u.TxEditor.SetSuggestions(suggestions)
					u.TxEditor.SetAccountSuggestions(suggestions)
				}
			}
			return apptheme.TxEditor(u.Theme, &u.TxEditor, "Account name").Layout(gtx)
			return apptheme.TxForm(u.Theme, &u.TxEditor).Layout(gtx)
		}),
		layout.Flexed(1, func(gtx C) D {
			return list.Layout(gtx, len(u.Txs), func(gtx C, index int) D {