Skip to content

v0.5.0

Latest

Choose a tag to compare

@PoignardAzur PoignardAzur released this 03 Dec 14:16
0762143
Name Crates.io Docs
xilem Crates.io Docs
xilem_web Crates.io Docs
xilem_core Crates.io Docs
masonry Crates.io Docs
masonry_winit Crates.io Docs
masonry_testing Crates.io Docs
masonry_core Crates.io Docs

This release has an MSRV of 1.100.

This is a transitory release, with lots of small quality-of-life improvements.
We expect to make a more impactful release before the end of the year.

Highlights

Subwindows

Masonry now has "subwindows", which are graphical elements that display on top of everything else in the UI.

Subwindows can be persistent, or they can be "attached" to a widget, in which case they disappear when the widget does.

Current built-in subwindows include Selector for multi-options menus and Tooltip for hover tooltips. Tooltips are small text boxes by default, but Masonry provides the components to make anything into a tooltip.

Screenshot of Selector subwindow Screenshot of Tooltip subwindow

Property cascading

We've added a basic property cascading system, based on a new PropertyStack type.

Property cascading lets you set up a theme so that a widget has certain properties (e.g. a certain background color) by default, and a different properties when the widget is hovered, focused, clicked, etc.

While Masonry doesn't have a proper Light/Dark mode system yet, property cascading also lets you emulate one.

New layout system

Masonry has a new layout system, which works closer to CSS engines and gets us better compliance with the specs for Flex and Grid containers.

Widgets can now specify size constraints, and users can specify properties for widgets to force them to be a certain size.

The new system also reads some properties from all widgets by default such as background color, padding and corner radius, so that most widgets can display a background by default.

Masonry Testing uses Vello CPU

Masonry's testing harness now uses Vello CPU as its renderer. This has two major impacts:

  • Screenshot tests run much, much faster without the need to set up a WGPU context every time.
  • Screenshot tests are deterministic, and the screenshot tolerance parameter has been removed.

Gallery example

Masonry has a new gallery example which showcases our different widgets.

Screenshot of widget gallery

Changelog

Xilem

Masonry

Masonry and Xilem

Full Changelog: v0.4.0...v0.5.0