Skip to content

Commit

Permalink
chore: interactive single group
Browse files Browse the repository at this point in the history
  • Loading branch information
maaslalani committed Jan 31, 2024
1 parent 1530eef commit 586e2d2
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions interactive.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,7 @@ func runForm(config *Config) (*Config, error) {
Inline(true).
Prompt("").
Validate(validateColor),
),

huh.NewGroup(
huh.NewNote().Title("Window"),

huh.NewInput().Title("Padding ").
Expand All @@ -121,9 +119,7 @@ func runForm(config *Config) (*Config, error) {
huh.NewConfirm().Title("Controls").
Inline(true).
Value(&config.Window),
),

huh.NewGroup(
huh.NewNote().Title("Font"),

huh.NewInput().Title("Font Family ").
Expand All @@ -148,9 +144,7 @@ func runForm(config *Config) (*Config, error) {
Prompt("").
Value(&lineHeight).
Validate(validateFloat),
),

huh.NewGroup(
huh.NewNote().Title("Border"),

huh.NewInput().Title("Border Radius ").
Expand All @@ -176,9 +170,7 @@ func runForm(config *Config) (*Config, error) {
Prompt("").
Value(&config.Border.Color).
Placeholder("#515151"),
),

huh.NewGroup(
huh.NewNote().Title("Shadow"),

huh.NewInput().Title("Blur ").
Expand All @@ -205,7 +197,7 @@ func runForm(config *Config) (*Config, error) {
Value(&shadowY).
Validate(validateInteger),
),
).WithTheme(theme).WithHeight(10)
).WithTheme(theme).WithHeight(33)

err := f.Run()

Expand Down

0 comments on commit 586e2d2

Please sign in to comment.