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

femtovg: Fix warning about deprecated web_sys::set_fill_style #6571

Merged
merged 1 commit into from
Oct 16, 2024

Conversation

hunger
Copy link
Member

@hunger hunger commented Oct 16, 2024

Use set_fill_style_str instead, it avoids constructing a JSValue from a str.

Use set_fill_style_str insterad, it avoids constructing a JSValue
from a str.
@hunger
Copy link
Member Author

hunger commented Oct 16, 2024

I turned web-sys into a workspace dependency so we do not end up with different versions all over the place. I did not update the examples accordingly as those are supposed to stay stand-alone.

@@ -156,6 +156,8 @@ spin_on = { version = "0.1" }
strum = { version = "0.26.1", default-features = false, features = ["derive"] }
toml_edit = { version = "0.22.7" }
ttf-parser = { version = "0.21" }
# web-sys needs to be >= 0.3.72 for set_fill_style_str
Copy link
Member

@ogoffart ogoffart Oct 16, 2024

Choose a reason for hiding this comment

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

we don't ususally write these kind of comments.
(otherwise we'd have one comment for each dependency)

@hunger hunger merged commit df4f9b3 into slint-ui:master Oct 16, 2024
35 checks passed
@hunger hunger deleted the tobias/push-unxvprryrzup branch October 16, 2024 11:25
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