5

12th to 18th of December 2022 - 0.3.3 Release

 1 year ago
source link: https://slint-ui.com/thisweek/2022-12-19.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Slint is a toolkit to efficiently develop fluid graphical user interfaces for any display: embedded devices and desktop applications. We support multiple programming languages, such as Rust, C++, and JavaScript.

Find more information at https://slint-ui.com/ or go straight to github at https://github.com/slint-ui/slint

Seasons Greetings

Merry Christmas🎄, Happy Holidays, and a Happy New Year🎉 2023!

We'll take a few days off to spend some time with friends and family, and to recharge our batteries.

We'd like to thank all our customers, contributors, followers on Twitter and Mastodon, and of course our community for their support, feedback, contributions, and trust in Slint. It's a pleasure to work with all of you!

Slint UI library

Release 0.3.3

On December 16 we released Slint 0.3.3, with new features and some bug fixes. Here are the highlights:

  • Added support for function, to define helper functions.

    
    CheckBox := Rectangle {
        in-out property <bool> checked;
        in property <string> text;
        public function toggle() {
            checked = !checked;
        }
    
        public function extended-text(ext: string) -> string {
            checked ? text + " " + ext : text
        }
    
        //...
    }
    
  • Online editor can now zoom the preview.
  • VS Code extension and online editor lets you add and remove bindings from the properties tab.
  • Added support for re-exporting types from other files using export * from "./other_file.slint";.

For more details, check out the ChangeLog

Upcoming Changes to the Slint Language - Part 2

Olivier published the second part of his thoughts on how to improve the Slint language. Any feedback is welcome.

New Features

  • Experimental platform API from C++ (#1965, #1973)
  • Add support for rendering system fonts with the software renderer (#1999)
  • Add support for CMAKE_*_OUTPUT_DIRECTORY variables for Slint build artifacts (#1979)

Tooling

  • LSP: Highlight and rename of element id (#1983)
  • Add declared properties via properties editor in online editor and VSCode (#1968)

Fixes

  • Fix rendering of border widths with FemtoVG and Skia (#1986)
  • Don't panic when seeing invalid property definitions in the LSP (#1997)
  • Fix parsing of "public function" in release mode (#1993)
  • Fix panic when a PopupWindow is a children of an optimized element (#1994)
  • Fix rust compilation of functions returning nothing (#1996)
  • Don't optimize properties used by functions (#1998)

Testing

  • Add infrastructure to test rendering via the software renderer (#1955)

Janitor Work

PRs: #1974, #1976, #1978, #1981, #1982, #1987, #2004

Other Crates and Libraries

Statistics

72 patches committed in 24 pull requests by 4 authors.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK