🤖 Support for all versions of Android
Haze now supports blurring for all versions of Android, using RenderScript underneath. The new platforms documentation has all of the details.
renderscript.mp4
🎨 Foreground (content) blurring
Haze always been a library which enables background blurring. There are times where you need to blur the foreground content though, which Haze has always left to Modifier.blur
. With the addition of older Android support, and all of the other features Haze supports, it makes sense for Haze to support both scenarios. New in this release is foreground blurring (doc).
📐 Blurred edge treatment
With the addition of foreground blurring, the need to be able to customise how content is blurred at the edges is useful. This release contains a new blurredEdgeTreatment
on the effect scope, which works the same way as Modifier.blur
.
What's Changed
- Add RenderScript backed blur implementation by @chrisbanes in #590
- Remove the final withSaveLayer call by @chrisbanes in #601
- Add
HazeState.blurEnabled
by @chrisbanes in #602 - Update docs for 1.6.0 by @chrisbanes in #603
- Tidy up HazeProgressive drawing by @chrisbanes in #604
- Add new platform docs by @chrisbanes in #605
- Scale the noise texture appropriately by @chrisbanes in #613
- Add trace functions by @chrisbanes in #615
- Add support for content blurring by @chrisbanes in #616
- Fix masking for content blurring by @chrisbanes in #619
- Tweaks to Progressive support for RenderScript by @chrisbanes in #621
- Fix input scaled content being 1px smaller by @chrisbanes in #622
- Noise fixes for Android by @chrisbanes in #626
- Fix clamping blur effect on edges by @chrisbanes in #629
- Add blurredEdgeTreatment property by @chrisbanes in #625
- [RenderScript] Fix tint and noise size being incorrect by @chrisbanes in #632
- Compose Multiplatform 1.8.0 by @chrisbanes in #634
Full Changelog: 1.5.4...1.6.0