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 Placeholders to PickList #888

Merged
merged 6 commits into from
Jul 22, 2021
Merged

Add Placeholders to PickList #888

merged 6 commits into from
Jul 22, 2021

Conversation

Ace4896
Copy link
Contributor

@Ace4896 Ace4896 commented May 22, 2021

Hi! This PR adds support for displaying a placeholder label when no value is currently selected in a PickList.

Closes #726.

@hecrj hecrj added the feature New feature or request label Jul 22, 2021
@hecrj hecrj added this to the 0.4.0 milestone Jul 22, 2021
Copy link
Member

@hecrj hecrj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great! Thank you 🙇

I have made some changes to remove some duplication and fix a minor issue with the hash_layout implementation.

Additionally, I have introduced a placeholder_color field to the Style of a PickList. This way, we can help the user differentiate between a selected option and a placeholder.

I think this should be ready to go! 🎉

@hecrj hecrj merged commit f076649 into iced-rs:master Jul 22, 2021
@Ace4896
Copy link
Contributor Author

Ace4896 commented Jul 22, 2021

Thanks for making those changes and catching the issue with the hash layout! The separate colour for the placeholder definitely makes sense, it might be difficult to tell otherwise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Picklist with placeholder
2 participants