feat(tui): accent editor border on leader key
This commit is contained in:
parent
d2c862e32d
commit
54fe3504ba
3 changed files with 46 additions and 42 deletions
|
|
@ -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).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue