Skip to content

Commit

Permalink
fix(input, write): re-enable cursor style (#592)
Browse files Browse the repository at this point in the history
* input: uncomment cursor theme

* write: add theme to huh form
  • Loading branch information
MikaelFangel committed May 25, 2024
1 parent 68400ae commit 26178f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion input/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
1 change: 1 addition & 0 deletions write/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ func (o Options) Run() error {
).
WithWidth(o.Width).
WithHeight(o.Height).
WithTheme(theme).
WithShowHelp(false).Run()

if err != nil {
Expand Down

0 comments on commit 26178f8

Please sign in to comment.