eirikbakke opened a new pull request, #8194: URL: https://github.com/apache/netbeans/pull/8194
This is a follow-up on https://github.com/apache/netbeans/pull/8114 and https://github.com/apache/netbeans/pull/8109 . To render at full HiDPI resolution, Icon/Image instances must be created via the methods in ImageUtilities rather than, in particular, the constructors of ImageIcon. This PR, combined with the previously mentioned PRs, handles most of the remaining cases. Specifically: * Search for `new ImageIcon(` and rewrite each relevant case to use ImageUtilities to load icons instead. * Search for `instanceof ImageIcon` and generalize to `instanceof Icon` when appropriate. * Search for `getLookAndFeel*getDisabledIcon` and switch to `ImageUtilities.createDisabledIcon`. It'll be good to test these changes in development builds for a while, in case icon loading breaks accidentally somewhere. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
