From ec1b652dbaa0d89e51ba58ec356f138c3534d82c Mon Sep 17 00:00:00 2001 From: Kujtim Hoxha Date: Mon, 16 Jun 2025 17:58:12 +0200 Subject: [PATCH] chore: small ux tweeks --- internal/tui/components/chat/sidebar/sidebar.go | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/internal/tui/components/chat/sidebar/sidebar.go b/internal/tui/components/chat/sidebar/sidebar.go index b0726239a545f8dc890a0bcc1932110150242519..6b111a887d747ccd6634256d5b06e6f89d36d811 100644 --- a/internal/tui/components/chat/sidebar/sidebar.go +++ b/internal/tui/components/chat/sidebar/sidebar.go @@ -203,8 +203,8 @@ func (m *sidebarCmp) filesBlock() string { maxWidth := min(m.width, 58) t := styles.CurrentTheme() - section := t.S().Muted.Render( - core.Section("Files", maxWidth), + section := t.S().Subtle.Render( + core.Section("Modified Files", maxWidth), ) if len(m.files) == 0 { @@ -256,7 +256,7 @@ func (m *sidebarCmp) lspBlock() string { maxWidth := min(m.width, 58) t := styles.CurrentTheme() - section := t.S().Muted.Render( + section := t.S().Subtle.Render( core.Section("LSPs", maxWidth), ) @@ -330,7 +330,7 @@ func (m *sidebarCmp) mcpBlock() string { maxWidth := min(m.width, 58) t := styles.CurrentTheme() - section := t.S().Muted.Render( + section := t.S().Subtle.Render( core.Section("MCPs", maxWidth), ) @@ -393,8 +393,8 @@ func formatTokensAndCost(tokens, contextWindow int64, cost float64) string { formattedCost := baseStyle.Foreground(t.FgMuted).Render(fmt.Sprintf("$%.2f", cost)) - formattedTokens = baseStyle.Foreground(t.FgMuted).Render(fmt.Sprintf("(%s)", formattedTokens)) - formattedPercentage := baseStyle.Foreground(t.FgSubtle).Render(fmt.Sprintf("%d%%", int(percentage))) + formattedTokens = baseStyle.Foreground(t.FgSubtle).Render(fmt.Sprintf("(%s)", formattedTokens)) + formattedPercentage := baseStyle.Foreground(t.FgMuted).Render(fmt.Sprintf("%d%%", int(percentage))) formattedTokens = fmt.Sprintf("%s %s", formattedPercentage, formattedTokens) if percentage > 80 { // add the warning icon @@ -416,8 +416,6 @@ func (s *sidebarCmp) currentModelBlock() string { modelName := t.S().Text.Render(model.Name) modelInfo := fmt.Sprintf("%s %s", modelIcon, modelName) parts := []string{ - // section, - // "", modelInfo, } if s.session.ID != "" {