Skip to content

Latest commit

 

History

History
887 lines (690 loc) · 42.3 KB

CHANGELOG.md

File metadata and controls

887 lines (690 loc) · 42.3 KB

Changelog

All notable changes to this project are documented in this file.

Unreleased

General

  • Fixed compiler panics when some complex expressions are used for the model expression in for (#2977)
  • Native style: Fixed support for floating point ranges in Slider.

Slint Language

  • Added clear-selection() to TextInput, LineEdit, and TextEdit.
  • The PointerEvent struct now has the modifiers: KeyboardModifiers

Rust

C++

  • Added slint::Window::scale_factor() as getter to read the system device pixel ratio.

LSP

  • Correctly use the CARGO_MANIFEST_DIR as the base for import and image in slint! macro

1.1.0 - 2023-06-26

General

  • Fixed missing items compilation error in the generated code related to public functions (#2655).
  • Added support for Window transparency on supported platforms.
  • Fixed TabWidget not filling the parent in non-native style.
  • Skia: Add support for rendering with Vulkan.
  • Wasm: Added copy and paste support.
  • Fixed TouchArea::has-hover not being reset in some cases involving multiple TouchArea or Flickable elements.
  • Fixed ListView panic when model reset in some cases. (#2780)
  • Fixed read-only TextInput reporting input method access. (#2812)
  • Fixed LineEdit's placeholder text not being rendered with the same font attributes as regular LineEdit text.
  • Fixed rendering of SVGs with text. (#2646)
  • Software renderer: Show the cursor in TextInput

Slint Language

  • Added support for declaring enumerations.
  • Added support negative numbers in cubic-bezier(...) function.
  • Added ProgressIndicator widget.
  • Added Switch widget.
  • Added boolean font-italic property to Text and TextInput.
  • Added select-all(), cut(), copy(), and paste() to TextInput, LineEdit, and TextEdit.
  • Added functions on color: transparentize, mix, and with-alpha.
  • Added a close() function and a close-on-click boolean property to PopupWindow.
  • Added basic translation infrastructure with @tr("...").
  • Added absolute-position property to every element, for computing window-absolute positions.
  • Added primary boolean property to Button to configure its visual appearance.
  • Added current-row to StandardTableView.

Rust

  • Added slint::Image::load_from_svg_data(buffer: &[u8]) to load SVGs from memory.
  • Added slint::platform::WindowEvent::ScaleFactorChanged to allow backends to report the current window scale factor.
  • Added slint::Image::from_borrowed_gl_2d_rgba_texture to create images from borrowed OpenGL textures.
  • In the Slint language, struct can be annotated with @rust-attr(...) that is forwarded as a Rust attribute (#[...]) for the generated struct.
  • Added a serde feature to enable serialization of some Slint data structures.
  • Added convenience From conversions for ModelRc from slices and arrays.
  • slint-viewer gained the ability to preview .rs files with a slint! macro.
  • Added a spawn_local function to run async code in the Slint event loop.

C++

  • Added slint::Image::create_from_borrowed_gl_2d_rgba_texture to create images from borrowed OpenGL textures.
  • Added [[nodiscard]] in a function signatures.
  • Experimental: the slint::platform::WindowAdapter no longer takes a template parameter and has a different constructor signature.

LSP

  • Fixed auto-completion of local properties or arguments in callbacks or functions.
  • Fixed panic when the editor tries to open non-local urls.

VSCode extension

  • Make a visible error message when the slint-lsp panics.

1.0.2 - 2023-04-26

General

  • Fixed the compiler embedding images unnecessarily multiple times when referenced via different relative paths. (#2608)
  • Winit backend: Adjust the window size automatically when an update minimum or maximum size would constrain the existing size.
  • Winit backend: Added internal API in the i-slint-backend-winit crate to access the winit window
  • Fix focussing element whose base is focusable (#2622)
  • Fix infinite loop in the compiler when there is a loop in forward-focus
  • Skia renderer: Add support for password input fields.

C++

  • Fix build against macOS deployment target 10.10

VSCode extension

  • Fixed preview not working (#2609)
  • Added design mode commands
  • Browser extension: fix preview not previewing specific component

SlintPad

  • Fix editing in non-main files was getting ignored (#2630)

1.0.1 - 2023-04-20

General

  • Fixed compiler panic when binding Path's commands property to the field of a model entry.
  • Qt renderer: Fixed support for horizontal alignment in TextInput.
  • Winit backend: Fix detect of dark color scheme in some circumstances.
  • ListView: fix resizing a ListView to empty height would make all items invisible even if resized back (#2545)
  • Fixed compiler panic when accessing unset layout properties such as spacing or alignment (#2483)
  • Fixed compiler panic when accessing property from parent context in a init => callback
  • Load fontconfig with dlopen instead of dynamic linking.
  • Software renderer: renders the text in TextInput
  • Fixed TouchArea::has-hover not becoming false when items become invisible

Slint Language

  • Fixed parent FocusScope objects stealing the focus from inner FocusScopes when clicked.
  • Added TextInputInterface.text-input-focused to detect when a virtual keyboard should open
  • Added always-on-top property of a Window to show the window above others
  • The error message when referring to an id reports a suggestion if there is a enum value or a property with the same name.

C++

  • macOS: Fixed install_name for libslint_cpp.dylib use @rpath instead of absolute paths to the build directory.
  • Fixed memory corruption when embedding images in generated C++ code.
  • Add support for dispatching key press and key release events to slint::Window via dispatch_key_*_event. This replaces the experimental slint::experimental::platform::WindowAdapter::dispatch_key_event.
  • MSVC: /bigobj is enabled by default as compile option when linking against the Slint CMake target, removing the need for users who run into linking issues to add that to their build.

LSP

  • Don't throw a protocol error when using the rename function on a symbol that can't be renamed
  • Always auto-complete widgets from the style even if no widgets is imported
  • Don't auto-complete reserved properties or sub components for globals
  • Auto-completion in the document root (component, import, global)

VSCode extension

  • Added an option to show the preview with wasm in a vscode tab (just like in the online version)
  • Make code lenses work better on Windows

SlintPad

  • Warn when ServiceWorker could not get set up (e.g. in private browsing mode on Firefox)
  • Add design mode

1.0.0 - 2023-04-03

General

  • TextEdit performs better with the FemtoVG renderer when showing many lines.
  • Software renderer: Added support for linear-gradients.
  • Software renderer: Fixed artifacts when components are deleted or elements become invisible.
  • Fixed Infinite loop in the accessibility backend on Windows (#2195).
  • Skia renderer: Enable anti-aliasing for rectangles with border radius.
  • Fluent style: Adjust disabled scrollbar background color.
  • Fixed several panics in the compiler (#2312, #2274, #2319).
  • Winit backend: Fix rendering when moving windows between monitors with a different scale factor (#2282).

Slint Language

  • The old syntax that declares component with := is now deprecated
  • Flickable: don't forward events if the flickable is dragged in a direction that can be dragged, even if at the bounds.
  • The TextEdit and LineEdit elements now correctly handle double click and tripple click to select words or lines, as well as support for the "primary" clipboard on X11 and wayland (select to copy, and middle click to paste).

Rust

  • Minimum Rust version is now 1.66.
  • Breaking: Deprecated functions and enums were removed from the API.
  • Breaking: PointerEventButton::None was renamed PointerEventButton::Other
  • Breaking: More functions now return Result, and the return value needs to be unwrap()'ed.
  • Breaking: A lifetime parameter was added to slint::ModelPeer.
  • Breaking: StandardListViewItem and TableColumn are now marked as #[non_exhaustive].
  • Breaking: Removed the stride() function from slint::Image - use width() instead.
  • Breaking: In slint::platform::WindowEvent::KeyPressed and KeyReleased, the text field is now a slint::SharedString.
  • Breaking: slint::platform::WindowEvent does not derive from Copy anymore. You must clone() it explicitly if you want to create a copy.
  • Breaking: The MAX_BUFFER_AGE const parameter of slint::platform::software_renderer::MinimalSoftwareWindow has been removed and replaced by an argument to the new() function.
  • Breaking: The compat-0-3-0 mandatory cargo feature flag was renamed to compat-1-0.
  • Added a software-renderer-systemfonts feature to the Rust crate, to enable the use of fonts from the operating system for text rendering with the software renderer.
  • Fixed some clippy warnings in the generated Rust code.

C++

  • Functions that take a functor as argument are now using C++ 20 concepts.
  • Breaking: In the C++ API, the type for row indexes in models was changed from int to size_t. This includes arguments of virtual functions in slint::Model that needs to be adjusted in derived classes.
  • Breaking: The order of C++ generated struct members is now preserved from the .slint source file.
  • Add constructors to slint::Image to create images from raw pixel data.
  • In C++ builds, support all image formats the Rust image-rs crate supports, not just png and jpeg.
  • Added the SLINT_FEATURE_RENDERER_WINIT_SOFTWARE option to enable the software renderer.

Tooling

  • LSP: don't add spaces when auto-completing elements or callbacks, leads to better formatting.
  • The online editor was renamed to SlintPad.

0.3.5 - 2023-02-21

Fixed

  • FemtoVG: Fix cursor placement at end of lines
  • Windows: Fix panic when minimizing windows
  • Fixed some panics in the software renderer when using text
  • Fixed panic when parsing invalid linear gradient syntax
  • Qt: Fixed mapping of the control key
  • Linux: Fix panic when using GLX
  • Fixed const detection when using two-way bindings
  • Fix run-time panic when combining forward-focus with text rendering in no_std environments
  • Rust: Fix compile issues when generated code clashes with user types
  • C++: Fix compilation with structs that have a field with the same name as the struct
  • Fix visible property on the root of a component
  • Fix compiler panic when an component's base is not inlined
  • C++: fix including the generated file in several translation units
  • C++: Fix "make install" on Windows

Added

  • The StandardListView provides now a set-current-item function to set the selected item and bring it into view.

0.3.4 - 2023-01-25

Changed

  • A new syntax is available that declares the components with component Xxx { ... } instead of Xxx := .... The old syntax continues to work in this release.
  • A warning is shown when calling non-pure function or callback from pure context (eg: a property binding). Callbacks and functions can be annotated with pure.
  • On an Image, the default value of source-clip-width and source-clip-height is now set to the size of the image minus the source-clip-{x,y}. The source clip size is now used to compute the default aspect ratio of the image.
  • Deprecated invoke_callback functions in the slint interpreter in favor of invoke, which can also invoke functions in addition to callbacks.
  • Warn if the last component or singleton in a file is implicitly marked for exporting.

Added

  • StandardTableView widget.
  • LSP: support of Slint features (auto-complete, preview, ...) in slint!{} macro in Rust files.
  • The software renderer can now load fonts at run-time, without the need to pre-render glyphs at compile time.
  • The preview in the online editor, VS Code extension, and the VS Code web extension highlight components while the cursor is on the component type name.

Fixed

  • Compiler panic for files containing no component (#2005).
  • Calling public functions from native code.
  • Fixed crash when using repeaters in C++ on 32-bit architectures.
  • Conversion of array literal containing struct with array literal (#2023).
  • Structs exported by the main file are always generated in native code (#594).

0.3.3 - 2022-12-16

Changed

  • Minimum rust version is now 1.64.

Added

  • Added support for declaring functions in the language.
  • Added support for re-exporting types from other files using export * from "./other_file.slint";.
  • LSP: highlight and renaming of element id.
  • online editor: Add zoom to the preview.
  • VSCode and online editor: Added UI to edit and remove property bindings.

Fixed

  • Fixed privacy rules in global properties. #1951
  • Fixed drawing of images with the software renderer.
  • Fixed visible property on element with drop shadow. #1460
  • Warn on bad use of ListView. #860
  • Fixed two way bindings between globals.
  • Fixed scrolling of preview area in online editor.
  • Fixed the CMake build to respect CMAKE_*_OUTPUT_DIRECTORY variables. #1979
  • Fixed build when using renderer-winit-skia-opengl on macOS or Windows.

0.3.2 - 2022-11-28

Changed

  • When using a two way binding foo <=> bar, the default value will always be the one of bar. There was a warning about this change in previous versions (#1394).
  • Disallow overrides or duplicated declarations of callbacks. Previously they were silently overwritten, now an error is produced.
  • The name init is now a reserved name in callbacks and properties.
  • In the interpreter, calling set_property or get_property on properties of the base returns an error.
  • Deprecated slint::WindowEvent and slint::PointerEventButton and moved them to the slint::platform module.
  • Renamed the Keys namespace for use in key-pressed/key-released callbacks to Key. The old name continues to work.
  • The style or the backend now always set a value for the Window's default-font-size property.
  • In the Rust API, the GraphicsAPI's NativeOpenGL variant uses a function signature for get_proc_address that takes a &std::ffi::CStr instead of a &str to match the native APIs and avoid unnecessary conversions.

Added

  • Added new material style based on Material Design, with material-light and material-dark as variants.
  • Added Window::is_visible in Rust and C++.
  • Added From<char> for SharedString in Rust.
  • Added KeyPressed and KeyReleased variants to slint::WindowEvent in Rust, along with slint::platform::Key, for use by custom platform backends.
  • Added support for the implicitly declared init callback that can be used to run code when an element or component is instantiated.
  • Properties can be annotated with in, out, in-out, or private.
  • Transitions can now be declared directly within the state.
  • Online editor: The property view can now edit properties.
  • LSP preview: When the cursor is on the name of an element, the element's location is highlighted in the preview.
  • LSP: Added a setting to change the style and the include paths.
  • VSCode extension: added the property view.
  • Added rem as unit that represents a relative font size and is multiplied with the Window.default-font-size when used.
  • Added relative-font-size as type that holds values of rem.

Fixed

  • Fluent style: SpinBox gets focus when buttons are clicked.
  • Software renderer: Fix drawing the background color.
  • Fix Rust code generation when comparing percentages (#1837).
  • Fix visible property in for and if (#1846).

0.3.1 - 2022-10-28

Changed

  • The property Window::background is now a brush instead of a color (allowing gradients).
  • Switch to yeslogic-fontconfig-sys from servo-fontconfig dependency. This allows for fontconfig to be a run-time dependency via dlopen.
  • Skia renderer: Improvements to text input.

Added

  • Added slint::FilterModel, slint::MapModel to the C++ API.
  • Added slint::SortModel to Rust and C++ API.
  • Added VecModel::extend and VecModel::extend_from_slice.
  • Online editor: Added "Properties" and "Outline" tabs.
  • Added initial support for input methods with pre-edit text.
  • Added a dark theme for the Fluent style, which is automatically selected if the system color scheme is dark.
  • Added fluent-light and fluent-dark as explicit styles to select a light/dark variant, regardless of the system color scheme setting.

Fixed

  • TextInput now shows the text mouse cursor.
  • In Flickable, added a small delay before passing the Press pointer event to the children.
  • Online editor: Fixed "go to definition" across files.
  • Fixed a panic in the slint compiler when visiting layout properties for loop analysis (#1659).
  • Fixed compilation error in the generated code (#1733, #1735).

0.3.0 - 2022-09-14

Breaking Changes

  • mod now works on any numeric type, not only integers.
  • Minimum rust version is now 1.60.
  • The "backend-gl-*" Rust crate features for configuring the GL renderer have been changed and split by renderer.
  • VecModel::remove now returns the removed element.
  • slint::invoke_from_event_loop and slint::quit_event_loop now return a Result.

Added

  • Added the platform module providing API to use slint on bare metal with a software renderer.
  • Added an experimental Skia renderer.
  • Button: Add a checkable property that turns the button into a toggle button. Use the new checked property to query whether the toggle button is pressed down or not.
  • Added support for slint::Window::set_position and slint::Window::position to set and get the placement of the window on the screen.
  • Added slint::Window::scale_factor() as getter to read the system device pixel ratio.
  • Added support for slint::Window::set_size and slint::Window::size to set and get the size of the window on the screen.
  • Added slint::Window::dispatch_event and slint::WindowEvent to be able to manually send a mouse or touch event to a window.
  • Added animation-tick().
  • SharedString implements std::fmt::Write and added slint::format!.
  • Image can now be rotated with the rotation-* properties.
  • Use docking widgets and integration of slint-lsp into the Online Code Editor.

Fixed

  • Fixed Ctrl+Backspace/Ctrl+Del not deleting words in text input elements.
  • Resizing of live-preview window in the IDE integrations.
  • Preferred size of the TabWidget in the fluent style take in account the size of the tabs (#1363).
  • Fixed cursor behavior when typing the Enter key at the end of a TextEdit (#1318).
  • Fixed a memory leak of images when using the GL backend.
  • Fixed starting and stopping slint::Timer from withing their callback (#1532).

0.2.5 - 2022-07-06

Changed

  • Interpreter: Implement TryFrom<Value> instead of TryInto for Value (#1258)

Added

  • Added the Model Adapters FilterModel and MapModel.
  • Added @radial-gradient(circle, ...)
  • Added read-only property to TextInput, TextEdit and LineEdit.
  • VSCode extension can be installed as a web extension. (eg, from https://vscode.dev)
  • LSP: completion of @ macros
  • LSP: completion of element that require an import
  • Basic accessibility support using the accessible- properties

Fixed

  • GL backend: Fixed animation sometimes not starting from input event (#1255)
  • C++ fix compilation when writing to the model data
  • Fix mouse exit events not triggered by scrolling a Flickable (#1107)

0.2.4 - 2022-05-09

  • Fixed crash when opening a native (Qt) ComboBox

0.2.3 - 2022-05-09

Fixed

  • Fixed crashes with the Qt backend in release mode. (#1230)
  • Fixed panic when drop-shadow is used in a ListView (#1233)
  • Fixed combining a brush and a color to always convert to brush, to avoid loosing gradient information (#1235)
  • Fixed properties not having the right default value when set by some states (#1237)
  • Fixed properties with multiples aliases, and default values.
  • Enable fontdb's fontconfig feature to fix finding some fonts (#1240)

0.2.2 - 2022-05-04

Changed

  • On wasm, the input event are handled via a hidden <input> element, allowing the keyboard to show on mobile platform
  • The size of the window is kept when reloading a window in the preview (instead of being reset to the preferred size)
  • Minimum rust version is now 1.59

Added

  • Support for keyboard focus with the tab key
  • Support more keyboard shortcut in the editing element
  • Added From<&str> and From<SharedString> to StandardListViewItem to make creation and modification of StandardListView's models easier.
  • Added on_close_requested function to Window to register callbacks that are emitted when the user tries to close a window.
  • Added VecModel::set_vec to replace the entire contents with new data.
  • Added a cache-rendering-hint boolean property that can be applied to any element, to hint to the renderer that it should cache the element and its children into a cached layer. This may speed up rendering of complex sub-trees if they rarely change.
  • The brighter and lighter functions also work on values of type brush.
  • Added a reset function to C++'s Model, Rust's ModelNotify and JS's ModelPeer
  • Added a row_data_tracked function to ModelExt (an extension to the Model trait)

Fixed

  • Fixed application of the opacity property evenly to child elements (#725).
  • Windows: Fixed font lookup of strings including several scripts (eg, containing asian characters)
  • Fixed PopupWindow in a repeater (#1113, #1132)
  • LSP: do not always resize the preview window to its preferred each time the code is modified

0.2.1 - 2022-03-10

Added

  • C++ interpreter API: added a Value::Value(int) constructor
  • Global singletons in .slint files may now refer to other global singletons
  • Added input-type property to TextInput and LineEdit that allows for characters to be replaced in password fields
  • The SpinBox widget now handles up and down key events

Fixed

  • TouchArea::has-hover is now properly set to false when the mouse leaves the window
  • Fixed some cases of panics with 'Constant property being changed'
  • Fixed Flickable animation
  • Better compilation error when selecting unknown styles
  • Fixed duplicated key event for some keys (such as tab) with the GL backend
  • Improved property optimizations by inlining some bindings and remove more unused properties

0.2.0 - 2022-02-10

This version changes some APIs in incompatible ways. For details how to migrate your application code, see the C++ migration guide as well as the Rust migration guide for the sixtyfps crate and for the slint-interpreter crate.

Changed

  • Minimum rust version is now 1.56
  • C++ compiler requires C++20
  • In the C++ interpreter API std::span is used for callbacks arguments, instead of sixtyfps::Slice
  • Model::row_data will now return a Option<T> / std::optional<T> instead of a plain T.
  • Model::model_tracker no longer has a default implementation.
  • The deprecated methods Model::attach_peer and ModelNotify::attach were removed.
  • The interpreter does not differentiate anymore between Value::Array and Value::Model everything is a Value::Model, which now contains a ModelRc
  • In Rust, slint::SharedPixelBuffer and slint::SharedImageBuffer now use a u32 instead of usize for width, height and stride.
  • In Rust and C++, slint::Image::size() now returns an integer size type.
  • sixtyfps::interpreter::CallCallbackError was renamed to slint::interpreter::InvokeCallbackError
  • Some deprecation warning in .60 became hard errors
  • Replace ModelHandle with ModelRc
  • slint::interpreter::ComponentInstance in Rust now implements slint::ComponentHandle. This removes sixtyfps_interpreter::WeakComponentInstance in favor of slint_interpreter::Weak<slint_interpreter::ComponentInstance>.
  • For the Rust API crate, the Rust Interpreter API crate, the backend-gl, x11, and wayland features were renamed to backend-gl-all, backend-gl-x11, and backend-gl-wayland.
  • For the C++ CMake interface, the SIXTYFPS_BACKEND_GL, SIXTYFPS_FEATURE_X11, and SIXTYFPS_FEATURE_WAYLAND options were renamed to SLINT_BACKEND_GL_ALL, SLINT_FEATURE_BACKEND_GL_X11, and SLINT_FEATURE_BACKEND_GL_WAYLAND.
  • The animation loop-count property was replaced by iteration-count (which is the same as loop-count plus one)

Added

  • TextEdit::font-size and LineEdit::font-size have been added to control the size of these widgets.
  • Added slint::Window::set_rendering_notifier to get a callback before and after a new frame is being rendered.
  • Added slint::Window::request_redraw() to schedule redrawing of the window contents.

Fixed

  • Models initialized from arrays are now also mutable when run in the interpreter.
  • Fixed compilation error when accessing object members of array through the array index syntax

0.1.6 - 2022-01-21

Changed

  • Breaking: The internal key code for the keys left, right, home and end has changed. This was undocumented, but if you were handling this in the FocusScope event, these keys will now be ignored. Use the Keys.LeftArrow and other code exposed in the Keys namespace instead.
  • For sixtyfps::Timer (C++ and Rust), it's now possible to call restart() after a timer has been stopped previously by calling stop().
  • Property access in .60 was optimized by doing more constant propagation.

Added

  • Color names can now be accessed through the Colors namespace (in .60).
  • Math function are now available through the Math namespace (in .60).
  • TouchArea gained a mouse-cursor property to change the mouse cursor.
  • C++: Added SIXTYFPS_VERSION_MAJOR/SIXTYFPS_VERSION_MINOR/SIXTYFPS_VERSION_PATCH version macros.
  • More special keyboard key codes are provided in the FocusScope, and special keys are handled
  • start(), stop(), running() and a default constructor for C++ sixtyfps::Timer
  • Added math functions log, and pow.
  • Property animations now have a delay property, which will delay the start of the animation. Use this to create sequential animations.
  • Rust: Added sixtyfps::VecModel::insert(&self, index, value).
  • C++: Added sixtyfps::VecModel::insert(index, value).
  • Added ability to access elements of a model with the [index] syntax.

Fixed

  • Memory leak in C++.
  • Native style: Colors are updated automatically when the Windowing system switches to and from dark mode (#687)
  • Ctrl/Command+X in text fields copies the selected text to the clipboard and deletes it (cut).
  • Improved native ComboBox look.
  • Fixed panics or compilation error when using two way bindings on global properties.

0.1.5 - 2021-11-24

Changed

  • The sixtyfps compiler no longer "inline" all the elements, resulting in faster compilation time and smaller binaries.
  • Implemented basic constant propagation in the sixtyfps compiler

Fixed

  • The Slider's changed callback was not being called with the fluent style (#621).
  • Fixed compilation error in C++'s sixtyfps::blocking_invoke_from_main_loop when the callable returns void (#623).
  • Improve rendering quality on High-DPI screens on Windows when using Qt.
  • Fixed linking errors when selecting the native style on Windows with C++.
  • Fixed the maximization button in the window decoration when a window has a fixed size.

0.1.4 - 2021-10-22

Changed

  • The TouchArea now grabs the mouse for every button instead of just the left button.
  • The ScrollView's default viewport size is no longer hardcoded to 1000px but depends on the contents.
  • In Rust, the sixtyfps::Model trait deprecates the attach_peer function in favor of model_tracker, where all you need to do is return a reference to your sixtyfps::ModelNotify field.

Added

  • Enable support for compressed SVG (.svgz).
  • Viewer: added possibility to set shell callback handler with --on <callback> <handler>.
  • It is now possible to query the length of a model with .length.

Fixed

  • Fixed the PointerEvent.kind always being down.
  • LineEdit.has-hocus with the native style

0.1.3 - 2021-10-06

Changed

  • Due to changes in the build system, the C++ build now requires CMake >= 3.19.
  • Fluent style: The Slider and ScrollBar now updates as the mouse moves.
  • Parentheses around callable expression is now deprecated.
  • Naming a callback without calling it is now a hard error instead of producing error in the generated code.

Added

  • New no-frame property of a Window which changes it to borderless/frameless
  • sixtyfps-compiler and slint-viewer can read the .60 file content from stdin by passing -
  • slint-viewer gained ability to read or save the property values to a json file with --save-data and --load-data
  • New StandardButton widget
  • New Dialog element
  • sixtyfps::Image has now a path() accessor function in Rust and C++ to access the optional path of the file on disk that's backing the image.
  • New moved and pointer-event callback in TouchArea
  • New AboutSixtyFPS widget

Fixed

  • Fixed panic when using TabWidget with Text elements and the native style.
  • Fixed panic when calling hide() on a sixtyfps::Window from within a callback triggered by keyboard/mouse input when using the GL backend.
  • Rust: The implementation of ModelModel::set_row_data now forward the call to the inner model

0.1.2 - 2021-09-09

Changed

  • Apply the default text color from the style for the color of Text and TextInput elements, to contrast correctly with the application of Window's background property.
  • LineEdit scrolls to keep the cursor visible
  • The clicked callbacks are now only emitted if the release event is within the TouchArea's geometry
  • parentheses around the condition are no longer needed in if elements: if condition : Foo { ... }

Added

  • One can now set an alias from the root to a global callback
  • It is now possible to access properties and callback of exported global objects from the native code (#96)
  • C++ API: blocking_invoke_from_event_loop: a blocking version of invoke_from_event_loop
  • TextInput can support multiple line by setting single-line to false
  • The CMake integration now allows enabling/disabling SixtyFPS library features, such as Wayland support or the dynamic run-time interpreter.
  • Added image-rendering property to Image to control how the image is scaled
  • TextEdit widget
  • Support for semantic tokens in LSP

Fixed

  • The interpreter API correctly return an error instead of panicking when setting properties or calling callbacks that don't exist
  • The has-hover property is correctly reset the false when releasing the mouse outside the touch area

0.1.1 - 2021-08-19

Changed

  • Fixed lookup scope when resolving model expression in for or if constructs: the self element now refers to the correct element instead of the root.
  • Rust: default to the native style if Qt is available
  • Rust: deprecated SharedVector::as_slice_mut(). Use SharedVector::make_mut_slice() instead.
  • The default non-native widget style is now the new "fluent" style.
  • The internal normalization of identifiers is using - instead of _, this is an internal change, but it can be seen in error messages. When listing properties the identifiers are preserved. For fields in structures they are normalized.
  • Show a compilation error when there are duplicated element ids.
  • The clip property can now be any expression.

Added

  • ComboBox now has a selected callback.
  • Window now has an icon property.
  • Added sixtyfps::Weak::upgrade_in_event_loop in the Rust API.
  • Added sixtyfps::Model::as_any() in the Rust API.
  • Added conversion between sixtyfps::Image and sixtyfps::interpreter::Value in the C++ API.
  • Properties of type angle and duration are allowed in the public API.
  • Every element now has a visible property.
  • Slider now has a changed callback.
  • Added TabWidget widget.
  • Rust: sixtyfps::Image can now be constructed from image data provided by sixtyfps::SharedPixelBuffer. This enables integrating with other low-level software rendering or the the popular Rust image crate.
  • VSCode extension: added an option to specify command line arguments for the LSP.

Fixed

  • GridLayout cells with colspan and rowspan respect properly their constraints.
  • Don't panic when replacing programmatically text in a TextInput and then editing it.
  • The default height of elements in a ListView no longer defaults to 100%.
  • Fixed support for *= and /= on types with unit such as length.
  • Don't panic when using a self assignment operator on an invalid type - this produces a compiler error instead.
  • Fixed angle conversion for values specified in radians, gradians and turns.
  • Fixed SharedVector sometimes not allocating big enough storage.

0.1.0 - 2021-06-30

Changed

  • Layouts are now conceptually their own elements, meaning that the x and y properties of items within layouts are relative to the layout and no longer to the parent element of layouts.
  • The default spacing and padding of layouts is now 0 instead of being specific to the style. There are now HorizontalBox, VerticalBox, GridBox widgets which have default spacing and padding.
  • Setting the window height and width properties results in a fixed size. The preferred-width and preferred-height property can be used to set the initial size and the window remains resizable by the user, if the window manager permits.
  • Binding loops are now detected at compile-time instead of panic at runtime.
  • The viewer binary was renamed to slint-viewer and is now available via cargo install from crates.io.
  • The layout properties minimum-width, maximum-height, etc. were renamed to a shorter version min-width, max-height. The old names are still supported as a deprecated alias.

Added

  • Warnings are now shown in the online code editor.
  • sixtyfps::invoke_from_event_loop was added to the C++ and Rust APIs, to run a function in the UI thread from any thread.
  • sixtyfps::run_event_loop() and sixtyfps::quit_event_loop() were added to the Rust and C++ APIs to start and quit the main event loop.
  • z property on items.
  • The type in two-way bindings can now be omitted.
  • It's possible to declare aliases for callbacks (callback clicked <=> other.clicked;)
  • abs() function to get the absolute value
  • The root element of an if or for can be given a name (if (condition) name := Rectangle {})
  • sixtyfps::Image is a new type in the public Rust and C++ API to load images from a path.
  • The width and height of images is now accessible via the widthor height of an image type property in .60 files (some-image.source.width)

Fixed

  • Fixed Mouse wheel to work on the Flickable element and derivatives.
  • Fixed generated C++ code on Windows.
  • Calling debug(...) no longer breaks the LSP.
  • ComponentDefinition::properties only exposes public properties as documented.
  • Many more bugfixes

0.0.6 - 2021-04-27

Changed

  • Rectangle::color was deprecated and replaced by Rectangle::background, same for Window::color
  • Path::fill-color was renamed to fill, and Path::stroke-color was renamed to stroke, which are now brushes instead of color
  • Many other color property became brush in order to support gradients
  • the resource type was renamed to image
  • Calling a callback is done from C++/Rust with invoke_<name> instead of call_<name>

Added

  • @linear-gradient can be used to have gradients on rectangle and paths
  • Image::colorize allows to apply a color filter on image
  • 0 can be converted to anything with units
  • Support power of unit in intermediate expression. (eg: 3px * width / height is now supported but used to be an error)
  • Support for else if
  • The path fill rule can now be specified using Path::fill-rule.
  • Support for letter-spacing in Text/TextInput elements.
  • rgb() / rgba()
  • Layout in Flickable
  • LSP server with Live Preview and basic auto completion
  • The viewer tool gained the --auto-reload argument
  • Window.default-font-weight
  • Added opacity property that can be applied to elements
  • Added clip property in Rectangle, including clipping for rounded rectangle
  • API to load dynamically .60 files from C++ and Rust, including a way to embed sixtyfps widgets in Qt applications
  • Preferred size in Layouts
  • Math functions such as sin, cos, sqrt, ...
  • New printer demo design
  • Ability to load custom fonts using import statements

Fixed

  • Image::image-fit's cover and contains variant are fixed to match the CSS spec
  • Flickable without scrollbar
  • Multiplying and dividing different units.
  • Many more bugfixes

0.0.5 - 2021-01-29

Changed

  • Renamed "signal" to "callback"
  • And calling a callback is done from C++/Rust with call_<name> instead of emit_<name>
  • Renamed "SharedArray" to "SharedVector" in the C++/Rust API
  • Renamed Slider min and max property to minimum and maximum
  • The graphics rendering backend was changed to use femtovg or Qt
  • Renamed initial-focus to forward-focus as focus related property on elements
  • The "align-" prefix was removed from TextHorizontalAlignment and TextVerticalAlignment. Either change align-left to left or qualify with TextHorizontalAlignment.left.
  • img!"..." is replaced by @image-url("...")
  • $children is replaced by @children

Added

  • title property to the Window element
  • color property to the Window element
  • maximum/minimum properties to the SpinBox
  • strings can contain escape codes
  • FocusScope to handle key events
  • return statements
  • Text word wrap and elide
  • drop-shadow-* properties (limited to Rectangle at the moment)
  • Color.brighter / Color.darker
  • Window.default-font-family and Window.default-font-size

0.0.4 - 2020-12-14

Changed

  • Changed Rust build.rs API to use an opaque compiler configuration type
  • With Rust, image resources are embedded in the binary by default.
  • Updated winit version
  • Updated Neon Version

Fixed

  • Fixed animations sometimes stopping mid-way.
  • Fixed rendering of C++ components
  • Fixed disabled widgets

0.0.3 - 2020-12-09

Changed

  • In C++, the generated component is now wrapped by a ComponentHandle smart pointer that acts like std::shared_ptr. New instances are created using T::create().
  • In Rust, the generated component implements Clone and acts like an Rc. sixtyfps::Weak can be used to hold weak references.
  • ARGBColor was renamed RgbaColor
  • width and height` of some builtin elements now default to 100% of the parent element.

Added

  • Allow dashes in identifiers (#52)
  • VerticalLayout / HorizontalLayout
  • Placeholder text in LineEdit
  • global components (#96)
  • Clip element
  • ComboBox element
  • PopupWindow element
  • Image element: New source-clip-{x, y, width, height} properties
  • sixtyfps::Timer in Rust API
  • Transitions are now implemented
  • round/ceil/floor/mod/max/min/cubic-bezier functions
  • Signals can have return a value
  • has_hover property in TouchArea
  • font-weight property on Text
  • viewbox-x/y/width/height and clip properties for Path

0.0.2 - 2020-10-22

Changed

  • Default to the native style in the viewer, if available.
  • Changed the name of the common logical pixel unit from lx to px. The less often used physical pixel has now the phx suffix.

Added

  • Add support for more keyboard shortcuts to TextInput.
  • Added a current_item to StandardListView.
  • API cleanup in sixtyfps-node

Fixed

  • Fix occasional hang when navigating in TextInput fields with the cursor keys.
  • Fix access to aliased properties from within for and if expressions.
  • Fix ScrollView being scrollable when it shouldn't.
  • Fix appearance of natively styled scrollbars.
  • Allow converting an object type to another even if it is missing some properties.
  • Add missing frame drawing around ScrollView.
  • Fix Clipping in scroll views in WASM builds.
  • Fix resizing of ListView.
  • Many more bugfixes

0.0.1 - 2020-10-13

  • Initial release.