API 参考
WindowBackdropMaterial
绘制确定性且最终不透明的 Fluent 窗口材质回退效果。
没有匹配的 API 成员。
fluent::windowing::WindowBackdropMaterialOptions
Fluent 窗口应用侧绘制背景所使用的参数。
方法
static WindowBackdropMaterialOptions forTheme(bool dark, const QColor& normalColor, const QColor& accentColor = QColor())创建已填充内置 Mica 与 Acrylic token 的参数。
字段
qreal devicePixelRatio = 0.0缓存颗粒纹理使用的设备像素比;小于等于零时从绘制目标自动解析。
fluent::windowing::WindowBackdropMaterial
方法
static void paint(QPainter& painter, const QRectF& rect, const WindowBackdropMaterialOptions& options)在 rect 内绘制所选的 Normal、Mica 或 Acrylic 回退材质。
static void paintNormal(QPainter& painter, const QRectF& rect, const WindowBackdropMaterialOptions& options)绘制不透明的 Normal/Solid 窗口表面。
static void paintMica(QPainter& painter, const QRectF& rect, const WindowBackdropMaterialOptions& options)绘制不透明、带轻微个性化色场的 Mica 回退材质。
static void paintAcrylic(QPainter& painter, const QRectF& rect, const WindowBackdropMaterialOptions& options)绘制带明度、tint 与颗粒层的不透明 Acrylic 回退材质。