feat(tui): even better model selector

This commit is contained in:
adamdotdevin
2025-07-14 11:44:19 -05:00
parent 80b77caec0
commit f1e7e7c138
8 changed files with 675 additions and 67 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.BackgroundPanel())
base := styles.NewStyle().Background(t.BackgroundElement())
green := base.Foreground(t.Success()).Render
red := base.Foreground(t.Error()).Render
@@ -55,7 +55,7 @@ func (cg *filesContextGroup) getGitFiles() []dialog.CompletionItemI {
ProviderID: cg.GetId(),
Raw: file,
},
dialog.WithBackgroundColor(t.BackgroundPanel()),
dialog.WithBackgroundColor(t.BackgroundElement()),
)
items = append(items, item)
}
@@ -103,7 +103,7 @@ func (cg *filesContextGroup) GetChildEntries(
ProviderID: cg.GetId(),
Raw: file,
},
dialog.WithBackgroundColor(theme.CurrentTheme().BackgroundPanel()),
dialog.WithBackgroundColor(theme.CurrentTheme().BackgroundElement()),
)
items = append(items, item)
}