Skip to content

Releases: chrisbanes/haze

2.0.0-alpha02

08 May 19:23

Choose a tag to compare

2.0.0-alpha02 Pre-release
Pre-release

See CHANGELOG.md for details.

2.0.0-alpha01

29 Apr 08:20

Choose a tag to compare

2.0.0-alpha01 Pre-release
Pre-release

Major architectural refactor introducing a pluggable visual effects system for improved modularity and extensibility.

Highlights

New VisualEffect Interface

Haze now uses a VisualEffect interface that separates the core effect infrastructure from specific effect implementations. This enables better separation of concerns, a smaller core module, and potential for custom visual effects in the future.

New haze-blur Module

All blur functionality has been extracted from the core haze module into a separate haze-blur module:

implementation("dev.chrisbanes.haze:haze:2.0.0-alpha01")
implementation("dev.chrisbanes.haze:haze-blur:2.0.0-alpha01")

New blurEffect {} API

All blur-related properties now require a blurEffect {} wrapper:

Modifier.hazeEffect(state = hazeState) {
  blurEffect {
    blurRadius = 20.dp
    colorEffects = listOf(HazeColorEffect.tint(...))
  }
}

Configurable HazePositionStrategy

New positionStrategy parameter on rememberHazeState() to control how effect positions are calculated, fixing split-window blur misalignment scenarios.

Breaking Changes

  • New module dependency: Blur functionality now requires the haze-blur module
  • API nesting: Blur properties (blurRadius, colorEffects, style, noiseFactor, progressive, mask, etc.) now require blurEffect {} wrapper
  • Package changes: Blur classes moved to dev.chrisbanes.haze.blur package
  • Removed APIs: rememberHazeState(blurEnabled) parameter removed (use blurEffect { blurEnabled = ... })
  • Internal API renames: create*ImageFilter functions renamed to create*RenderEffect
  • Dropped targets: iosX64 and macosX64 targets removed (Compose Multiplatform 1.11 deprecation)

Key Dependencies

  • Kotlin 2.3.20
  • Compose Multiplatform 1.11.0-alpha04

Migration

For detailed migration instructions, see the Migration Guide.

Full Changelog: 1.7.1...2.0.0-alpha01

1.7.2

10 Feb 22:05

Choose a tag to compare

What's Changed

Full Changelog: 1.7.1...1.7.2

1.7.1

24 Nov 09:57

Choose a tag to compare

What's Changed

Full Changelog: 1.7.0...1.7.1

1.7.0

10 Nov 19:37

Choose a tag to compare

Highlights

  • 🆕 forceInvalidateOnPreDraw parameter on HazeEffectScope (doc)
  • Optimized noise texture handling on Android
  • Only enable pre-draw listeners when we need to use them
  • This should be the last of the v1.x releases (barring any blocking issues which crop up).

Key dependencies

  • Kotlin 2.2.20
  • Compose Multiplatform 1.9.3
  • Jetpack Compose 1.9.4

What's Changed

New Contributors

Full Changelog: 1.6.10...1.7.0

1.6.10

13 Aug 18:55

Choose a tag to compare

What's Changed

Full Changelog: 1.6.9...1.6.10

1.6.9

18 Jul 06:50

Choose a tag to compare

What's Changed

Full Changelog: 1.6.8...1.6.9

1.6.8

14 Jul 20:57

Choose a tag to compare

What's Changed

Full Changelog: 1.6.7...1.6.8

1.6.7

06 Jul 19:42

Choose a tag to compare

What's Changed

Full Changelog: 1.6.6...1.6.7

1.6.6

28 Jun 10:29

Choose a tag to compare

What's Changed

Full Changelog: 1.6.5...1.6.6