You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2018/09/11 21:58:03 UTC
[GitHub] eirikbakke opened a new pull request #859: [NETBEANS-1238] HiDPI
icons for window system icons in the Windows LAF
eirikbakke opened a new pull request #859: [NETBEANS-1238] HiDPI icons for window system icons in the Windows LAF
URL: https://github.com/apache/incubator-netbeans/pull/859
This commit introduces vector-drawn Icon implementations for the icons used in
the window system's Windows 8 Look-and-Feel. Specifically, this replaces most of
the bitmap icons that are used on Windows from the o.n.swing.tabcontrol and
openide.awt modules.
An abstract class VectorIcon is added in the UI Utilities Module (openide.awt)
as a general-purpose starting point for creating new vector icons. It handles
and documents a number of tricky adjustments that are needed to draw icons that
appear sharp on HiDPI screens. This class can be used to implement HiDPI icons
in other LAFs at a later time, e.g. for MacOS retina displays.
A small utility, VectorIconTester, was written to preview new icons at multiple
resolutions, as well as to compare them with existing bitmap icons. This is less
polished code that is nevertheless included here, in tabcontrol's test package.
A screenshot of its output, as well as screenshots of the NetBeans IDE before
and after the patch on various scaling levels, are attached to the JIRA ticket
for NETBEANS-1238, and attached in this pull request below as well.
To test this patch, use Windows 10 on Java 9 or Java 10, and use the workaround
in https://issues.apache.org/jira/browse/NETBEANS-1227 to tell Windows to let
NetBeans manage DPI scaling on its own.
NetBeans screenshots before and after patch:
![netbeans-1238 before patch](https://user-images.githubusercontent.com/886243/45390064-dfb62b80-b5eb-11e8-8d15-3f91739c7eb2.png)
![netbeans-1238 after patch](https://user-images.githubusercontent.com/886243/45390063-dfb62b80-b5eb-11e8-8dcc-45fc4ea08879.png)
Output of the VectorIconTest, showing the old Windows icons next to the new scalalble ones, as well as corresponding icons on other LAFs that might have to be vectorized in the future (e.g. on MacOS):
![vectoricontester output](https://user-images.githubusercontent.com/886243/45390094-f492bf00-b5eb-11e8-93a0-8d2ab5606697.png)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists