mirror of
https://github.com/charmbracelet/gum.git
synced 2024-07-14 09:30:23 +03:00
fix(input, write): re-enable cursor style (#592)
* input: uncomment cursor theme * write: add theme to huh form
This commit is contained in:
parent
68400ae7b3
commit
26178f8894
@ -23,7 +23,7 @@ func (o Options) Run() error {
|
||||
|
||||
theme := huh.ThemeCharm()
|
||||
theme.Focused.Base = lipgloss.NewStyle()
|
||||
// theme.Focused.TextInput.Cursor = o.CursorStyle.ToLipgloss()
|
||||
theme.Focused.TextInput.Cursor = o.CursorStyle.ToLipgloss()
|
||||
theme.Focused.TextInput.Placeholder = o.PlaceholderStyle.ToLipgloss()
|
||||
theme.Focused.TextInput.Prompt = o.PromptStyle.ToLipgloss()
|
||||
theme.Focused.Title = o.HeaderStyle.ToLipgloss()
|
||||
|
@ -37,6 +37,7 @@ func (o Options) Run() error {
|
||||
).
|
||||
WithWidth(o.Width).
|
||||
WithHeight(o.Height).
|
||||
WithTheme(theme).
|
||||
WithShowHelp(false).Run()
|
||||
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user