r/cpp • • Jul 07 '22

WxWidgets 3.2.0 Released

https://wxwidgets.org/news/2022/07/wxwidgets-3.2.0-final-release/
127 Upvotes

14 comments sorted by

View all comments

28

u/eco_was_taken Jul 07 '22

I just upgraded to 3.1.6 (vcpkg) and once I realized why all my icons were broken and tried out the new wxBitmapBundle I was very happy I could ditch my custom solution for this. Then I saw the SVG support and gave that a shot which worked great so I finally replaced all the imagery in our software with purchased SVGs which look vastly superior to my old programmer art (and far less of a pain to support high-dpi).

I even do some interesting things like treat some SVGs as a template and swap colors on icons to match the colors users pick. It was dead simple and just neat to see.

4

u/fdwr fdwr@github 🔍 Jul 07 '22

Yeah, I'm also opting for SVG in a personal project to avoid multiple assets for DPIs, but the one downside is how blurry the icons become for toolbar (24x24px) and menu icon (16x16px) sizes. So I'm working on adding some extensions to SVG with new attributes for pixel-snapping/grid-fitting using LunaSvg and the Adobe SVG Native library, but now I should see what WxWidgets uses for their SVG rendering.

4

u/eco_was_taken Jul 07 '22

I believe it's nanosvg.

And yeah, it's annoying that vector graphics don't just magically fix blurry icons. I opted for just picking SVGs sized for being pixel perfect at 1.5x scaling. The downscaled ones look good enough and are only going to become more and more rare going forward so I think I'm ok with it.