figma-inspector: drop shadows on unfilled frames no longer render
Since #13144, a Rectangle's drop shadow follows its painted shape: its fill and border.
A rectangle without a background or border casts no shadow, and the compiler warns: "Set a 'background' or border to cast a drop shadow; children don't contribute to it".
The Figma inspector still emits drop-shadow-* on elements that have no fill, so those shadows disappear:
appearanceSourceintools/figma-inspector/src/preview/converter-visual.tsadds the single outer shadow whether or not the node has a fill or stroke.shadowLayersSource(for several outer shadows) creates oneRectangleper shadow and only setsbackgroundwhen the node has a non-image fill.
tools/figma-inspector/fixtures/default-heavy.slint shows the result: nested Rectangles with drop-shadow-color and no background.
In Figma, a drop shadow on a frame without a fill is cast by its visible content, the children.
Slint has no equivalent for that, so the exporter needs a different mapping for this case.
For example, it could move the shadow onto the painted children, or emit a warning like MULTIPLE_SHADOW_CLIPPING_APPROXIMATED does today.
Source: slint-ui/slint