mirror of
https://github.com/sst/opencode.git
synced 2025-08-31 10:17:26 +00:00
fix(tui): build and bg color
This commit is contained in:
parent
229a280652
commit
a53d2ea356
2 changed files with 4 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue