You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
privatefun Color.boostAlphaForBlurRadius(blurRadius:Dp): Color {
Expected Behavior
The tint color provided to Haze should not change implicitly or this logic could be replaced adhoc.
Actual Behavior
The color (alpha) is not as provided.
Motivation
Our theme demands completely different background colors for blur-ready and non-blur states. As we already use haze, we don't want to introduce this then if(blurAvailable) Modifier.hazeChild(...) else Modifier.background(...) style but rather decide this on the color scheme level. Currently, we overcome boosting behaviour by setting blur radius on the theme-level local providable, but this is very implicit logic.
The text was updated successfully, but these errors were encountered:
Information
Context
If blur is not supported (e.g. <=31), Haze applies additional transformation to the tint color provided – boosts alpha.
haze/haze/src/androidMain/kotlin/dev/chrisbanes/haze/AndroidHazeNode.kt
Line 239 in 53d2b70
Expected Behavior
The tint color provided to Haze should not change implicitly or this logic could be replaced adhoc.
Actual Behavior
The color (alpha) is not as provided.
Motivation
Our theme demands completely different background colors for blur-ready and non-blur states. As we already use haze, we don't want to introduce
this then if(blurAvailable) Modifier.hazeChild(...) else Modifier.background(...)
style but rather decide this on the color scheme level. Currently, we overcome boosting behaviour by setting blur radius on the theme-level local providable, but this is very implicit logic.The text was updated successfully, but these errors were encountered: