Commit Graph
100 Commits
Author SHA1 Message Date
Kyant0 9dcfa0aa8c Update banner 2025-09-16 23:28:12 +08:00
Kyant0 bf9b341c80 Add banner 2025-09-16 23:11:11 +08:00
Kyant0 79e69f8137 Emphasize the license 2025-09-16 17:14:13 +08:00
Kyant0 380b53c3f0 Bump to 1.0.0-alpha11 2025-09-16 15:50:37 +08:00
Kyant0 3e7f246dca Update code for old APIs to make it work 2025-09-16 15:44:52 +08:00
Kyant0 7049081d54 Rearrange sections 2025-09-16 15:04:34 +08:00
Kyant0 5313ad8939 Move previous docs to legacy docs 2025-09-16 15:01:58 +08:00
Kyant0 f190d314a8 Rename shaders 2025-09-16 12:08:55 +08:00
Kyant0 d3901e680c Coerce corner radius to safe value 2025-09-16 12:06:41 +08:00
Kyant0 84e7324cba Small clean 2025-09-16 11:17:34 +08:00
Kyant0 73bcce5cd8 Small clean 2025-09-16 11:16:49 +08:00
Kyant0 8785ad08ce Add docs link 2025-09-16 00:14:55 +08:00
Kyant0 2700c40514 Rename rememberLayerBackdrop with rememberBackdrop, add Modifier.contentBackdrop 2025-09-15 22:37:15 +08:00
Kyant0 7697b3bf97 Fix outline drawing 2025-09-15 19:54:13 +08:00
Kyant0 4ba62d75ea Fix wrong bottom tabs shape 2025-09-15 18:40:02 +08:00
Kyant0 be0972d81d Update default highlight falloff 2025-09-15 18:39:51 +08:00
Kyant0 de945ad2b5 Use Android APIs 2025-09-15 18:01:32 +08:00
Kyant0 f9ea321205 Add onDrawBehind 2025-09-15 12:57:54 +08:00
Kyant0 11f68a363b Add bottom tabs in catalog, delete glass music demo 2025-09-15 12:50:41 +08:00
Kyant0 016a140891 Update dispersion shader 2025-09-15 11:39:24 +08:00
Kyant0 29a733d547 Improve performance for refractionWithDispersion 2025-09-15 11:22:40 +08:00
Kyant0 8f4cbb3aa7 Update rounded rectangle SDF with four corner radius 2025-09-15 11:14:56 +08:00
Kyant0 27cbc2aa23 Simplify code 2025-09-15 00:43:52 +08:00
Kyant0 aef7990fb1 More bouncy control center 2025-09-14 23:50:07 +08:00
Kyant0 584ca32137 Fix crash for the negative blur radius 2025-09-14 23:26:35 +08:00
Kyant0 370cb51cb5 Add control center expanding gesture 2025-09-14 23:20:09 +08:00
Kyant0 256331232b Refactor Backdrop API to be more friendly to use. Add a catalog demo. 2025-09-14 22:50:17 +08:00
Kyant0 0a392ee43d Rename drawChild with drawBackdrop in Backdrop 2025-09-13 18:19:45 +08:00
Kyant0 2ce6910a99 Rename saturate with saturation 2025-09-13 17:28:28 +08:00
Kyant0 bbca9c23d4 New Backdrop API, deprecate liquid-glass module 2025-09-13 17:15:34 +08:00
Kyant0 3e66f84d9b Add new blur module 2025-09-13 11:14:56 +08:00
Kyant0 3eaf794064 Add new backdrop module 2025-09-13 10:23:13 +08:00
Kyant0 090374a06d New Backdrop API to replace LiquidGlassProviderState 2025-09-13 00:43:24 +08:00
Kyant0 118fee0b0a New BackdropDrawScope API to replace transformBlock and provide more flexible drawing.
To migrate, replace `scale(scaleX, scaleY, Offset.Zero)` with `scale(scaleX, scaleY, Offset.Zero) { this@liquidGlass.drawBackdrop() }`.

