- Release Date and Team: September 23, 2024 by Slint Team.
- Slint Overview: A native GUI toolkit in Rust with APIs in multiple languages, for fast responsive apps on all platforms.
New Features in 1.8:
- Property Change Callbacks: Help manage side effects without extra logic. Example for TextEdit:
my-edit := TextEdit { changed text => { t.text = self.text; } }
. Can also be used for debugging. Beware of performance issues. For more, see Olivier's blog post. - Timer Element: Easily trigger callbacks at regular intervals with
Timer { interval: 1s; triggered() => { debug("Tick"); } }
. Bind torunning
property to stop when not needed. - SwipeGestureHandler Element: Recognize and respond to swipe gestures. Example:
sgh := SwipeGestureHandler { handle-swipe-left: true; handle-swipe-right: true; swiped => { /* the swipe is finished */ } }
. - Enhanced Live Preview: Improved UX and property editors.
- VSCode New Project Template: Easier to create new Slint projects with a new option in VSCode.
- Easier MCU Development: New templates for STMicroelectronics' STM32 platform (STM32H747I-DISCO and STM32H735G-DK). Download template archive, open in VSCode, and press F5 to cross-compile, flash, and debug. Updated ESP-IDF component for Espressif's ESP-IDF platform.
- Math Gains Postfix Support: Improves readability with new syntax like
value.x.abs().max(20)
. Limited to simple transformations. - Math Gains atan2(): Added atan2 function based on designer's request.
- Property Change Callbacks: Help manage side effects without extra logic. Example for TextEdit:
- Upgrade and Feedback: Upgrade to Slint 1.8 by following GitHub release instructions. Welcome feedback and contributions.
- Contributors: A list of contributors including [crai0], [Enyium], etc.
- Slint's Features: Toolkit for reactive and fluent UIs across targets. Supports multiple languages and compiles to native code. Facilitates designer-developer collaboration and supports business logic development.
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。