DevCharly commented on PR #5760:
URL: https://github.com/apache/netbeans/pull/5760#issuecomment-1500481279

   > Aside : Would be great if it was possible to link images directly in the 
FlatLaf properties file loading, although I guess that would add some 
complications, particularly as we'd want to specify the class (ImageUtilities) 
that loads them. 
   
   That could be solved by specifying an "icon loader". E.g.:
   
   ~~~java
   FlatLaf.iconLoader = org.openide.util.ImageUtilities.loadImage()
   Tree.closedIcon = org/netbeans/swing/plaf/resources/hidpi-folder-closed.png
   ~~~
   
   Then FlatLaf could detect whether the icon is specified as a path and use 
the icon loader to load it.
   
   > Maybe an option to include a second String argument (eg. path) on the line 
to pass into the icon constructor?
   
   Also a good idea.
   
   I'll implement those ideas in one of the next FlatLaf versions. Thx
   


-- 
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

Reply via email to