Commit 0419124
committed
fix: refactor progress bar animation and visual effects
1. Replaced manual timer-based animation with a reusable
lightSweepAnimation component
2. Fixed BoxShadow positioning to use anchors instead of manual
calculations
3. Added OpacityMask layers to handle corner radius clipping properly
4. Restructured gradient animation to use ColorAnimation for smoother
transitions
5. Fixed indeterminate mode animation to respect animationStop control
6. Improved visual consistency between determinate and indeterminate
modes
Log: Improved progress bar visual effects with smoother animations and
better corner handling
Influence:
1. Test progress bar in both determinate and indeterminate modes
2. Verify smooth gradient animation without visual glitches
3. Check corner radius rendering at different progress values
4. Test animation stop/start functionality in indeterminate mode
5. Verify BoxShadow positioning and visibility at progress boundaries
6. Test performance with multiple progress bars simultaneously
fix: 重构进度条动画和视觉效果
1. 将基于定时器的手动动画替换为可复用的 lightSweepAnimation 组件
2. 修复 BoxShadow 定位,使用锚点替代手动计算
3. 添加 OpacityMask 层以正确处理圆角裁剪
4. 重构渐变动画,使用 ColorAnimation 实现更平滑的过渡
5. 修复不确定模式动画以遵守 animationStop 控制
6. 改进确定模式和不确定模式之间的视觉一致性
Log: 改进了进度条的视觉效果,动画更平滑,圆角处理更好
Influence:
1. 测试确定模式和不确定模式下的进度条
2. 验证平滑的渐变动画,无视觉故障
3. 检查不同进度值下的圆角渲染
4. 测试不确定模式下的动画停止/开始功能
5. 验证进度边界处的 BoxShadow 定位和可见性
6. 测试同时显示多个进度条时的性能表现
pms: BUG-3415471 parent 22f8682 commit 0419124
1 file changed
Lines changed: 98 additions & 45 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
35 | 33 | | |
36 | | - | |
37 | 34 | | |
38 | 35 | | |
39 | 36 | | |
| 37 | + | |
40 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
41 | 45 | | |
42 | 46 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
48 | 53 | | |
49 | | - | |
| 54 | + | |
50 | 55 | | |
51 | 56 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
64 | 75 | | |
65 | | - | |
66 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
67 | 87 | | |
68 | 88 | | |
69 | 89 | | |
| |||
121 | 141 | | |
122 | 142 | | |
123 | 143 | | |
124 | | - | |
125 | | - | |
| 144 | + | |
| 145 | + | |
126 | 146 | | |
127 | | - | |
128 | | - | |
129 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
130 | 150 | | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
145 | 157 | | |
146 | 158 | | |
147 | 159 | | |
| |||
224 | 236 | | |
225 | 237 | | |
226 | 238 | | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
227 | 280 | | |
0 commit comments