on main help sign in
fix(ui): small ui fixes
commite5ba0c32bcc83d8a74e1ac57f2ee35003e621510 authorKujtim Hoxha <kujtimii.h@gmail.com> dateMon 2 Jun 2025, 10:31 (1 year ago) parent2afa489
6 files changed+20−11
internal/tui/components/chat/editor/editor.go+3−3 internal/tui/components/core/helpers.go+1−1 internal/tui/components/dialogs/sessions/sessions.go+1−1 internal/tui/styles/crush.go+1−1 internal/tui/styles/theme.go+3−1 todos.md+11−4
internal/tui/components/chat/editor/editor.go+3−3
@@ -358,11 +358,11 @@ func CreateTextArea(existing *textarea.Model) textarea.Model {
358358 t := styles.CurrentTheme()
359359 ta := textarea.New()
360360 ta.SetStyles(t.S().TextArea)
361− ta.SetPromptFunc(2, func(lineIndex int) string {
361+ ta.SetPromptFunc(4, func(lineIndex int) string {
362362 if lineIndex == 0 {
363− return "> "
363+ return " > "
364364 }
365− return t.S().Muted.Render(": ")
365+ return t.S().Base.Foreground(t.Blue).Render("::: ")
366366 })
367367 ta.ShowLineNumbers = false
368368 ta.CharLimit = -1
internal/tui/components/core/helpers.go+1−1
@@ -26,7 +26,7 @@ func Title(title string, width int) string {
2626 length := len(title) + 1
2727 remainingWidth := width - length
2828 lineStyle := t.S().Base.Foreground(t.Primary)
29− titleStyle := t.S().Base.Foreground(t.Secondary)
29+ titleStyle := t.S().Base.Foreground(t.Primary)
3030 if remainingWidth > 0 {
3131 title = titleStyle.Render(title) + " " + lineStyle.Render(strings.Repeat(char, remainingWidth))
3232 }
internal/tui/components/dialogs/sessions/sessions.go+1−1
@@ -124,7 +124,7 @@ func (s *sessionDialogCmp) View() tea.View {
124124 t.S().Base.Padding(0, 1, 1, 1).Render(core.Title("Switch Session", s.width-4)),
125125 listView.String(),
126126 "",
127− t.S().Base.Width(s.width-2).PaddingRight(2).AlignHorizontal(lipgloss.Right).Render(s.help.View(s.keyMap)),
127+ t.S().Base.Width(s.width-2).PaddingLeft(1).AlignHorizontal(lipgloss.Left).Render(s.help.View(s.keyMap)),
128128 )
129129
130130 v := tea.NewView(s.style().Render(content))
internal/tui/styles/crush.go+1−1
@@ -15,7 +15,7 @@ func NewCrushTheme() *Theme {
1515 Tertiary: lipgloss.Color(charmtone.Bok.Hex()),
1616 Accent: lipgloss.Color(charmtone.Zest.Hex()),
1717
18− PrimaryLight: lipgloss.Color(charmtone.Hazy.Hex()),
18+ Blue: lipgloss.Color(charmtone.Malibu.Hex()),
1919
2020 // Backgrounds
2121 BgBase: lipgloss.Color(charmtone.Pepper.Hex()),
internal/tui/styles/theme.go+3−1
@@ -27,7 +27,9 @@ type Theme struct {
2727 Tertiary color.Color
2828 Accent color.Color
2929
30− PrimaryLight color.Color
30+ // Colors
31+ Blue color.Color
32+ // TODO: add any others needed
3133
3234 BgBase color.Color
3335 BgSubtle color.Color
todos.md+11−4
@@ -2,7 +2,14 @@
22
33## Landing page
44
5−- [ ] Implement the logo landing page
6−- [ ] Add cwd improved
7−- [ ] Implement Active LSPs
8−- [ ] Implement Active MCPs
5+- [x] Implement the logo landing page
6+- [x] Add cwd improved
7+- [x] Implement Active LSPs
8+- [x] Implement Active MCPs
9+
10+## Dialogs
11+
12+- [ ] Move sessions and modal dialog to the commands
13+- [x] Sessions dialog
14+- [ ] Commands
15+- [ ] Models