I tried making a connection status symbol that changes color.
It did however not seem to update and always stayed red.
At first I thought it would not update but after long searching I chose to use 2 Pictureboxes and hide the other one.
To my surprise this also did not work.
I then figured out that WiseJ seems to bake the color into the SVG completely ignoring the color property.
When using 2 copies of the same SVG it worked.
Changing the fore-color of a picture box should either cause the PictureBox to load a new baked SVG or the color should not be baked into the SVG at all.
the bug was logged as WJ-8130 and is fixed in the latest release (1.3.43)
This is how it works in Wisej with SVG image and icons:
If you set the ForeColor of a PictureBox or a Button or any widget with an SVG icon, Wisej will change the #000000 fill of monochrome SVG to match the color. If you don’t explicitly set the color, Wisej uses the theme color in effect for that widget or the general icon color set in the theme.
See this example:
I also attached the source. Pick a color from the combo and it changes only for the monochrome sgv. Reset it to empty and it will pick the theme’s color.
Please login first to submit.