You can draw additional things on the glass with refraction effect.
2025-09-12 23:53:22 +08:00
Kyant0 93227fb6a7 New BackdropDrawScope API to replace transformBlock and provide more flexible drawing.
To migrate, replace `scale(scaleX, scaleY, Offset.Zero)` with `scale(scaleX, scaleY, Offset.Zero) { this@liquidGlass.drawBackdrop() }`.

You can draw additional things on the glass with refraction effect.
2025-09-12 23:52:13 +08:00
Kyant0 7f0c4b49e6 More bouncy bottom bar in music demo 2025-09-12 23:08:49 +08:00
Kyant0 e2f5f16fec More bouncy bottom bar in music demo 2025-09-12 23:07:06 +08:00
Kyant0 9202d30a43 Use delegating node 2025-09-12 22:35:47 +08:00
Kyant0 6305d83046 Mask out the shadow under the glass, the shadow won't affect transparent content. 2025-09-12 22:31:21 +08:00
Kyant0 c3c023dfcc Fix a small performance regression 2025-09-12 21:03:08 +08:00
Kyant0 dec4ce41f5 Fix #19 2025-09-12 20:47:34 +08:00
Kyant0 69be4233ea Fix #19 2025-09-12 20:42:32 +08:00
Kyant0 11f1575e67 Fix dispersion doesn't take effect in block modifier variant, extract common code 2025-09-12 14:41:47 +08:00
Kyant0 e9b69a6206 Don't cache highlight shader 2025-09-12 14:26:18 +08:00
Kyant0 2815d8d7ed Update highlight APIs 2025-09-12 14:21:11 +08:00
Kyant0 d07e755fd6 Update default highlight color and default material color filter 2025-09-12 14:07:34 +08:00
Kyant0 78d4393908 Update highlight shader algorithm 2025-09-12 13:51:46 +08:00
Kyant0 80562325cf Rename decay to falloff in GlassHighlight.Dynamic, update docs 2025-09-12 13:05:35 +08:00
Kyant0 3966c1be60 Add toggle for dispersion in playground app 2025-09-12 11:21:28 +08:00
Kyant0 e9da3e9238 Update dependencies 2025-09-12 10:53:29 +08:00
Kyant0 6504aabeef Add dispersion effect 2025-09-12 10:52:37 +08:00
Kyant0 52378a1d54 Update docs 2025-09-08 19:40:57 +08:00
Kyant0 5e4b0fb9b6 Update docs 2025-09-08 19:40:43 +08:00
Kyant0 054f8a9cb5 Update docs 2025-09-08 19:37:56 +08:00
Kyant0 7263d5d875 Use Float.dp instead of Int.dp 2025-09-08 14:27:16 +08:00
Kyant0 8bb42cdd47 Add simple modifier elements without observer to improve performance 2025-09-08 14:25:03 +08:00
Kyant0 9ffde7dc1e Remove LuminanceSampler APIs, don't cache too many things in modifier nodes 2025-09-08 14:07:17 +08:00
Kyant0 fd55f936e9 Update AGP to 8.13.0 2025-09-05 15:28:12 +08:00
Kyant0 0f63f35f55 Fix highlight update 2025-09-02 18:08:16 +08:00
Kyant0 28f28b9811 Fix default depth effect value 2025-09-02 17:53:44 +08:00
Kyant0 5c0514fe5b Add transformBlock param to liquidGlass modifiers 2025-08-21 09:51:51 +08:00
Kyant0 d1953995f9 Update dependencies 2025-08-21 09:47:02 +08:00
Kyant0 6bab19e863 Fix highlights can't be updated 2025-08-16 00:01:21 +08:00
Kyant0 5dad725354 Update dependencies to use stable version 2025-08-14 09:44:18 +08:00
Kyant0 866cf16436 Update shadow API to use drop shadow 2025-08-14 00:59:08 +08:00
Kyant0 90e7e2b525 Update unmodified brightness to 0f 2025-08-13 17:38:26 +08:00
Kyant0 aa4dbdf592 Fix DefaultColorFilter 2025-08-13 13:09:01 +08:00
Kyant0 aed978a04a Add new simpleColorFilter(brightness, contrast, saturation) function, deprecate saturationColorFilter(saturation) function
Update default color filter to `contrast = 1.5f, saturation = 1.5f`
2025-08-13 12:38:53 +08:00
Kyant0 bccee2895c Delete Compat.kt 2025-08-12 16:48:45 +08:00
Kyant0 f9aa572d6d Update default depth effect to 0f to match iOS 26 beta 6 2025-08-12 13:59:31 +08:00
Kyant0 84456cbe04 Remove all 3rd-party libraries in glassmusic demo, it doesn't depend on any UI libraries any more. Fixed #12 2025-08-09 15:28:49 +08:00
Kyant0 935693f852 Fix update of GlassShadow 2025-08-06 12:16:19 +08:00
Kyant0 721b48af40 Add GlassShadow, update default highlight to use Plus blend mode 2025-08-06 12:08:47 +08:00
Kyant0 2de499019b Reset GlassHighlightNode cache on detach, fixed #4 2025-08-04 18:32:21 +08:00
Kyant0 a0595c0af2 Update dependencies 2025-08-02 10:11:20 +08:00
Kyant0 f2ac217b07 Update LuminanceSampler API 2025-07-29 20:05:48 +08:00
Kyant0 f9688b348d Rename eccentricFactor to depthEffect 2025-07-29 19:38:03 +08:00
Kyant0 645a014c3b Remove experimental Kotlin API version declaration 2025-07-29 19:19:19 +08:00
Kyant0 93c2e6d171 Remove comparisons to reduce repo size 2025-07-29 19:15:15 +08:00
Kyant0 530bed05f8 Fix stability for LuminanceSampler 2025-07-28 14:36:34 +08:00
Kyant0 8046d6bf15 Update README.md 2025-07-28 14:28:59 +08:00
Kyant0 2ffff6f519 Add compositingStrategy param for Modifier.liquidGlass
When using glass in a scrollable container #4, it's more efficient to use `Auto`. In most cases it's  more efficient to use `Offscreen`.
2025-07-28 14:10:56 +08:00
Kyant0 1e9f309467 Rebuild demos 2025-07-28 13:36:45 +08:00
Kyant0 6697e2c587 Use CacheDrawModifierNode, fix issue #4 2025-07-28 13:31:08 +08:00
Kyant0 79e2615959 Fix demo 2025-07-28 12:14:44 +08:00
Kyant0 c2203e1f04 Completely refactored APIs, added a new demo 2025-07-28 11:58:08 +08:00
Kyant0 3df7722ecb Add Modifier.liquidGlass with LiquidGlassStyle block 2025-07-26 14:51:50 +08:00
Kyant0 e4140bd341 Update border API 2025-07-25 11:28:37 +08:00
Kyant0 f6cdde3950 Rebuild demo and library 2025-07-24 10:04:34 +08:00
Kyant0 c695c09683 Remove indentations for shaders 2025-07-24 09:45:48 +08:00
Kyant0 2dd252b936 Fix shaders 2025-07-24 09:19:32 +08:00
Kyant0 ea324f6d72 Update border API 2025-07-24 09:17:25 +08:00
Kyant0 1d305c0b76 Update border 2025-07-23 22:27:16 +08:00
Kyant0 042f5654b3 Refactor border API, optimize LiquidGlassStyle update performance 2025-07-23 11:54:58 +08:00
Kyant0 936f7a41e6 Update default style 2025-07-18 15:11:33 +08:00
Kyant0 ca842a016c Remove old license declarations 2025-07-18 14:48:54 +08:00
Kyant0 17584ce8a1 Add a demo image 2025-07-18 11:02:33 +08:00
Kyant0 99e159fc8d Update README.md 2025-07-18 10:40:29 +08:00
Kyant0 39fe48262f Upload new demo APK and library AAR 2025-07-18 10:32:49 +08:00
Kyant0 2b917ba5d6 Update README.md 2025-07-18 10:29:02 +08:00