MaterialSphere
The material sphere in the header row of a scene tree item (rendering-revamp §RVM-9, the owner, 2026-10-21).
| Inherits | QWidget |
In the namespace construct::ui. Declared in src/libs/libconstruct/construct/ui/MaterialSphere.hpp.
Detailed description
A square of one grid cell that shows the rendered sphere of a material. The sphere comes from the thumbnail worker (SDFThumbnailGenerator::requestMaterialPreview) and its cache. Until the render is ready, a sphere painted in the material's colors stands in.
A dimmed sphere paints at kDimmedOpacity: the item inherits the material. While the pointer stays on the sphere, a larger preview with the name and the meta of the material shows (MaterialHoverPreview). The host connects clicked() and doubleClicked().