Skip to content
This repository was archived by the owner on Sep 18, 2025. It is now read-only.

Commit e5ba0c3

Browse files
committed
fix(ui): small ui fixes
1 parent 2afa489 commit e5ba0c3

6 files changed

Lines changed: 20 additions & 11 deletions

File tree

internal/tui/components/chat/editor/editor.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

0 commit comments

Comments
 (0)