slint-ui / slint

Slint is a declarative GUI toolkit to build native user interfaces for Rust, C++, or JavaScript apps.
https://slint.dev
Other
16.94k stars 568 forks source link

@image-url still not working after the latest fix #4068

Closed vikky999 closed 9 months ago

vikky999 commented 9 months ago

Picked up the latest changes from master using Cargo.toml [package] name = "memory" version = "0.1.0" edition = "2021"

[dependencies]

slint = "1.3.2"

slint = { git = "https://github.com/slint-ui/slint" }

In the memory example, show preview still doesn't show the bus , instead get some weird icon

Screenshot 2023-12-02 at 9 20 20 PM

vikky999 commented 9 months ago

This is what it should be i figure, same as cargo run

Screenshot 2023-12-02 at 9 25 38 PM

ogoffart commented 9 months ago

The little black squares are the resize handle

vikky999 commented 9 months ago

oh, didn't know what those were. thanks for letting me know

but the behaviour of preview hasn't changed. it is still looking for the icon's in a different place than the code does. is that to be expected ?

as you can see, cargo build fails, but preview works. and vice versa. this is on a macbook pro, with everything updated.

Screenshot 2023-12-02 at 11 26 02 PM

vikky999 commented 9 months ago

the only way to make the code and preview both work is to copy the icons folder in both the root and src directories. which is fine by me, just request updating the documentation accordingly. confused me thoroughly when i was trying to go through the getting started tutorial thx !

ogoffart commented 9 months ago

Do you use the self compiled extension? Or the nightly build?
(The patch was only merged today, so the nightly extension will have the fix tomorrow)

vikky999 commented 9 months ago

Self compiled. I just added the git repo to cargo as shown in the first comment

vikky999 commented 9 months ago

Nevermind. I see what you mean. You probably mean the vscode extension. No guess not. I'll try again tomorrow

vikky999 commented 9 months ago

Works now as expected

Thank you !

vikky999 commented 9 months ago

Closing