Commit a6dfd58
committed
feat(effects): implement iOS 26 Liquid Glass effect with reusable components
Add GlassEffect.qml, a pure ShaderEffect item with GLSL liquid-glass
shader: rounded-rect SDF, edge refraction, RGB dispersion, specular
highlight, SDF-derivative AA. Register shaders via qt_add_shaders.
新增 GlassEffect.qml 组件,含 GLSL 液态玻璃着色器:圆角矩形 SDF、
边缘折射、RGB 色差、镜面高光、SDF 导数抗锯齿,通过 qt_add_shaders 注册。
Add dconfig keys for glass/blur effect switch and blur strength. Add
highlight dconfig switch; remove unused props highlightStrength,
shaderLog, radiusEnabled alias.
新增 dconfig 配置项:glass/blur 效果开关和 blur 强度,高光开关,
移除未使用属性 highlightStrength、shaderLog、radiusEnabled。
BlitTextureProvider maps smooth to setFiltering, antialiasing to
setAnisotropyLevel. Fix corner white artifacts via premultiplied alpha
output. Unify light direction via lightAngle.
BlitTextureProvider 将 smooth 映射 setFiltering,antialiasing 映射
setAnisotropyLevel。修复圆角白色伪影(预乘 alpha 输出),统一光线方向。
test_glass standalone demo uses SHARED treeland_stub library providing
a minimal Treeland QML module (Helper singleton + GlassConfig defaults)
so Blur.qml / RoundBlur.qml work without libtreeland.
test_glass 示例使用 SHARED treeland_stub 库提供最小 Treeland QML 模块
(Helper 单例 + GlassConfig 默认值),无需链接 libtreeland 即可运行。
RoundBlur: glassEnabled=false, pure blur at blurMax=64, color property
restored. Remove non-existent color property from lockscreen QML.
RoundBlur 设 glassEnabled=false,纯 blur(blurMax=64),恢复 color 属性,
移除锁屏 QML 中对不存在 color 属性的引用。
test_effect_glass: 14 tests covering GlassEffect properties and shader
output.
test_effect_glass 含 14 个测试,覆盖 GlassEffect 属性和着色器输出。
Log: 实现iOS 26 Liquid Glass效果,可复用组件和dconfig配置
Influence: 新增玻璃效果开关和材质参数配置,锁屏模糊效果由RoundBlur统一控制1 parent 8b5c5c2 commit a6dfd58
22 files changed
Lines changed: 2759 additions & 32 deletions
File tree
- examples
- test_glass
- assets
- misc
- dconfig
- shaders
- src
- core/qml/Effects
- plugins/lockscreen/qml
- tests
- test_effect_glass
- waylib/src/server/qtquick
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
0 commit comments