Xilem 0.5.0 and Masonry 0.5.0 release
Olivier Faure, December 3, 2026
We have released Xilem v0.5.0 and Masonry v0.5.0.
Masonry is the widget system developed by Linebender. It provides a non-opinionated retained widget tree, designed as a base layer for high-level GUI frameworks.
Xilem is our flagship GUI project, inspired by SwiftUI, which uses Masonry for its widgets. It lets you build user interfaces declaratively by composing lightweight views together, and will diff them to provide minimal updates to a retained layer.
Notable changes
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.
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.


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.

Changelog
Xilem
- #1868 fix(xilem_masonry): insert ZStack elements at splice index (@Hobr)
- #1822 xilem: WindowView::with_default_properties for runtime theme swap (@mark-ik)
- #1830 Adds initial Linux-specific window attributes (@crutchcorn)
- #1831 Apply default font to fix number rendering in fontconfig environments (@crutchcorn)
- #1801 docs: document running Android examples with cargo-apk (@SAY-5)
- #1783 feat:
app.with_on_start()function (@l0uisgrange) - #1782 feat:
WindowOptionsfor macOS (@l0uisgrange) - #1772 feat:
label()letter/word spacing (@l0uisgrange) - #1776 Add option to set default base color to Xilem apps (@RagibHasin)
- #1683 Check keep_running after Action state mutations (@backkem)
- #1673 Expose some Label widget options from Label view (@RagibHasin)
- #1672 Expose Portal widget options form Portal view (@RagibHasin)
- #1644 xilem_web: Pass
Statetoafter_buildandafter_rebuildmethods (@flosse) - #780 xilem_web: Add open and save file example (@flosse)
- #1520 Fix Portal view internals (@PoignardAzur)
- #1503 Split off code into new
xilem_masonrycrate (@PoignardAzur) - #1507 Write guidelines for writing Xilem doc examples (@PoignardAzur)
- #1488 Rename map_message to map_message_result and add some documentation. (@PoignardAzur)
- #1500 Remove
ViewCtx::state_changed(@PoignardAzur) - #1505 Accept state in initializer of
taskview of Xilem (@RagibHasin) - #1486 Remove unused
AsyncCtxandPhantomViewtraits (@PoignardAzur) - #1479 Use
SystemUifor labels in Xilem by default (@DJMcNab) - #1476 Use random view ids for more views (@DJMcNab)
- #1470 Rename MessageContext to MessageCtx (@PoignardAzur)
- #1471 Lift common
Viewwrappers to xilem-core (@RagibHasin) - #1443 Add Xilem controls to edit text views' size. (@PoignardAzur)
Masonry
- #1895 Add RenderRootSignal::UnhandledTextEvent - #1895 (@PoignardAzur)
- #1894 Add scene validation to paint pass (@PoignardAzur)
- #1889 Add Masonry tooltip events (@PoignardAzur)
- #1888 Remove PaintLayerMode and LayerCollector (@PoignardAzur)
- #1884 Have TestHarness methods use WidgetTag instead of WidgetId (@PoignardAzur)
- #1880 Add SubwindowId type (@PoignardAzur)
- #1873 Fix Selector menu to use attached subwindows (@PoignardAzur)
- #1854 masonry: Add
RenderRoot::scale_factorand wire up scale factor inTestHarness(@tomcur) - #1853 masonry: Fix crash when adding children during pointer event handling (@tomcur)
- #1839 Remove screenshot tolerance from tests (@Una539)
- #1832 Fix TextInput placeholder invisible to assistive technologies (@Stasshe)
- #1821 masonry: allow swapping tree-wide default properties at runtime (@mark-ik)
- #1798 MacOS: Present next frame in single CATransaction when resized from bottom left (@noelgbl)
- #1806 Remove
ComposeCtx::needs_compose. (@xStrom) - #1804 Make scale factor more widely accessible. (@xStrom)
- #1807 Remove
Ctx::window_origin. (@xStrom) - #1808 Rename
WidgetState::paint_insetstopaint_box_insets. (@xStrom) - #1773 Make Scrollbar auto-hideable (@RagibHasin)
- #1791 Add
Rectsupport forObjectFit::affine. (@xStrom) - #1771 Make Scrollbar collapse when not hovered (@RagibHasin)
- #1769 Fix Parley glyph y-offset rendering (@waywardmonkeys)
- #1762 Add TestHarness::redraw method (@PoignardAzur)
- #1763 Change TestHarness's window_size argument to be PhysicalSize (@PoignardAzur)
- #1739 Switch masonry_testing to using vello_cpu and tweak screenshot defaults (@PoignardAzur)
- #1743 Add
NewWidget::with_erased_tag()method (@PoignardAzur) - #1706 Add
Paginationwidget. (@xStrom) - #1551 Fix jittering during window resize on MacOS for WGPU/Metal (@noelgbl)
- #1697 radio button: Don't stroke the border twice (@waywardmonkeys)
- #1690 Add
LayoutCtx::child_is_stashedmethod (@PoignardAzur) - #1677 Add
actionpass. (@xStrom) - #1676 Add
Svgwidget. (@xStrom) - #1668 Use PropertySet type in more places (@PoignardAzur)
- #1678 Use glob imports in
theme.rs(@PoignardAzur) - #1671 Improve baseline support across all widgets. (@xStrom)
- #1591 Add Selector layer (@PoignardAzur)
- #1675 Make
ObjectFitmore generally useful and fixMinContent. (@xStrom) - #1663 Add concept of "attached layers" to Masonry (@PoignardAzur)
- #1674 Fix alignment of oversized children. (@xStrom)
- #1670 Fix Slider widget not working with non-mouse pointers (@RagibHasin)
- #1654 Add
StepInputwidget. (@xStrom) - #1659 Add
Widget::propagates_pointer_interactionmethod. (@PoignardAzur) - #1665 Improve
Labeltext layout caching. (@xStrom) - #1661 Add
Update::FontsChanged. (@xStrom) - #1660 Add CollapsePanel and DisclosureButton widgets (@PoignardAzur)
- #1647 Give focus to TextArea when clicking TextInput padding (@PoignardAzur)
- #1648 Allow bubbling of events targeting disabled widgets. (@PoignardAzur)
- #1641 Add
Dividerwidget. (@xStrom) - #1607 Implement borders in Masonry Core. (@xStrom)
- #1593 Implement
Backgroundin Masonry Core. (@xStrom) - #1606 Implement
Paddingin Masonry Core. (@xStrom) - #1630 Add an initial widget gallery for Masonry (@waywardmonkeys)
- #1632 Add
TestHarness::print_render_snapshot()method (@PoignardAzur) - #1633 Add
TestHarness::accessibility_click_on()method (@PoignardAzur) - #1622 Redefine
WidgetState::paint_rect. (@xStrom) - #1619 Remove
WidgetState::layout_rect. (@xStrom) - #1615 Fix scrolling a nested child into view. (@xStrom)
- #1618 Fix various widget baselines. (@xStrom)
- #1616 Simplify
Flexbaseline calculation. (@xStrom) - #1617 Fix baseline pixel snapping. (@xStrom)
- #1596 masonry: add keyboard + accessibility scrolling for Portal/ScrollBar (@waywardmonkeys)
- #1608 masonry: improve Slider accessibility metadata (@waywardmonkeys)
- #1604 masonry_winit: Remove window ID from on_wgpu_ready (@waywardmonkeys)
- #1595 Add
Property::matchesmethod. (@xStrom) - #1600 masonry_winit: allow configuring WGPU device request (@waywardmonkeys)
- #1590 Implement
BoxShadowin Masonry Core. (@xStrom) - #1586 masonry_winit: add AppDriver::on_wgpu_ready callback (@waywardmonkeys)
- #1587 Fix
Portalscrollbar rendering. (@xStrom) - #1541 Add Tooltip layer (@PoignardAzur)
- #1584 Add
NewWidget::new_with. (@xStrom) - #1580 Fix
Splitbar area. (@xStrom) - #1583 Disable pointer scroll in
Portalwhen constrained. (@xStrom) - #1564 Add
Sanitizeutil trait. (@xStrom) - #1571 Make
WidgetId::next()private and remove most uses. (@PoignardAzur) - #1568 Add fallback when creating ClipboardContext (@PoignardAzur)
- #1559 Add runtime benchmark to Masonry (@PoignardAzur)
- #1558 Add Masonry logo (@PoignardAzur)
- #1529 Refactor
WidgetTagcode and addWidgetTag::unique. (@PoignardAzur) - #1526 Implement
Into<BrushRef>forBorderColor. (@PoignardAzur) - #1513 Add
WidgetMut::id. (@xStrom) - #1502 Add
swap_childrento collection widgets. (@xStrom) - #1494 Add efficient child replacement methods to widgets. (@xStrom)
- #1454 Add test_property_set (@PoignardAzur)
- #1449 Add root padding parameter to TestHarness (@PoignardAzur)
- #1441 masonry: Use
ui-eventsfrommasonry_core(@waywardmonkeys)
Masonry and Xilem
- #1892 Remove VariableLabel (@PoignardAzur)
- #1890 Add widget timers to Masonry and use them for delayed UI behavior (@PoignardAzur)
- #1870 Rename concept of Layer to Subwindow (@PoignardAzur)
- #1842 feat(masonry): property stack mutations (@tonymushah)
- #1826 feat: emit TextAction::Cancelled on Escape key press and expose on_escape callback for TextInput (@phamsongnewl)
- #1796 Migrate VirtualScroll onto
understory_virtual_list(@RagibHasin) - #1788 Migrate all logical pixel
Propertyvalues toLength. (@xStrom) - #1787 Change widget local coordinates to logical pixels. (@xStrom)
- #1764 Rename HasProperty to UsesProperty (@PoignardAzur)
- #1742 Add a bunch of Debug impls (@PoignardAzur)
- #1729 Move changed_properties from Masonry to Xilem (@PoignardAzur)
- #1712 Refactor NewWidget constructors (@PoignardAzur)
- #1708 Add Xilem view for
Svg. (@xStrom) - #1709 Add Xilem view for
CollapsePanel. (@xStrom) - #1691 Refactor properties to implement cascading (@PoignardAzur)
- #1707 Add Xilem view for
Divider. (@xStrom) - #1696 masonry: author paint with
imagingPainterinstead ofvello::Scene(@waywardmonkeys) - #1662 Add radio buttons (@PoignardAzur)
- #1667 Rename "Properties" to "PropertySet" (@PoignardAzur)
- #1635 masonry: badges + badged overlays (@waywardmonkeys)
- #1651 Refactor how Xilem handles async actions (@PoignardAzur)
- #1655 Add
decorativeoption for Images with no accessibility node (@PoignardAzur) - #1652 Implement From for all enum types on
Background(@MSILycanthropy) - #1645 Implement
CloneforProperties. (@xStrom) - #1636 Implement border and padding layout in Masonry Core. (@xStrom)
- #1611 masonry: add Switch widget (@waywardmonkeys)
- #1602 masonry: improve Split interaction + add playground example (@waywardmonkeys)
- #1588 Move generic box properties to core. (@xStrom)
- #1579 Remove pixel rounding from
Split. (@xStrom) - #1578 Clean up
Splitwidget. (@xStrom) - #1560 Add a new layout system. (@xStrom)
- #1565 Move
LengthandAsUnittomasonry_core. (@xStrom) - #1519 Add Canvas widget (@Philipp-M)
- #1534 Have Masonry import
kurbo::Axis. (@PoignardAzur) - #1527 Add
Gapproperty toFlexandGrid(@PoignardAzur) - #1528 Add alt-text to Image widget (@PoignardAzur)
- #1510 Add
CollectionWidgetand implement it for collection widgets. (@xStrom) - #1504 Fix
TextInputplaceholder text alignment (@eliheuer) - #1497 Standardize widget child management methods. (@xStrom)
- #1492 Create FocusedBorderColor property (@PoignardAzur)
- #1493 Allow replacing children in all widgets. (@xStrom)
- #1491 Remove duplicate flag updates. (@xStrom)
- #1482 Add
Passthroughwidget and use it for XilemAnyView(@PoignardAzur) - #1440 Resize observer, for getting an update when the size of a widget changes (@DJMcNab)