acrylic_effect_with_source
function · ferroui-base · v0.5.0
fn acrylic_effect_with_source(should_brush_be_opaque: bool, use_cross_fade: bool, source: AcrylicBrushBackgroundSource, tint_color: crate::media::Color, luminosity_color: crate::media::Color, fallback_color: crate::media::Color) -> (crate::rendering::composition::effects::GraphicsEffect, Vec<&'static str>)
acrylic_effect for a background source. The host backdrop (WinUI 2's
window acrylic) is blurred by the platform behind the window, so it is
not blurred again; the compositor cannot read it, so the luminosity and
the tint are composed over it source-over (winui-materials.md,
deviations), the host backdrop brush first, so that it shows through the
window where the brush paints.
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.