mirror of
https://github.com/zoriya/bubbles.git
synced 2026-08-16 01:43:21 +00:00
fix: deprecate CursorStyle in favour of Cursor.Style
This commit is contained in:
+1
-1
@@ -191,7 +191,7 @@ func New(items []Item, delegate ItemDelegate, width, height int) Model {
|
|||||||
filterInput := textinput.New()
|
filterInput := textinput.New()
|
||||||
filterInput.Prompt = "Filter: "
|
filterInput.Prompt = "Filter: "
|
||||||
filterInput.PromptStyle = styles.FilterPrompt
|
filterInput.PromptStyle = styles.FilterPrompt
|
||||||
filterInput.CursorStyle = styles.FilterCursor
|
filterInput.Cursor.Style = styles.FilterCursor
|
||||||
filterInput.CharLimit = 64
|
filterInput.CharLimit = 64
|
||||||
filterInput.Focus()
|
filterInput.Focus()
|
||||||
|
|
||||||
|
|||||||
@@ -95,7 +95,9 @@ type Model struct {
|
|||||||
PromptStyle lipgloss.Style
|
PromptStyle lipgloss.Style
|
||||||
TextStyle lipgloss.Style
|
TextStyle lipgloss.Style
|
||||||
PlaceholderStyle lipgloss.Style
|
PlaceholderStyle lipgloss.Style
|
||||||
CursorStyle lipgloss.Style
|
|
||||||
|
// Deprecated: use Cursor.Style instead.
|
||||||
|
CursorStyle lipgloss.Style
|
||||||
|
|
||||||
// CharLimit is the maximum amount of characters this input element will
|
// CharLimit is the maximum amount of characters this input element will
|
||||||
// accept. If 0 or less, there's no limit.
|
// accept. If 0 or less, there's no limit.
|
||||||
|
|||||||
Reference in New Issue
Block a user