Closed radiohertz closed 2 years ago
The support for ico
is not enabled by default.
But we use the image
crate for decoding and it has a ico
feature.
To enable the feature, add that to your Cargo.toml
[dependencies]
image = { version = "0.24.0", default-features = false, features = [ "ico" ] }
Thank you!
@ogoffart: The slint
Rust crate doesn't have the ico
feature anymore. How are you supposed to use .ico files now?!
By enabling the feature in the image (0.24) crate
Oh, sorry, I overlooked that it says image =
on the start of the line, not slint =
(same width). I used this line in Cargo.toml
:
image = { version = "0.24.9", features = ["ico"] }
This works.
I think this should be documented on https://docs.rs/slint/latest/slint/docs/cargo_features/index.html. (Reopen issue?)
When i use a favicon, it logs this message in the console.
Code