Skip to content

Conversation

@juliabeliaeva
Copy link
Contributor

@juliabeliaeva juliabeliaeva commented Dec 25, 2025

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-225566

@juliabeliaeva juliabeliaeva force-pushed the julia/checkbox-icon-scale branch from 3fefd1e to 4e97356 Compare December 25, 2025 18:52
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-225566
@juliabeliaeva juliabeliaeva force-pushed the julia/checkbox-icon-scale branch from 4e97356 to 1d7fc7e Compare December 25, 2025 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant