Skip to content

Commit

Permalink
fix: larger file picker
Browse files Browse the repository at this point in the history
  • Loading branch information
maaslalani committed Jan 31, 2024
1 parent 586e2d2 commit f5fac63
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions interactive.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ func runForm(config *Config) (*Config, error) {
theme := huh.ThemeCharm()
theme.FieldSeparator = lipgloss.NewStyle()
theme.Blurred.TextInput.Text = theme.Blurred.TextInput.Text.Copy().Foreground(lipgloss.Color("243"))
theme.Blurred.Description = theme.Blurred.Description.Copy().Foreground(lipgloss.Color("0"))
theme.Focused.Description = theme.Focused.Description.Copy().Foreground(lipgloss.Color("7"))
theme.Blurred.BlurredButton = lipgloss.NewStyle().Foreground(lipgloss.Color("8")).PaddingRight(1)
theme.Blurred.FocusedButton = lipgloss.NewStyle().Foreground(lipgloss.Color("7")).PaddingRight(1)
theme.Focused.BlurredButton = lipgloss.NewStyle().Foreground(lipgloss.Color("8")).PaddingRight(1)
Expand All @@ -47,6 +45,7 @@ func runForm(config *Config) (*Config, error) {
huh.NewNote().Title("Capture file"),
huh.NewFilePicker().
Value(&config.Input),
huh.NewNote().Description("Choose a code file to screenshot."),
),
).
WithTheme(theme).
Expand All @@ -63,6 +62,8 @@ func runForm(config *Config) (*Config, error) {
config.Output = strings.TrimSuffix(base, ext) + ".svg"
}

theme.Blurred.Description = theme.Blurred.Description.Copy().Foreground(lipgloss.Color("0"))
theme.Focused.Description = theme.Focused.Description.Copy().Foreground(lipgloss.Color("7"))
theme.Blurred.Title = theme.Blurred.Title.Copy().Width(14).Foreground(lipgloss.Color("7"))
theme.Focused.Title = theme.Focused.Title.Copy().Width(14).Foreground(green).Bold(true)
theme.Focused.Base.
Expand Down

0 comments on commit f5fac63

Please sign in to comment.