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.93k stars 565 forks source link

Support for Gifs and Monaco #1326

Closed Iskra-Never-Dies closed 2 years ago

Iskra-Never-Dies commented 2 years ago

I'm trying to add Monaco to a UI I am writing and I'm not sure if loading HTML elements is possible , I am also wondering if Slint supports Gifs and not just images

tronical commented 2 years ago

At the moment we don’t support animated GIFs.

We’re in the process of moving the image decoding into the core library and then we could consider using image-rs’s support for animated GIFs, webp and apng.

How do you generated your animated clips? What are they like in terms of resolution?

Iskra-Never-Dies commented 2 years ago

I'm not really sure as for the specifcs, as we found this gif on some random website, but this is it sea

As for the monaco does Slint support that?

tronical commented 2 years ago

Ok, that sounds alright.

About Monaco: Do you mean embedding the Monaco editor in Slint?

Iskra-Never-Dies commented 2 years ago

Yeah, I'm not sure at all how to implement it as I'm not sure how to load HTML elements

tronical commented 2 years ago

I’m afraid that embedding HTML elements or components like the Monaco editor is not possible with Slint :(