Commit 22b973e
committed
fix: improve text truncation with gradient fade effect
1. Modified TextCalculator to track truncation status and ellipsis width
2. Added gradient fade effect for truncated text instead of ellipsis
character
3. Changed minimum character count from 1 to 2 for better readability
4. Added new properties isTruncated and ellipsisWidth to
TextCalculatorAttached
5. Implemented OpacityMask with gradient for smooth text fade-out
Log: Improved task manager app title display with gradient fade effect
for truncated text
Influence:
1. Test app titles with varying lengths to ensure proper truncation
2. Verify gradient fade effect appears only when text is truncated
3. Check text alignment and positioning with the new fade effect
4. Test with both light and dark themes to ensure color compatibility
5. Verify minimum character count of 2 is respected in all cases
6. Test performance with multiple app items displaying truncated titles
fix: 改进文本截断效果,添加渐变淡出
1. 修改TextCalculator以跟踪截断状态和省略号宽度
2. 为截断文本添加渐变淡出效果替代省略号字符
3. 将最小字符数从1改为2以提高可读性
4. 向TextCalculatorAttached添加isTruncated和ellipsisWidth属性
5. 实现带渐变的OpacityMask以实现平滑的文本淡出效果
Log: 改进任务管理器应用标题显示,为截断文本添加渐变淡出效果
Influence:
1. 测试不同长度的应用标题以确保正确截断
2. 验证渐变淡出效果仅在文本被截断时出现
3. 检查新淡出效果下的文本对齐和定位
4. 测试浅色和深色主题以确保颜色兼容性
5. 验证在所有情况下都遵守最小2个字符的限制
6. 测试多个应用项目显示截断标题时的性能表现1 parent b992926 commit 22b973e
3 files changed
Lines changed: 61 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
34 | 48 | | |
35 | 49 | | |
36 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | 16 | | |
22 | 17 | | |
23 | 18 | | |
| |||
196 | 191 | | |
197 | 192 | | |
198 | 193 | | |
199 | | - | |
200 | | - | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
201 | 203 | | |
| 204 | + | |
202 | 205 | | |
203 | | - | |
| 206 | + | |
204 | 207 | | |
205 | 208 | | |
206 | 209 | | |
| |||
258 | 261 | | |
259 | 262 | | |
260 | 263 | | |
261 | | - | |
262 | | - | |
| 264 | + | |
| 265 | + | |
263 | 266 | | |
264 | 267 | | |
265 | 268 | | |
| |||
401 | 404 | | |
402 | 405 | | |
403 | 406 | | |
| 407 | + | |
404 | 408 | | |
| 409 | + | |
405 | 410 | | |
406 | 411 | | |
407 | 412 | | |
408 | 413 | | |
409 | 414 | | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
410 | 422 | | |
411 | | - | |
412 | | - | |
413 | | - | |
| 423 | + | |
| 424 | + | |
414 | 425 | | |
415 | | - | |
416 | | - | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
417 | 437 | | |
418 | 438 | | |
419 | 439 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
37 | 43 | | |
38 | 44 | | |
39 | 45 | | |
40 | 46 | | |
41 | 47 | | |
| 48 | + | |
42 | 49 | | |
43 | 50 | | |
44 | 51 | | |
| |||
47 | 54 | | |
48 | 55 | | |
49 | 56 | | |
| 57 | + | |
50 | 58 | | |
51 | 59 | | |
52 | 60 | | |
| |||
0 commit comments