mirror of
https://github.com/charmbracelet/gum.git
synced 2024-09-11 06:16:03 +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 := huh.ThemeCharm()
|
||||||
theme.Focused.Base = lipgloss.NewStyle()
|
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.Placeholder = o.PlaceholderStyle.ToLipgloss()
|
||||||
theme.Focused.TextInput.Prompt = o.PromptStyle.ToLipgloss()
|
theme.Focused.TextInput.Prompt = o.PromptStyle.ToLipgloss()
|
||||||
theme.Focused.Title = o.HeaderStyle.ToLipgloss()
|
theme.Focused.Title = o.HeaderStyle.ToLipgloss()
|
||||||
|
@ -37,6 +37,7 @@ func (o Options) Run() error {
|
|||||||
).
|
).
|
||||||
WithWidth(o.Width).
|
WithWidth(o.Width).
|
||||||
WithHeight(o.Height).
|
WithHeight(o.Height).
|
||||||
|
WithTheme(theme).
|
||||||
WithShowHelp(false).Run()
|
WithShowHelp(false).Run()
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user