Commit 609fcd1
feat: add window radius control for treeland platform
1. Add windowRadius property getter and setter to
DTreelandPlatformInterface
2. Implement window radius getter with optional default value support
3. Add setter that forwards to appearance context's
set_round_corner_radius method
4. Update header file with new method declarations and overrides
Log: Added window radius control feature for treeland platform
Influence:
1. Test windowRadius() returns correct value after setting
2. Test windowRadius(defaultValue) returns default when no radius set
3. Test setWindowRadius(radius) properly updates appearance context
4. Verify radius value persists across window operations
5. Ensure backward compatibility with existing code
feat: 为 treeland 平台添加窗口圆角控制功能
1. 为 DTreelandPlatformInterface 添加窗口圆角属性的获取和设置方法
2. 实现支持默认值的窗口圆角获取函数
3. 添加通过外观上下文设置圆角半径的功能
Log: 新增 treeland 平台窗口圆角控制功能
Influence:
1. 测试 windowRadius() 在设置后返回正确值
2. 测试 windowRadius(defaultValue) 在未设置时返回默认值
3. 测试 setWindowRadius(radius) 正确更新外观上下文
4. 验证圆角值在窗口操作中保持持久性
5. 确保与现有代码的向后兼容性
PMS: BUG-2968971 parent c90c4a1 commit 609fcd1
2 files changed
Lines changed: 36 additions & 2 deletions
Lines changed: 30 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
19 | 31 | | |
20 | 32 | | |
21 | 33 | | |
| |||
65 | 77 | | |
66 | 78 | | |
67 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
68 | 97 | | |
69 | 98 | | |
70 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
38 | 43 | | |
39 | 44 | | |
40 | 45 | | |
| |||
0 commit comments