From 27baa2034bdb0c5d6fc74d2ddd3c491524eccf31 Mon Sep 17 00:00:00 2001 From: Kyant0 Date: Tue, 26 May 2026 23:56:32 +0800 Subject: [PATCH] Pick PR #99 --- .../destinations/GlassPlaygroundContent.kt | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/app/src/commonMain/kotlin/com/kyant/backdrop/catalog/destinations/GlassPlaygroundContent.kt b/app/src/commonMain/kotlin/com/kyant/backdrop/catalog/destinations/GlassPlaygroundContent.kt index 2443f08..290bdc4 100644 --- a/app/src/commonMain/kotlin/com/kyant/backdrop/catalog/destinations/GlassPlaygroundContent.kt +++ b/app/src/commonMain/kotlin/com/kyant/backdrop/catalog/destinations/GlassPlaygroundContent.kt @@ -210,6 +210,32 @@ fun GlassPlaygroundContent() { style = TextStyle(Color.White, 15f.sp) ) } + + LiquidButton( + { + animationScope.launch { + launch { offsetAnimation.animateTo(Offset.Zero) } + launch { zoomAnimation.animateTo(1f) } + launch { rotationAnimation.animateTo(0f) } + } + cornerRadiusFrac = 0.5f + blurRadiusDp = 0f + refractionHeightFrac = 0.2f + refractionAmountFrac = 0.2f + chromaticAberration = 0f + }, + backdrop, + Modifier + .padding(20f.dp) + .navigationBarsPadding() + .align(Alignment.BottomEnd), + tint = Color(0xFFFF8D28) + ) { + BasicText( + "Reset", + style = TextStyle(Color.White, 15f.sp) + ) + } } } }