Skip to content
Myr

Add border to split-editors example (#362)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* doc(textarea): add border to focused textarea in split-editors example * doc(textrea): tone down with border color in split-editors example

authored by Maas Lalani · committed by GitHub · parent a0680f8 · Browse files · 1 file+12 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Co-authored-by: Christian Rocha <christian@rocha.is>

Diff stats

1 file+12 added−1 removed

  • other:+12 added−1 removed

1 file+12 added−1 removed

modified:examples/split-editors/main.go+12 added-1 removed
16 unmodified lines
17 minInputs = 118)1920var (21 cursorStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("212"))2223 cursorLineStyle = lipgloss.NewStyle().24 Background(lipgloss.Color("57")).25 Foreground(lipgloss.Color("230"))26
1 unmodified line
28 Foreground(lipgloss.Color("238"))2930 focusedPlaceholderStyle = lipgloss.NewStyle().31 Foreground(lipgloss.Color("99"))3233 focusedBorderStyle = lipgloss.NewStyle().34 Border(lipgloss.RoundedBorder()).35 BorderForeground(lipgloss.Color("238"))3637 blurredBorderStyle = lipgloss.NewStyle().38 Border(lipgloss.HiddenBorder())39)4041type keymap = struct {42 next, prev, add, remove, quit key.Binding
4 unmodified lines
47 t.SetHeight(20)48 t.Prompt = ""49 t.Placeholder = "Type something"50 t.ShowLineNumbers = true42 t.Cursor.Style = lipgloss.NewStyle().Foreground(lipgloss.Color("212"))51 t.Cursor.Style = cursorStyle52 t.FocusedStyle.Placeholder = focusedPlaceholderStyle53 t.BlurredStyle.Placeholder = placeholderStyle54 t.FocusedStyle.CursorLine = cursorLineStyle55 t.FocusedStyle.Base = focusedBorderStyle56 t.BlurredStyle.Base = blurredBorderStyle57 t.KeyMap.DeleteWordBackward.SetEnabled(false)58 t.KeyMap.LineNext = key.NewBinding(key.WithKeys("down"))59 t.KeyMap.LinePrevious = key.NewBinding(key.WithKeys("up"))60 t.Blur()
136 unmodified lines