fix(tui): build and bg color

This commit is contained in:
adamdotdevin 2025-07-14 09:14:02 -05:00
parent 229a280652
commit a53d2ea356
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
2 changed files with 4 additions and 6 deletions

View file

@ -30,7 +30,7 @@ func (cg *filesContextGroup) GetEmptyMessage() string {
func (cg *filesContextGroup) getGitFiles() []dialog.CompletionItemI {
t := theme.CurrentTheme()
items := make([]dialog.CompletionItemI, 0)
base := styles.NewStyle().Background(t.BackgroundElement())
base := styles.NewStyle().Background(t.BackgroundPanel())
green := base.Foreground(t.Success()).Render
red := base.Foreground(t.Error()).Render

View file

@ -111,13 +111,11 @@ func (s *sessionDialog) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
)
}
case "n":
s.app.Session = &opencode.Session{}
s.app.Messages = []app.Message{}
return s, tea.Sequence(
util.CmdHandler(modal.CloseModalMsg{}),
func() tea.Msg {
s.app.Session = &opencode.Session{}
s.app.Messages = []opencode.MessageUnion{}
return app.SessionClearedMsg{}
},
util.CmdHandler(app.SessionClearedMsg{}),
)
case "x", "delete", "backspace":
if _, idx := s.list.GetSelectedItem(); idx >= 0 && idx < len(s.sessions) {