feat(tui): accent editor border on leader key

This commit is contained in:
adamdotdevin 2025-07-10 12:57:22 -05:00
commit 54fe3504ba
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
3 changed files with 46 additions and 42 deletions

View file

@ -242,13 +242,17 @@ func (m *editorComponent) Content(width int) string {
prompt,
m.textarea.View(),
)
borderForeground := t.Border()
if m.app.IsLeaderSequence {
borderForeground = t.Accent()
}
textarea = styles.NewStyle().
Background(t.BackgroundElement()).
Width(width).
PaddingTop(1).
PaddingBottom(1).
BorderStyle(lipgloss.ThickBorder()).
BorderForeground(t.Border()).
BorderForeground(borderForeground).
BorderBackground(t.Background()).
BorderLeft(true).
BorderRight(true).