Commit c12b817
feat: optimize search UI icons and layout spacing
1. Replace standard search icon with theme-aware SVG icons (search-
light.svg/search-dark.svg)
2. Add custom IconButton class with hover/sunken state visual feedback
using circular background
3. Replace clear button with DCI icon and custom paint handling for
better theme integration
4. Rename IconButton to ToolButton in generaltoolbar to avoid naming
conflict with new IconButton
5. Update toolbar button icon size from 18x18 to 24x24 for better
visibility
6. Fix layout margins to use devicePixelRatio for HiDPI screen
compatibility
7. Adjust toolbar layout to use stretch for centering and remove fixed
side margins
8. Fix DetailItem background color to use palette-based color instead of
hardcoded black
9. Add antialiasing to icon tinting in ToolButton paintEvent for
smoother rendering
10. Update resource.qrc to include new icon files with proper prefixes
Log: Improved search bar and toolbar visual appearance with theme-aware
icons and better HiDPI support
Influence:
1. Test search bar appearance in both light and dark themes
2. Verify search icon changes correctly with theme switching
3. Test clear button hover and pressed state visual feedback
4. Verify toolbar button icons display correctly at 24x24 size
5. Test layout on HiDPI displays (devicePixelRatio scaling)
6. Verify toolbar buttons are centered with proper spacing
7. Test DetailItem background color in different themes
8. Verify all new SVG and DCI icons load correctly from resources
feat: 优化搜索界面图标和布局间距
1. 将标准搜索图标替换为主题感知 SVG 图标(search-light.svg/search-
dark.svg)
2. 添加自定义 IconButton 类,使用圆形背景实现悬停/按下状态视觉反馈
3. 将清除按钮替换为 DCI 图标并自定义绘制处理,以更好地集成主题
4. 将 generaltoolbar 中的 IconButton 重命名为 ToolButton,避免与新
IconButton 命名冲突
5. 将工具栏按钮图标大小从 18x18 更新为 24x24,提高可见性
6. 修复布局边距以使用 devicePixelRatio,支持 HiDPI 屏幕
7. 调整工具栏布局使用 stretch 进行居中,并移除固定侧边边距
8. 修复 DetailItem 背景颜色,使用基于调色板的颜色替代硬编码黑色
9. 在 ToolButton 绘制事件中为图标着色添加抗锯齿,实现更平滑的渲染
10. 更新 resource.qrc 以包含具有正确前缀的新图标文件
Log: 改进搜索栏和工具栏视觉效果,支持主题感知图标和更好的 HiDPI 支持
Influence:
1. 测试搜索栏在浅色和深色主题下的外观
2. 验证搜索图标在主题切换时正确变化
3. 测试清除按钮悬停和按下状态的视觉反馈
4. 验证工具栏按钮图标在 24x24 尺寸下正确显示
5. 在 HiDPI 显示器上测试布局(devicePixelRatio 缩放)
6. 验证工具栏按钮居中且间距正确
7. 测试 DetailItem 背景颜色在不同主题下的表现
8. 验证所有新的 SVG 和 DCI 图标从资源中正确加载
BUG: https://pms.uniontech.com/bug-view-361081.html1 parent 5edd9b5 commit c12b817
9 files changed
Lines changed: 94 additions & 24 deletions
File tree
- src/grand-search/gui
- entrance
- exhibition
- matchresult
- built-in-icons
- icons
- preview/generalwidget
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
24 | | - | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
33 | 62 | | |
34 | 63 | | |
35 | 64 | | |
| |||
106 | 135 | | |
107 | 136 | | |
108 | 137 | | |
109 | | - | |
| 138 | + | |
| 139 | + | |
110 | 140 | | |
111 | 141 | | |
112 | 142 | | |
113 | 143 | | |
114 | | - | |
| 144 | + | |
115 | 145 | | |
116 | 146 | | |
117 | 147 | | |
| |||
120 | 150 | | |
121 | 151 | | |
122 | 152 | | |
123 | | - | |
124 | | - | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
125 | 156 | | |
126 | 157 | | |
127 | 158 | | |
| |||
133 | 164 | | |
134 | 165 | | |
135 | 166 | | |
136 | | - | |
137 | | - | |
| 167 | + | |
| 168 | + | |
138 | 169 | | |
139 | 170 | | |
140 | 171 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
16 | 28 | | |
17 | 29 | | |
18 | 30 | | |
| |||
Binary file not shown.
Lines changed: 10 additions & 0 deletions
Loading
Lines changed: 10 additions & 0 deletions
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
4 | 9 | | |
5 | 10 | | |
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
Lines changed: 12 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | 22 | | |
25 | 23 | | |
26 | 24 | | |
27 | 25 | | |
28 | 26 | | |
29 | 27 | | |
30 | | - | |
| 28 | + | |
31 | 29 | | |
32 | 30 | | |
33 | 31 | | |
| |||
36 | 34 | | |
37 | 35 | | |
38 | 36 | | |
39 | | - | |
| 37 | + | |
40 | 38 | | |
41 | 39 | | |
42 | 40 | | |
43 | 41 | | |
44 | 42 | | |
45 | 43 | | |
46 | | - | |
| 44 | + | |
47 | 45 | | |
48 | 46 | | |
49 | 47 | | |
| |||
58 | 56 | | |
59 | 57 | | |
60 | 58 | | |
61 | | - | |
| 59 | + | |
62 | 60 | | |
63 | 61 | | |
64 | 62 | | |
| |||
70 | 68 | | |
71 | 69 | | |
72 | 70 | | |
| 71 | + | |
73 | 72 | | |
74 | 73 | | |
75 | 74 | | |
| |||
92 | 91 | | |
93 | 92 | | |
94 | 93 | | |
95 | | - | |
96 | | - | |
| 94 | + | |
| 95 | + | |
97 | 96 | | |
98 | 97 | | |
99 | 98 | | |
100 | | - | |
| 99 | + | |
101 | 100 | | |
102 | 101 | | |
103 | 102 | | |
104 | 103 | | |
105 | | - | |
| 104 | + | |
106 | 105 | | |
107 | 106 | | |
108 | 107 | | |
109 | 108 | | |
110 | | - | |
| 109 | + | |
111 | 110 | | |
112 | 111 | | |
113 | 112 | | |
| |||
117 | 116 | | |
118 | 117 | | |
119 | 118 | | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
125 | 126 | | |
126 | 127 | | |
127 | 128 | | |
| |||
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
51 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
0 commit comments