Commit 1d7fc7e
committed
[ui] fix scaling when copying checkbox icons
When the JBCachingScalableIcon is copied for scaling,
the initial scale value must be propagated from the source icon via
JBScalableIcon#updateContextFrom. CheckboxIcon.WithColor did not have a
constructor that accepts the source icon, so copied instances could end up
with an incorrect size. This commit adds a constructor to CheckboxIcon.WithColor that takes source icon and allows to properly preserve the scale.
IJPL-2255661 parent 969e989 commit 1d7fc7e
File tree
1 file changed
+7
-3
lines changed- platform/platform-api/src/com/intellij/util/ui
1 file changed
+7
-3
lines changedLines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
62 | 66 | | |
63 | 67 | | |
64 | 68 | | |
| |||
72 | 76 | | |
73 | 77 | | |
74 | 78 | | |
75 | | - | |
| 79 | + | |
76 | 80 | | |
77 | 81 | | |
78 | 82 | | |
0 commit comments