fix(input, write): re-enable cursor style (#592)

* input: uncomment cursor theme

* write: add theme to huh form
This commit is contained in:
Mikael Fangel 2024-05-25 18:42:44 +00:00 committed by GitHub
parent 68400ae7b3
commit 26178f8894
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -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()

View File

@ -37,6 +37,7 @@ func (o Options) Run() error {
).
WithWidth(o.Width).
WithHeight(o.Height).
WithTheme(theme).
WithShowHelp(false).Run()
if err != nil {