Closed matta closed 1 month ago
Thanks for reporting the issue (this one and #5825 as well) We re-worded the quickstart guide to use a .slint file like for the other languages and it should fix these issues.
The updated docs are at https://snapshots.slint.dev/master/docs/slint/src/quickstart/ and will be in the regular URL after today's 1.7.2 release.
I'm running through https://releases.slint.dev/1.7.1/docs/slint/src/quickstart/memory_tile using the Rust path.
The instructions have you unpack the images within a
ui
subdirectory relative to theCargo.toml
file as so:Then within the
main.rs
slint!
macro you're instructed to place this (this is a sub-snippet of what the guide prescribes, to emphasize the @image-url):However, this doesn't build:
The problem is explained in the guide:
So the fix is to patch
src/main.rs
:...and it works after that.
C++ and NodeJS lack the
slint!
macro, and are instead putting the slint code in aui/appwindow.slint
file, which might explain why this discrepancy was introduced.