Commit bcde740
committed
feat: add window icon whitelist for dock task manager
1. Add a new dconfig setting "windowIconWhitelist" with default value
["wechat"]
2. When window split mode is enabled, the dock now checks the whitelist
to decide whether to use window icons instead of app icons for specific
applications
3. Fix model reset in DockItemModel::setSourceModel to use
beginResetModel/endResetModel instead of manual row insertion/removal
for better model consistency
4. Update X11 window monitor to trigger icon update when a new window
is mapped
The window icon whitelist is needed for apps like WeChat that provide
superior window icon quality compared to their app icons, enhancing the
visual experience when window split is disabled.
Log: Added window icon whitelist config for dock task manager
Influence:
1. Verify WeChat and other whitelisted apps display correct icons when
window split is disabled
2. Test default whitelist behavior with WeChat running
3. Check that non-whitelisted apps still use app icons when window split
is disabled
4. Test the new dconfig setting can be modified and persists correctly
5. Ensure DockItemModel resets work correctly without data corruption
6. Verify X11 window monitor still functions properly with icon update
call
feat: 为任务栏任务管理器添加窗口图标白名单功能
1. 添加新的 dconfig 设置"windowIconWhitelist",默认值为["wechat"]
2. 当窗口拆分模式启用时,任务栏会检查白名单,决定是否对特定应用使用窗口
图标而非应用图标
3. 修复 DockItemModel::setSourceModel 中的模型重置,改用
beginResetModel/endResetModel 替代手动行插入/删除,以提高模型一致性
4. 更新 X11 窗口监视器,在新窗口映射时触发图标更新
对于微信等提供比应用图标更优质窗口图标的应用,窗口图标白名单是必要的,可
在窗口拆分禁用时提升视觉体验。
Log: 为任务栏添加窗口图标白名单配置
Influence:
1. 验证在白名单中的应用(如微信)在禁用窗口拆分时显示正确图标
2. 使用微信测试默认白名单行为
3. 检查非白名单应用在禁用窗口拆分时仍使用应用图标
4. 测试新的 dconfig 设置可以被修改并持久保存
5. 确保 DockItemModel 重置操作正常,无数据损坏
6. 验证 X11 窗口监视器在添加图标更新调用后仍正常工作
PMS: TASK-3890311 parent c0cddd1 commit bcde740
6 files changed
Lines changed: 35 additions & 15 deletions
File tree
- panels/dock/taskmanager
- dconfig
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
99 | 109 | | |
| 110 | + | |
100 | 111 | | |
101 | 112 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
59 | 68 | | |
60 | 69 | | |
61 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
| 51 | + | |
53 | 52 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
| 53 | + | |
62 | 54 | | |
63 | 55 | | |
64 | 56 | | |
| |||
87 | 79 | | |
88 | 80 | | |
89 | 81 | | |
90 | | - | |
91 | | - | |
92 | 82 | | |
93 | 83 | | |
94 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| |||
113 | 114 | | |
114 | 115 | | |
115 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
116 | 122 | | |
117 | 123 | | |
118 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
64 | 66 | | |
65 | 67 | | |
66 | 68 | | |
| 69 | + | |
67 | 70 | | |
68 | 71 | | |
69 | 72 | | |
| |||
0 commit comments