Commit 32cab67
committed
fix: improve theme compatibility for bluetooth label
Changed QLabel to DLabel for better theme integration and added dynamic
text color handling
Added DPaletteHelper and DGuiApplicationHelper includes for theme
management
Implemented theme change handler to update text color when system theme
changes
Adjusted text alpha values from 0.75 to 0.6 for better readability
across themes
Modified bottom margin from 2 to 6 for better spacing
These changes ensure consistent text appearance in both light and dark
themes
and improve the overall visual experience in the bluetooth dock plugin
fix: 改进蓝牙标签的主题兼容性
将 QLabel 改为 DLabel 以实现更好的主题集成并添加动态文本颜色处理
添加 DPaletteHelper 和 DGuiApplicationHelper 包含以进行主题管理
实现主题变更处理程序,在系统主题更改时更新文本颜色
将文本透明度值从 0.75 调整为 0.6,以在不同主题下获得更好的可读性
将底部边距从 2 修改为 6 以获得更好的间距
这些更改确保在浅色和深色主题下文本外观一致
并改善蓝牙坞站插件的整体视觉体验
Pms: BUG-3325531 parent 603d709 commit 32cab67
2 files changed
Lines changed: 26 additions & 4 deletions
Lines changed: 23 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
71 | | - | |
| 73 | + | |
72 | 74 | | |
73 | 75 | | |
74 | 76 | | |
| |||
361 | 363 | | |
362 | 364 | | |
363 | 365 | | |
364 | | - | |
| 366 | + | |
365 | 367 | | |
| 368 | + | |
366 | 369 | | |
367 | 370 | | |
368 | 371 | | |
| |||
462 | 465 | | |
463 | 466 | | |
464 | 467 | | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
465 | 472 | | |
466 | 473 | | |
467 | 474 | | |
| |||
536 | 543 | | |
537 | 544 | | |
538 | 545 | | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| 183 | + | |
183 | 184 | | |
184 | 185 | | |
185 | 186 | | |
186 | 187 | | |
187 | 188 | | |
188 | 189 | | |
189 | | - | |
| 190 | + | |
190 | 191 | | |
191 | 192 | | |
192 | 193 | | |
| |||
0 commit comments