You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It depends on how you're using it. Whenever you're using an SVG image in Swing you still need to specify its desired size in pixels, because that's what all Swing component use as coordinates for display. The benefit of using SVG images is that you can scale them to any size without any loss of quality.
Although I think the problem you're encountering is that the SVG image on your screenshot is being rendered as 16x16 px, but then upscaled by either the system, native window or JDK (Swing framework) to 32x32. I'm not exactly sure from this screenshot alone though whether the whole UI is being upscaled or just the icon. If it is the whole UI - which is a higher possibility - this is a general problem that stems from UI upscaling on high resolution screens.
Overall - there are multiple issues with high-res screens that I haven't solved yet as the support in the earlier JDKs for high-resolution screens was pretty poor (or non-existent). I'll have to take a proper look at it at some point and see how it can be properly supported (and if it can be in earlier JDK versions).
I've added a high resolution tag to group all the issues related to the topic.
Main one will probably be #352 under which I'll be posting updates on any changes made.
Although for now, unfortunately, I can't really offer any immediate solution as this will most probably involve pretty big changes within the library and might even require transition to later Java version support in the first place (currently WebLaF supports Java 6u30+).
SVG images are blurred in label and button
How can I make SVG images in high definition without blurring。
The text was updated successfully, but these errors were encountered: