Detailed changes
@@ -358,11 +358,11 @@ func CreateTextArea(existing *textarea.Model) textarea.Model {
t := styles.CurrentTheme()
ta := textarea.New()
ta.SetStyles(t.S().TextArea)
- ta.SetPromptFunc(2, func(lineIndex int) string {
+ ta.SetPromptFunc(4, func(lineIndex int) string {
if lineIndex == 0 {
- return "> "
+ return " > "
}
- return t.S().Muted.Render(": ")
+ return t.S().Base.Foreground(t.Blue).Render("::: ")
})
ta.ShowLineNumbers = false
ta.CharLimit = -1
@@ -26,7 +26,7 @@ func Title(title string, width int) string {
length := len(title) + 1
remainingWidth := width - length
lineStyle := t.S().Base.Foreground(t.Primary)
- titleStyle := t.S().Base.Foreground(t.Secondary)
+ titleStyle := t.S().Base.Foreground(t.Primary)
if remainingWidth > 0 {
title = titleStyle.Render(title) + " " + lineStyle.Render(strings.Repeat(char, remainingWidth))
}
@@ -124,7 +124,7 @@ func (s *sessionDialogCmp) View() tea.View {
t.S().Base.Padding(0, 1, 1, 1).Render(core.Title("Switch Session", s.width-4)),
listView.String(),
"",
- t.S().Base.Width(s.width-2).PaddingRight(2).AlignHorizontal(lipgloss.Right).Render(s.help.View(s.keyMap)),
+ t.S().Base.Width(s.width-2).PaddingLeft(1).AlignHorizontal(lipgloss.Left).Render(s.help.View(s.keyMap)),
)
v := tea.NewView(s.style().Render(content))
@@ -15,7 +15,7 @@ func NewCrushTheme() *Theme {
Tertiary: lipgloss.Color(charmtone.Bok.Hex()),
Accent: lipgloss.Color(charmtone.Zest.Hex()),
- PrimaryLight: lipgloss.Color(charmtone.Hazy.Hex()),
+ Blue: lipgloss.Color(charmtone.Malibu.Hex()),
// Backgrounds
BgBase: lipgloss.Color(charmtone.Pepper.Hex()),
@@ -27,7 +27,9 @@ type Theme struct {
Tertiary color.Color
Accent color.Color
- PrimaryLight color.Color
+ // Colors
+ Blue color.Color
+ // TODO: add any others needed
BgBase color.Color
BgSubtle color.Color
@@ -2,7 +2,14 @@
## Landing page
-- [ ] Implement the logo landing page
-- [ ] Add cwd improved
-- [ ] Implement Active LSPs
-- [ ] Implement Active MCPs
+- [x] Implement the logo landing page
+- [x] Add cwd improved
+- [x] Implement Active LSPs
+- [x] Implement Active MCPs
+
+## Dialogs
+
+- [ ] Move sessions and modal dialog to the commands
+- [x] Sessions dialog
+- [ ] Commands
+- [ ] Models