Skip to content

Conversation

@jthat
Copy link

@jthat jthat commented Jun 12, 2025

When porting the control gallery example (#14) I ran into an issue with ui.Slider.New().

ui.Spinbox.New() defines a TypeEnum containing an Integer struct for representing the min and max values. This was missing from ui.Slider.New(), which accepted the values as individual arguments.

This stood out when the two controls were used side by side in the example code.

Since precisely the same concept of min and max applies to both a slider and a spinbox, their API should be consistent.

`ui.Spinbox.New()` defines a `TypeEnum` containing an `Integer`
struct for representing the min and max values. This was missing from
`ui.Slider.New()`, which accepted the values as individual arguments.

Since precisely the same concept of min and max applies to both a slider
and a spinbox, their API should be consistent.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant