From 532b3a968fc856ac4caf4185608d47b51b846449 Mon Sep 17 00:00:00 2001 From: Mikael Fangel <34864484+MikaelFangel@users.noreply.github.com> Date: Fri, 24 May 2024 22:52:31 +0200 Subject: [PATCH 1/2] input: uncomment cursor theme --- input/command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input/command.go b/input/command.go index c02f65cf9..58252ddde 100644 --- a/input/command.go +++ b/input/command.go @@ -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() From 4aa3317f994098fea60751e98e01f817613b515c Mon Sep 17 00:00:00 2001 From: Mikael Fangel <34864484+MikaelFangel@users.noreply.github.com> Date: Fri, 24 May 2024 22:57:51 +0200 Subject: [PATCH 2/2] write: add theme to huh form --- write/command.go | 1 + 1 file changed, 1 insertion(+) diff --git a/write/command.go b/write/command.go index 04a3a8a72..54cdb852c 100644 --- a/write/command.go +++ b/write/command.go @@ -37,6 +37,7 @@ func (o Options) Run() error { ). WithWidth(o.Width). WithHeight(o.Height). + WithTheme(theme). WithShowHelp(false).Run() if err != nil {