Commit Graph
95 Commits
Author SHA1 Message Date
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
Kyant0 35cbb035e8 Mark stability manually 2025-07-18 10:23:37 +08:00
Kyant0 ced198cc35 Fix blur edge treatment 2025-07-18 10:23:21 +08:00
Kyant0 8cbd2ac1b8 Update dependencies 2025-07-18 10:06:41 +08:00
Kyant0 421ec0e341 Start publishing AAR library 2025-07-14 13:30:27 +08:00
Kyant0 19051076cd Huge API refactor of modifiers 2025-07-14 13:29:04 +08:00
Kyant0 3d397744b9 Fix LiquidGlassModifierNode won't update UI 2025-07-14 13:13:58 +08:00
Kyant0 e9b55f7a24 Migrate modifiers to Modifier.Node 2025-07-09 14:58:47 +08:00
Kyant0 8ecc63ed6c Fix RefractionValue.Full and .Half 2025-07-07 21:52:43 +08:00
Kyant0 5b08eb90d4 Huge API refactor of LiquidGlassStyle 2025-07-07 21:30:07 +08:00
Kyant0 f8877b97ec Update default value of lightSourceDecay 2025-07-07 10:22:29 +08:00
Kyant0 9e9bcd9d18 Add lightSourceAngle and lightSourceDecay API 2025-07-07 10:11:33 +08:00
Kyant0 e322ba4ded Update border color 2025-07-06 20:55:58 +08:00
Kyant0 abee093c01 Add border API, update border style 2025-07-05 20:24:19 +08:00
Kyant0 4e2c1a10cb Update dependencies 2025-07-04 13:59:56 +08:00
Kyant0 27eecdec86 agp = "8.11.0", rename library module to liquid-glass 2025-06-28 21:35:20 +08:00
Kyant0 ed19f77130 kotlin = "2.2.0" 2025-06-24 10:28:16 +08:00
Kyant0 6082a468f6 Update border 2025-06-23 20:40:54 +08:00
Kyant0 9a1421c1d8 Add border to preview, improve readability 2025-06-23 00:54:57 +08:00
Kyant0 bb5da8a81c Add library initially, fix RTL 2025-06-22 18:24:06 +08:00
Kyant0 9a98e714ed Update README features photo 2025-06-22 14:56:05 +08:00
Kyant0 e57cc62db2 Update README features photo 2025-06-22 14:53:52 +08:00
Kyant0 dc0632c71a Add "download app" in README 2025-06-21 19:00:36 +08:00
Kyant0 2d21396023 Add new parameter: contrast, white point, removed opacity. Update shader: bleed 2025-06-21 18:57:47 +08:00
Kyant0 3909d3f72f Add "Star history" section in README 2025-06-21 17:28:39 +08:00
Kyant0 32511180e0 Apply blur before bleed to fix blinking issue 2025-06-21 13:54:40 +08:00
Kyant0 caa3acb47a Update APK 2025-06-21 12:56:12 +08:00
Kyant0 508848bca5 Update shader: bleed 2025-06-21 12:30:58 +08:00
Kyant0 e38de3b375 Add new glass parameter: bleed amount 2025-06-21 00:44:49 +08:00
Kyant0 758b909c70 Update shader: bleed 2025-06-20 17:38:37 +08:00
Kyant0 2f375facc9 Intercept pointer input in ConfigurationBottomSheet 2025-06-20 15:47:30 +08:00
Kyant0 6dd080078b Add unsafe values mode to enable broader input range 2025-06-20 15:39:48 +08:00
Kyant0 2391aef5bf Add new glass parameter: bleed opacity 2025-06-20 15:27:31 +08:00
Kyant0 f3d8551963 Add comparisons: unsafe values 2025-06-20 13:03:19 +08:00
Kyant0 6e3f5f82a9 Allow more unsafe value range 2025-06-20 12:54:38 +08:00
Kyant0 df1a7feb87 Update shader to match Apple's effect
Coerce cornerRadius * 1.5
2025-06-20 12:37:47 +08:00
Kyant0 0aa70ad5fa Update shader to match Apple's effect
1. Coerce cornerRadius * 1.5 <= sizeMinDimension

But why Apple doesn't also coerce cornerRadius <= sizeMinDimension?

2. Update `gradSdRoundedRectangle` to use analytical solution
2025-06-20 12:13:02 +08:00
Kyant0 5b9991ae53 Add comparison: Inner refraction - Zero corner size 2025-06-20 00:15:12 +08:00
Kyant0 1b1862b6cc Add a feature image 2025-06-19 23:59:56 +08:00
Kyant0 cd9b03b939 Add "Special thanks" section in README 2025-06-19 23:44:51 +08:00
Kyant0 022f227ab3 Update APK 2025-06-19 23:44:30 +08:00
Kyant0 8345d86ef1 Add comparisons 2025-06-19 23:41:49 +08:00
Kyant0 37ee5a0a68 Update shader to match Apple's effect
Corner radius needs to be multiplied by 1.5 when calculating the gradient of SDF.
2025-06-19 23:41:30 +08:00
Kyant0 2279d197b3 Enable Gradle configuration cache 2025-06-19 23:38:22 +08:00
Kyant0 438fffd2b6 Enable fullscreen mode 2025-06-19 16:15:08 +08:00
Kyant0 4991c5b2a4 Update expressa library 2025-06-19 12:44:15 +08:00
Kyant0 2b748b14de Remove material icons extended dependency, use material symbols xml 2025-06-19 12:29:32 +08:00
Kyant0 0994991c53 Update dependencies 2025-06-19 12:01:29 +08:00
Kyant0 2d3cc0912f Initial commit 2025-06-18 18:15:41 +08:00