Commit f3343d6
committed
style: enhance OSD window visual effects
1. Extracted windowRadius to a property for better maintainability
2. Added borderColor property for DWindow based on theme type
3. Implemented StyledBehindWindowBlur for improved background blur
effect with theme-aware colors
4. Added InsideBoxBorder component for consistent inner border styling
5. Removed FloatingPanel background and delegated styling to new
components
6. Improved color handling with proper theme-based selections
These changes enhance the visual consistency and theme responsiveness
of the OSD window while making the code more maintainable by separating
styling concerns into dedicated components. The new implementation
provides better visual feedback and matches the system theme more
accurately.
style: 优化 OSD 窗口视觉效果
1. 将 windowRadius 提取为属性提高可维护性
2. 根据主题类型为 DWindow 添加 borderColor 属性
3. 实现 StyledBehindWindowBlur 提供改进的背景模糊效果,支持主题颜色
4. 添加 InsideBoxBorder 组件实现统一的内边框样式
5. 移除 FloatingPanel 背景,将样式委托给新组件
6. 改进颜色处理,支持基于主题的选择
这些变更增强了 OSD 窗口的视觉一致性和主题响应能力,同时通过将样式关注点
分离到专用组件中提高了代码可维护性。新实现提供了更好的视觉反馈,并能更准
确地匹配系统主题。
pms: BUG-2941951 parent 15268e9 commit f3343d6
1 file changed
+30
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | | - | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| 22 | + | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
| |||
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
38 | 67 | | |
39 | 68 | | |
40 | 69 | | |
| |||
55 | 84 | | |
56 | 85 | | |
57 | 86 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | 87 | | |
76 | 88 | | |
77 | 89 | | |
| |||
0 commit comments