Closed mokkun closed 6 years ago
0xFF will equal to -1 (signed decimal), which will cause the condition chipTextColor != -1 to be false when using the white color for text. Set the default text color to transparent and compare against it to avoid the issue.
0xFF
-1
chipTextColor != -1
false
This should fix #36.
No specific tests are required.
Thank you @mokkun I'll try to put in a patch release for this
Summary
0xFF
will equal to-1
(signed decimal), which will cause the conditionchipTextColor != -1
to befalse
when using the white color for text. Set the default text color to transparent and compare against it to avoid the issue.This should fix #36.
Test Plan
No specific tests are required.