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

Rounded outlined icons #577

Merged
merged 3 commits into from Oct 30, 2022
Merged

Rounded outlined icons #577

merged 3 commits into from Oct 30, 2022

Conversation

DevCharly
Copy link
Collaborator

This PR modernizes the FlatLaf icons used in JFileChooser, JOptionPane and JTree.
The icons are now rounded and outlined.
The changes were inspired by macOS Big Sur/Montery, Windows 11 and IntelliJ IDEA New UI Preview (#543).

New/changed icons:

image

Old icons for comparison:

image

JFileChooser using new icons:

image

JFileChooser using old icons:

image

- reduced temporary memory usage by specifying optimal initial capacity to `new Path2D.Float()`
- replaced `path.append( new Line2D.Float(...) )` with `path.moveTo(...); path.lineTo(...);`, which does the same, but does not use temporary objects
@DevCharly DevCharly added this to the 3.0 milestone Aug 15, 2022
@DevCharly DevCharly merged commit 2bfbc9d into main Oct 30, 2022
@DevCharly DevCharly deleted the rounded-icons branch October 30, 2022 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant