on main help sign in
fix(ui): small ui fixes
e5ba0c3Kujtim Hoxha
internal/tui/components/chat/editor/editor.go+3−3
@@ -358,11 +358,11 @@ func CreateTextArea(existing *textarea.Model) textarea.Model {
358 t := styles.CurrentTheme()
358 t := styles.CurrentTheme()
359 ta := textarea.New()
359 ta := textarea.New()
360 ta.SetStyles(t.S().TextArea)
360 ta.SetStyles(t.S().TextArea)
361− ta.SetPromptFunc(2, func(lineIndex int) string {
361+ ta.SetPromptFunc(4, func(lineIndex int) string {
362 if lineIndex == 0 {
362 if lineIndex == 0 {
363− return "> "
363+ return " > "
364 }
364 }
365− return t.S().Muted.Render(": ")
365+ return t.S().Base.Foreground(t.Blue).Render("::: ")
366 })
366 })
367 ta.ShowLineNumbers = false
367 ta.ShowLineNumbers = false
368 ta.CharLimit = -1
368 ta.CharLimit = -1
internal/tui/components/core/helpers.go+1−1
@@ -26,7 +26,7 @@ func Title(title string, width int) string {
26 length := len(title) + 1
26 length := len(title) + 1
27 remainingWidth := width - length
27 remainingWidth := width - length
28 lineStyle := t.S().Base.Foreground(t.Primary)
28 lineStyle := t.S().Base.Foreground(t.Primary)
29− titleStyle := t.S().Base.Foreground(t.Secondary)
29+ titleStyle := t.S().Base.Foreground(t.Primary)
30 if remainingWidth > 0 {
30 if remainingWidth > 0 {
31 title = titleStyle.Render(title) + " " + lineStyle.Render(strings.Repeat(char, remainingWidth))
31 title = titleStyle.Render(title) + " " + lineStyle.Render(strings.Repeat(char, remainingWidth))
32 }
32 }
internal/tui/components/dialogs/sessions/sessions.go+1−1
@@ -124,7 +124,7 @@ func (s *sessionDialogCmp) View() tea.View {
124 t.S().Base.Padding(0, 1, 1, 1).Render(core.Title("Switch Session", s.width-4)),
124 t.S().Base.Padding(0, 1, 1, 1).Render(core.Title("Switch Session", s.width-4)),
125 listView.String(),
125 listView.String(),
126 "",
126 "",
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)),
128 )
128 )
129
129
130 v := tea.NewView(s.style().Render(content))
130 v := tea.NewView(s.style().Render(content))
internal/tui/styles/crush.go+1−1
@@ -15,7 +15,7 @@ func NewCrushTheme() *Theme {
15 Tertiary: lipgloss.Color(charmtone.Bok.Hex()),
15 Tertiary: lipgloss.Color(charmtone.Bok.Hex()),
16 Accent: lipgloss.Color(charmtone.Zest.Hex()),
16 Accent: lipgloss.Color(charmtone.Zest.Hex()),
17
17
18− PrimaryLight: lipgloss.Color(charmtone.Hazy.Hex()),
18+ Blue: lipgloss.Color(charmtone.Malibu.Hex()),
19
19
20 // Backgrounds
20 // Backgrounds
21 BgBase: lipgloss.Color(charmtone.Pepper.Hex()),
21 BgBase: lipgloss.Color(charmtone.Pepper.Hex()),
internal/tui/styles/theme.go+3−1
@@ -27,7 +27,9 @@ type Theme struct {
27 Tertiary color.Color
27 Tertiary color.Color
28 Accent color.Color
28 Accent color.Color
29
29
30+ // Colors
30− PrimaryLight color.Color
31+ Blue color.Color
32+ // TODO: add any others needed
31
33
32 BgBase color.Color
34 BgBase color.Color
33 BgSubtle color.Color
35 BgSubtle color.Color
todos.md+11−4
@@ -2,7 +2,14 @@
2
2
3## Landing page
3## Landing page
4
4
5−- [ ] Implement the logo landing page
5+- [x] Implement the logo landing page
6−- [ ] Add cwd improved
6+- [x] Add cwd improved
7−- [ ] Implement Active LSPs
7+- [x] Implement Active LSPs
8−- [ ] Implement Active MCPs
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