Skip to content

feat: add window effect support for treeland platform#394

Open
18202781743 wants to merge 1 commit into
linuxdeepin:masterfrom
18202781743:master
Open

feat: add window effect support for treeland platform#394
18202781743 wants to merge 1 commit into
linuxdeepin:masterfrom
18202781743:master

Conversation

@18202781743

Copy link
Copy Markdown
Contributor

Implement WindowEffect feature that allows disabling window border and
shadow based on parameter values: 0 disables, -1 enables defaults. This
extends the window effect enum to control individual visual elements
like border radius, shadow, and border visibility.

Log: Added window effect control for border and shadow settings

Influence:

  1. Test setting window effect to 0 to verify border and shadow are
    disabled
  2. Test setting window effect to -1 to verify defaults are used
  3. Test individual effect flags (NoRadius, NoShadow, NoBorder)
    independently
  4. Verify window appearance changes correctly when effects are modified
  5. Test multiple platforms to ensure treeland-specific behavior doesn't
    affect others

feat: 为 treeland 平台添加窗口效果支持

实现 WindowEffect 功能,根据参数值控制是否禁用窗口边框和阴影:0表示禁
用,-1表示使用默认值。通过扩展效果枚举,可单独控制圆角半径、阴影和边框等
视觉元素的可见性。

Log: 新增窗口边框和阴影效果控制功能

Influence:

  1. 测试将窗口效果设为0,验证边框和阴影是否被禁用
  2. 测试将窗口效果设为-1,验证是否使用默认值
  3. 单独测试各个效果标志(无圆角、无阴影、无边框)的功能
  4. 验证修改效果后窗口外观是否正确变化
  5. 测试多个平台以确保treeland专有行为不影响其他平台

Implement WindowEffect feature that allows disabling window border and
shadow based on parameter values: 0 disables, -1 enables defaults. This
extends the window effect enum to control individual visual elements
like border radius, shadow, and border visibility.

Log: Added window effect control for border and shadow settings

Influence:
1. Test setting window effect to 0 to verify border and shadow are
disabled
2. Test setting window effect to -1 to verify defaults are used
3. Test individual effect flags (NoRadius, NoShadow, NoBorder)
independently
4. Verify window appearance changes correctly when effects are modified
5. Test multiple platforms to ensure treeland-specific behavior doesn't
affect others

feat: 为 treeland 平台添加窗口效果支持

实现 WindowEffect 功能,根据参数值控制是否禁用窗口边框和阴影:0表示禁
用,-1表示使用默认值。通过扩展效果枚举,可单独控制圆角半径、阴影和边框等
视觉元素的可见性。

Log: 新增窗口边框和阴影效果控制功能

Influence:
1. 测试将窗口效果设为0,验证边框和阴影是否被禁用
2. 测试将窗口效果设为-1,验证是否使用默认值
3. 单独测试各个效果标志(无圆角、无阴影、无边框)的功能
4. 验证修改效果后窗口外观是否正确变化
5. 测试多个平台以确保treeland专有行为不影响其他平台
@18202781743 18202781743 requested review from BLumia and mhduiy July 8, 2026 10:40

@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 @18202781743, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@deepin-ci-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: 18202781743

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

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.

2 participants