wip: refactoring tui

This commit is contained in:
adamdottv
2025-06-13 06:49:59 -05:00
parent 97837d2d23
commit 1b8cfe9e99
8 changed files with 40 additions and 43 deletions

View File

@@ -271,6 +271,10 @@ func (a appModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
cmds = append(cmds, cmd)
}
s, cmd := a.status.Update(msg)
cmds = append(cmds, cmd)
a.status = s.(core.StatusComponent)
t := theme.CurrentTheme()
cmds = append(cmds, tea.SetBackgroundColor(t.Background()))
return a, tea.Batch(cmds...)