Skip to content

Glass#1109

Merged
zccrs merged 3 commits into
linuxdeepin:masterfrom
zccrs:glass
Jul 9, 2026
Merged

Glass#1109
zccrs merged 3 commits into
linuxdeepin:masterfrom
zccrs:glass

Conversation

@zccrs

@zccrs zccrs commented Jul 7, 2026

Copy link
Copy Markdown
Member

No description provided.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @zccrs, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@zccrs zccrs marked this pull request as draft July 7, 2026 09:45
@LFRon

LFRon commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

我也要有液态玻璃吗 (

@zccrs

zccrs commented Jul 8, 2026

Copy link
Copy Markdown
Member Author

我也要有液态玻璃吗 (

会有个开关,喜欢blur就blur,喜欢glass就glass

@zccrs zccrs force-pushed the glass branch 2 times, most recently from 9a15f5c to d100d5c Compare July 9, 2026 01:29
upstream commit 6a1be42 引入的 lambda 捕获了 this 但未使用,触发
-Werror,-Wunused-lambda-capture 构建失败。移除多余的 this 捕获。
@zccrs zccrs force-pushed the glass branch 3 times, most recently from a7433d4 to 1219c1e Compare July 9, 2026 03:32
@zccrs zccrs marked this pull request as ready for review July 9, 2026 03:34

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @zccrs, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@zccrs zccrs force-pushed the glass branch 6 times, most recently from 54a48f0 to 3d59199 Compare July 9, 2026 08:39
Add missing <unistd.h> include for close() and related POSIX calls.

补充 test_capture 中缺失的 unistd.h 头文件,修复编译错误。

Log: 修复test_capture缺失unistd.h头文件
Influence: 修复test_capture编译失败问题
@zccrs zccrs force-pushed the glass branch 3 times, most recently from 806212d to a6dfd58 Compare July 9, 2026 09:09
…ponents

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 material knobs.
Set the default blur strength to 60 and expose a highlight switch.

新增 DConfig 配置项:glass/blur 效果开关和材质参数。
默认 blur 强度改为 60,并暴露高光开关。

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 修复圆角白色伪影,
并用 lightAngle 统一光线方向。

test_glass standalone demo uses a SHARED treeland_stub library with a
minimal Treeland QML module so Blur.qml works without libtreeland.

test_glass 示例使用 SHARED treeland_stub 库提供最小 Treeland QML
模块,使 Blur.qml 无需链接 libtreeland 即可运行。

RoundBlur forces pure blur with glassEnabled=false and blurMax=64.
Blur.qml dispatches between GlassEffect and traditional MultiEffect blur.

RoundBlur 通过 glassEnabled=false 和 blurMax=64 强制使用纯 blur。
Blur.qml 在 GlassEffect 和传统 MultiEffect blur 之间分发。

Add test_effect_glass coverage for GlassEffect properties, shader output,
software-renderer fallback, and QML import path setup under ctest.

新增 test_effect_glass 覆盖 GlassEffect 属性、着色器输出、软件渲染器
回退,以及 ctest 下的 QML import path 设置。

Add Debian QtQuick.Effects runtime/build dependencies and Arch mesa CI
dependency so the new QML module and GLES renderer are available.

添加 Debian QtQuick.Effects 运行/构建依赖和 Arch mesa CI 依赖,确保
新的 QML 模块和 GLES 渲染器可用。

Log: 实现iOS 26 Liquid Glass效果,可复用组件和dconfig配置
Influence: 新增玻璃效果开关和材质参数配置,默认模糊强度调整为60
@deepin-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Groveer, zccrs

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@LFRon

LFRon commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

这个效果Vulkan上能用嘛(

@zccrs zccrs merged commit 6c1b307 into linuxdeepin:master Jul 9, 2026
12 checks passed
@zccrs

zccrs commented Jul 9, 2026

Copy link
Copy Markdown
Member Author

这个效果Vulkan上能用嘛(

代码上完全不依赖gles,不过vulkan下的RenderBufferBlitter还没有完成。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants