Add library initially, fix RTL

This commit is contained in:
Kyant0 committed 2025-06-22 18:24:06 +08:00
1 parent 9a98e714ed
commit bb5da8a81c
27 files changed
+1127 -330

No files matched your search

+38
View File
@@ -10,6 +10,44 @@ Download the app [here](./app/release/app-release.apk).
You mustn't use the shaders in the project for commercial purposes, they are only for educational purposes.
## Library
The library is under construction, use on your own risk.
It doesn't support nested glass effects for now.
### Examples
```kotlin
val providerState = rememberLiquidGlassProviderState()
CompositionLocalProvider(
LocalLiquidGlassProviderState provides providerState
) {
Box(
Modifier
.liquidGlassProvider(providerState)
)
Box(
Modifier
.liquidGlass(
remember {
LiquidGlassStyle(
shape = CornerShape.extraLarge,
blurRadius = 8.dp,
refractionHeight = 24.dp,
refractionAmount = (-64).dp,
whitePoint = 0.25f,
chromaMultiplier = 1.5f
// ...
)
}
)
)
}
```
## Glass parameters
| Parameter | Availability | Verification |