7th of March 2022 to 13th of March 2022 ‒ 0.2.1 Release

Slint 0.2.1 Release

We released a bug-fix release with version 0.2.1 on Thursday.

The release mostly contains bug fixes, but also has a couple of features:

  • Global singletons in .slint code may now refer to other global singletons
  • TextInput and LineEdit now have a input-type property that can be set to password to replace characters with ●

For more details see the ChangeLog

Upgrading to 0.2.1

If you're using Slint with Rust, just run cargo update to update to the latest release.

If you're using Slint with C++, set GIT_TAG in your CMakeLists.txt to release/0.2. This is a new branch that we've created. We'll update it with future minor and patch releases, so that you can conveniently stay up-to-date with the latest and greatest Slint.

Slint UI Library

Microcontroller

Printer Demo on Raspberry pi pico
Our printer demo running on RP2040

We made significant progress with the microcontroller (MCU) branch this week. Our goal is to make our demo work on the Raspberry Pi Pico (RP2040 with 264KB RAM, using a 320x240 pixel screen, pixels transferred via SPI)

  • MCU renderer: rounded rectangle (#1012)
  • Fix support for partial rendering in the simulator (#1018)
  • MCU backend cleanup (#1033)

    Attempt to unify a bit the features so we have less #[cfg] in the demo. Add a README. Add a test in the CI

  • MCU renderer: optimize the line processing step (#1038)
  • Fork the printer demo for adjusting to the MCU (#1019)

Text Rendering and Line Breaking improvements (#1016)

Simon worked on improved line breaking, especially in the context of MCU.

New Features

  • Added From<&str> and From<SharedString> to StandardListViewItem (4c61a1)

    This makes it easier to have have just a couple of strings in a model.

Fixes

  • Fixed building applications with a different CMAKE_BUILD_TYPE than the CMake package (ebe3a3)

    Fix the mapping between a projects CMAKE_BUILD_TYPE and the build type of the imported Slint library.

    Fixes #1027

  • Don't draw LineEdit's focus ring if it is not enabled (10dc49)
  • Properly compute the binding priority in case of several level of inlining (8bf47a)

    The problem is that if some bindings are coming from already inlined elements they should have a higher priority field, so that when merging the two way binding, we keep the least deep value

    Fixes: #1026

  • Properly error out when element type are used within composite types (7d6c1f)

    Fix #1021

Janitor work

Changes: c68291, 133688, 49c6da, 04dd40, aeb80e, cce7b0

Statistics

102 patches were committed by 4 authors.

← Next : 14th of March 2022 to 20th of March 2022 | Previous : 28th of February 2022 to 6th of March 2022


Slint is a declarative GUI toolkit to build native user interfaces for desktop and embedded applications written in Rust, C++, or JavaScript. Find more information at https://slint.dev/ or check out the source code at https://github.com/slint-ui/slint