Commit 33b41e4
committed
refactor: simplify AlertToolTip implementation using FloatingPanel
1. Replaced custom background implementation in AlertToolTip with
FloatingPanel component
2. Removed redundant BoxShadow and connector elements as FloatingPanel
handles these
3. Updated FlowStyle with new palette properties for borders and shadows
4. Modified FloatingPanel to always show inside border when color is
specified
5. Adjusted alertToolTip background opacity values for better visibility
The changes simplify the codebase by reusing existing FloatingPanel
component instead of maintaining duplicate shadow and border logic. This
makes the styling more consistent and easier to maintain. The opacity
adjustments improve visual appearance across different themes.
refactor: 使用 FloatingPanel 简化 AlertToolTip 实现
1. 使用 FloatingPanel 组件替换 AlertToolTip 中的自定义背景实现
2. 移除了冗余的 BoxShadow 和连接器元素,由 FloatingPanel 统一处理
3. 更新 FlowStyle 添加新的边框和阴影调色板属性
4. 修改 FloatingPanel 在指定颜色时始终显示内部边框
5. 调整 alertToolTip 背景透明度值以获得更好的可视性
这些变更通过重用现有的 FloatingPanel 组件简化了代码库,而不是维护重复的
阴影和边框逻辑。这使得样式更加一致且易于维护。透明度调整改善了不同主题下
的视觉效果。
pms: BUG-2932931 parent c7f8387 commit 33b41e4
3 files changed
Lines changed: 22 additions & 40 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
41 | 27 | | |
42 | 28 | | |
43 | 29 | | |
| |||
59 | 45 | | |
60 | 46 | | |
61 | 47 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | 48 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
619 | 619 | | |
620 | 620 | | |
621 | 621 | | |
622 | | - | |
623 | | - | |
| 622 | + | |
| 623 | + | |
624 | 624 | | |
625 | 625 | | |
626 | 626 | | |
| |||
631 | 631 | | |
632 | 632 | | |
633 | 633 | | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
634 | 649 | | |
635 | 650 | | |
636 | 651 | | |
| |||
0 commit comments