I'm thinking this is going to be the display for our boats electric motor dashboard. It's a #raspberrypi #PiZero2W with a "Bar screen" 400x1280 pixels just under 70mmx210mm box
Either using a web browser and a #HomeAssistant dashboard or something more custom written in #Rust with #slint_ui

Yalls wanna hear about something very cursed?

There is a GUI toolkit for Rust called Slint. And that one has stuff like ListView where you put their special for construct around an array and create elements based on it.

The issue? Scrolling with D-pad. You get a scrollview but that isn't aware of the items inside so you have to somehow specify the step size. But if the items have arbitrary size? You can't take reference of the widgets. There is no widget object concept.

What I did is creating a »shadow« layout which I set as invisible, but instead of the for construct I made a view of previous item, current item and following item, which, as they are statically defined I can refer to and get their height.

 

#slint_ui

I've been writing an open source, cross-platform music player I'm calling Dimple and I'd like to start sharing some progress. So, first of a thread...

Just finished switching the main app window to a sidebar design instead of a header, and I like it quite a bit more. What do you think? Sidebar or header?

#Dimple #opensource #music #rust #slint_ui

You can meet us at this year's Embedded World in Hall 4-302 where we present our latest demos featuring #Qt, #cpp, #embeddedlinux, #slint_ui, #rustlang, and #flutterdev