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 a colored variant for Container style #2261

Merged
merged 2 commits into from
Sep 2, 2024

Conversation

wiiznokes
Copy link
Contributor

This is useful for debugging

@dtzxporter
Copy link
Contributor

Instead of adding a new variant, it may make more sense to implement From for the style like some of the other widgets do so you can just have a colored container that way without adding another branch here.

@hecrj hecrj force-pushed the container-style-colored branch from 75aa925 to 969e0d9 Compare September 2, 2024 10:00
Co-authored-by: wiiznokes <78230769+wiiznokes@users.noreply.github.com>
@hecrj hecrj force-pushed the container-style-colored branch from 969e0d9 to 9d7aa11 Compare September 2, 2024 10:01
@hecrj hecrj added this to the 0.13 milestone Sep 2, 2024
@hecrj hecrj added feature New feature or request styling addition labels Sep 2, 2024
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.

Made some changes so that the following works:

container.style(container::background(color))

Thanks!

@hecrj hecrj enabled auto-merge September 2, 2024 10:03
@hecrj hecrj merged commit 9957481 into iced-rs:master Sep 2, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addition feature New feature or request styling
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants