slint icon indicating copy to clipboard operation
slint copied to clipboard

Slint is a declarative GUI toolkit to build native user interfaces for Rust, C++, or JavaScript apps.

Results 804 slint issues
Sort by recently updated
recently updated
newest added

I have a few widget pages that control different parts of my app. I want to call through to Rust code that accepts the widgets' content batch-wise (always a whole...

enhancement
a:language-slint

I am running Slint 1.7.2 on Ubuntu 24.04 with Rust 1.79.0. I have defined a Slint widget named `WidgetToBeExported` with an adapter `Adapter` that I would like to reuse in...

need triaging

Vue.js has a [slot concept](https://vuejs.org/guide/components/slots.html#named-slots). The following code imagines how this concept could manifest in Slint: ```slint component Page { VerticalLayout { Rectangle { background: gray; @children["header"] // Or `@children[0]`....

rfc
a:language-slint

Consider [this SlintPad demo](https://slintpad.com/?snippet=import+%7B+Button%2C+VerticalBox+%7D+from+%22std-widgets.slint%22%3B%0A%0Aexport+component+Demo+%7B%0A++++timer+%3A%3D+Timer+%7B%0A++++++++interval%3A+1s%3B%0A%0A++++++++triggered+%3D%3E+%7B%0A++++++++++++t.text+%3D+t.text.to-float%28%29+%2B+1%3B%0A++++++++%7D%0A++++%7D%0A%0A++++init+%3D%3E+%7B%0A++++++++timer.interval+%3D+2s%3B%0A++++++++timer.running+%3D+false%3B%0A++++%7D%0A%0A++++VerticalBox+%7B%0A++++++++alignment%3A+start%3B%0A%0A++++++++Text+%7B%0A++++++++++++text%3A+%22Timer+shouldn%27t+run%2C%5Cnand+interval+should+be%5Cnlonger+than+1s%3A%22%3B%0A++++++++%7D%0A%0A++++++++t+%3A%3D+Text+%7B%0A++++++++++++text%3A+%220%22%3B%0A++++++++%7D%0A%0A++++++++Button+%7B%0A++++++++++++text%3A+%22Lengthen%22%3B%0A%0A++++++++++++clicked+%3D%3E+%7B%0A++++++++++++++++timer.interval+%3D+3s%3B%0A++++++++++++%7D%0A++++++++%7D%0A%0A++++++++Text+%7B%0A++++++++++++text%3A+%22Running+as+read%3A+%5C%7Btimer.running+%3F+%22true%22+%3A+%22false%22%7D%22%3B%0A++++++++%7D%0A%0A++++++++Text+%7B%0A++++++++++++text%3A+%22Interval+as+read%3A+%5C%7Btimer.interval+%2F+1s%7Ds%22%3B%0A++++++++%7D%0A++++%7D%0A%7D%0A&style=native) (see its rendered output): ```slint import { Button, VerticalBox } from "std-widgets.slint"; export component Demo { timer := Timer { interval: 1s; triggered => { t.text...

bug
a:compiler

The following panic happened once (with many executions), in a relatively large app so can't provide a reproducible scenario or code, so I don't know if this is of value...

bug
a:renderer-software

It would be great if layouts added the convenience properties `available-width`/`available-height` (or `inner-width`/`inner-height`), which would exclude the padding of the respective sides. Consider [this SlintPad demo](https://slintpad.com/?snippet=import+%7B+HorizontalBox%2C+ScrollView%2C+VerticalBox+%7D+from+%22std-widgets.slint%22%3B%0A%0Aexport+component+Demo+%7B%0A++++width%3A+500px%3B%0A%0A++++VerticalBox+%7B%0A++++++++property+%3Clength%3E+available-width%3A+self.width+-+self.padding+*+2%3B%0A%0A++++++++Text+%7B+text%3A+%22before%22%3B+%7D%0A%0A++++++++Rectangle+%7B%0A++++++++++++width%3A+min%28%0A++++++++++++++++%2F%2F+Convenience+property+makes+this+less+noisy%2C%0A++++++++++++++++%2F%2F+more+straightforward%2C+and+relieves+you+of%0A++++++++++++++++%2F%2F+responsibility.%0A++++++++++++++++parent.available-width%2C%0A++++++++++++++++content.preferred-width%2C%0A++++++++++++%29%3B%0A%0A++++++++++++height%3A+20px%3B%0A++++++++++++background%3A+%40linear-gradient%2890deg%2C+red+0%25%2C+lime+100%25%29%3B%0A%0A++++++++++++content+%3A%3D+ScrollView+%7B%0A++++++++++++++++%2F%2F+Try+adding+zeroes.%0A++++++++++++++++preferred-width%3A+10px%3B%0A++++++++++++%7D%0A++++++++%7D%0A%0A++++++++Text+%7B+text%3A+%22after%22%3B+%7D%0A++++%7D%0A%7D%0A&style=native) (see comments): ```slint import...

enhancement
a:layouts
priority:low

See the picture below ![image](https://github.com/user-attachments/assets/3e4b362a-3110-485a-84fb-bbf625e34967)

a:text
need triaging

The compiler should look for existence of high-dpi version of images if they exist so they can be used depending on the actual physical size at which the image is...

roadmap

In an app running on `MCU` (`esp32s3`) with `software-renderer`, when adding `SwipeGestureHandler` it's causing panics to happen, **sometimes but not always**, when touching the screen, not even when doing any...

bug
a:platform-mcu

Currently it is really hard to implement something like an autocomplete box. Where you need an element e.g. `LineEdit` to enter text to filter your list and to check for...

rfc