Is there a way to style the checkboxes in the Legend?
If I have a black background, you can see the outline of the checkboxes, but not whether they are ticked.
Thanks,
Dave
Legend checkbox styling
Re: Legend checkbox styling
Hi Dave,
The issue is that we draw the checkboxes manually. And we actually draw 4 lines: top and left in Color.GRAY and right and bottom in Color.lightGray. But we don't draw any background so if what you have in the back is black, you won't see the state of the checkbox.
I've modified it so the Legend color will be used to draw a rectangle so you'll have a background. This way, you can still have a transparent legend or not, and you can now have transparent checkboxes (legend color = Color.transparent) or colored (legend.color = yourColor).
This will be available with the next maintenance release.
In the meanwhile you can try to use LegendResolver's getItemCoordinates to manually calculate each checkbox position (something relative to the coordinates argument provided) and draw the colored rectangle inside this method. I think this would do the trick.
The issue is that we draw the checkboxes manually. And we actually draw 4 lines: top and left in Color.GRAY and right and bottom in Color.lightGray. But we don't draw any background so if what you have in the back is black, you won't see the state of the checkbox.
I've modified it so the Legend color will be used to draw a rectangle so you'll have a background. This way, you can still have a transparent legend or not, and you can now have transparent checkboxes (legend color = Color.transparent) or colored (legend.color = yourColor).
This will be available with the next maintenance release.
In the meanwhile you can try to use LegendResolver's getItemCoordinates to manually calculate each checkbox position (something relative to the coordinates argument provided) and draw the colored rectangle inside this method. I think this would do the trick.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Legend checkbox styling
No worries.
I'll just try with various shades of grey to white in the legend to get the best look for now.
Any hints to the next release date?
Thanks
Dave
I'll just try with various shades of grey to white in the legend to get the best look for now.
Any hints to the next release date?
Thanks
Dave
Re: Legend checkbox styling
Hi Dave,
We are working on it, but I'm afraid I can't tell you a date for it.DaveSav wrote:Any hints to the next release date?
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |