Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Donate another batch of SVG icons #8083

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

eirikbakke
Copy link
Contributor

@eirikbakke eirikbakke commented Dec 22, 2024

Here is another batch of SVG icons for NetBeans, drawn by myself. This is a continuation of the effort to make NetBeans look good on HiDPI/Retina screens (see previous PRs).

There are 99 new icons in total. Many are used in multiple places in the codebase. See this generated page for a visual summary.

Some examples:

image

image

image

Some IDE icons now have SVG icons available, but still load their old PNG versions (e.g. the lightbulb hint icons in the first screenshot above). In these cases we will need to find the place in the codebase where icon loading happens, and change it manually. Automatic loading of SVG versions only happens when icons are loaded via ImageUtilities.loadImage or loadImageIcon, rather than e.g. "new ImageIcon()" or Toolkit.getImage. Such changes are left for future work (contributions welcome!)

There is a corresponding PR to the icon-scripts tool in the netbeans-tools repo, to add the latest version of the original Adobe Illustrator file and update file that specifies the mapping from bitmap to SVG icon files.

…h the style of other NetBeans icons.

The icons for OptionPane are 32x32 pixel version of the info/error/warning/question icons (scaled up from similar 16x16 SVG icons, but maintaining the 1px border width as this looks better).

The icons for file chooser are "folder", "file", "parent folder", and "home folder".

To keep the SVG loader module optional for NetBeans Platform apps, PNG versions of the icons are used here. SVG versions will be added in a separate commit (together with a bunch of other SVG files).
…on of the effort to make NetBeans look good on HiDPI/Retina screens.

There are 99 new icons in total, copied into many more places where duplicate bitmap icons were identified. Some existing icons were also adjusted, and some existing icons were copied into new locations where additional duplicates were identified.

I prioritized icons that are commonly seen in the IDE, and which happen to be easy to draw, as well as icons that are similar to already-drawn ones or simple variations or combinations thereof.

The changes in this commit consist purely of copying SVG files into various locations in the repo; this was done by the hidpi-icons script at https://github.com/apache/netbeans-tools/tree/master/icon-scripts/hidpi-icons . I will open a separate Pull Request for that repo, to update the Adobe Illustrator file and icon mapping files.

The 'icons.html' file that is generated by the hidpi-icons script is now included as part of the commit, in the root of the NetBeans repo. It includes a preamble with useful information and links to the README.

See the Pull Request for screenshots.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Look and Feel Platform [ci] enable platform tests (platform/*) UI User Interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant