feat(tui): accent editor border on leader key

This commit is contained in:
adamdotdevin
2025-07-10 12:57:22 -05:00
parent d2c862e32d
commit 54fe3504ba
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).