API reference
WindowBackdropMaterial
Paints deterministic, opaque Fluent window-material fallbacks.
No matching API members.
fluent::windowing::WindowBackdropMaterialOptions
Parameters for the app-painted Fluent window backdrop.
Methods
static WindowBackdropMaterialOptions forTheme(bool dark, const QColor& normalColor, const QColor& accentColor = QColor())Creates options populated with the built-in Mica and Acrylic tokens.
Fields
qreal devicePixelRatio = 0.0Device-pixel ratio used by the cached grain texture. Values less than or equal to zero are resolved from the painter's target device.
fluent::windowing::WindowBackdropMaterial
Methods
static void paint(QPainter& painter, const QRectF& rect, const WindowBackdropMaterialOptions& options)Paints the selected Normal, Mica, or Acrylic fallback into rect.
static void paintNormal(QPainter& painter, const QRectF& rect, const WindowBackdropMaterialOptions& options)Paints the opaque Normal/Solid window surface.
static void paintMica(QPainter& painter, const QRectF& rect, const WindowBackdropMaterialOptions& options)Paints the opaque, softly personalized Mica fallback.
static void paintAcrylic(QPainter& painter, const QRectF& rect, const WindowBackdropMaterialOptions& options)Paints the opaque Acrylic fallback with luminosity, tint, and grain.
static QColor opaqueBaseColor(const WindowBackdropMaterialOptions& options)Returns the guaranteed-opaque base color for the selected material.