Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "tabs" style for dropdown inputs #2367

Merged
merged 2 commits into from
Dec 2, 2023

Conversation

RunDevelopment
Copy link
Member

This adds a tab list style display for dropdowns. This style shows all options at once and allows users to quickly change between them. Just like checkboxes, tabs are implemented using preferred_style, so it's a purely visual change and doesn't affect the behavior of the input at all.

I used tabs in 3 nodes so far.

  • Crop, for the Crop Mode dropdown.
  • Stretch Contrast, for the Stretch Mode dropdown.
  • Color From, for the Color Type dropdown.

I also renamed some enum variants to make the tabs look better. In particular, I renamed "Grayscale" to "Gray" in Color From, which makes it nicely consistent with regular color input.

image

@joeyballentine joeyballentine merged commit 369cee6 into chaiNNer-org:main Dec 2, 2023
@RunDevelopment RunDevelopment deleted the tab-dd branch December 2, 2023 19:31
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.

2 participants