wip: refactoring tui

This commit is contained in:
adamdottv
2025-06-12 07:23:49 -05:00
parent 78f65e4789
commit 98bd5109c2
2 changed files with 13 additions and 3 deletions

View File

@@ -193,12 +193,15 @@ func (a appModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
var cmds []tea.Cmd
var cmd tea.Cmd
switch msg := msg.(type) {
case tea.BackgroundColorMsg:
styles.Terminal = &styles.TerminalInfo{
BackgroundIsDark: msg.IsDark(),
}
case cursor.BlinkMsg:
return a.updateAllPages(msg)
case spinner.TickMsg:
return a.updateAllPages(msg)