Fix RefractionValue.Full and .Half
This commit is contained in:
1 parent
5b08eb90d4
commit
8ecc63ed6c
5 files changed
+4
-5
No files matched your search
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -28,9 +28,8 @@ fun rememberLiquidGlassProviderState(): LiquidGlassProviderState {
|
||||
}
|
||||
}
|
||||
|
||||
class LiquidGlassProviderState
|
||||
internal constructor(
|
||||
internal val graphicsLayer: GraphicsLayer,
|
||||
class LiquidGlassProviderState internal constructor(
|
||||
internal val graphicsLayer: GraphicsLayer
|
||||
) {
|
||||
|
||||
internal var rect: Rect? by mutableStateOf(null)
|
||||
|
||||
@@ -31,7 +31,7 @@ sealed interface RefractionValue {
|
||||
data object Full : RefractionValue {
|
||||
|
||||
override fun toPx(density: Density, size: Size): Float {
|
||||
return -size.minDimension / 2f
|
||||
return -size.minDimension
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ sealed interface RefractionValue {
|
||||
data object Half : RefractionValue {
|
||||
|
||||
override fun toPx(density: Density, size: Size): Float {
|
||||
return -size.minDimension / 4f
|
||||
return -size.minDimension / 2f
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user