Replace built-in icons with SVG? #640
Replies: 4 comments 5 replies
-
Yes, for following reasoning: To solve the problem of visibility (which I think is a problem), I see more in the direction to replace the colors in the icons from fixed to taking the background color of the theme (which can be done easily) and xor it with 0xFFFFFF, hence for a light theme it becomes dark, and for a dark theme it becomes light. About "ugly", this is in the eye of the beholder :-) As for the animated icons, this we can supres without a problem, was just a "fun" part that I build in once :-) |
Beta Was this translation helpful? Give feedback.
-
I did some preliminary tests using Batik. It is pretty simple to be incorporated as it comes with Swing component, but I cannot call I was successful as more advanced designs I made in Inkscape did not work as expected (left expected, right actual): Not sure what I did wrong yet, especially: second gate's gradient did not work, but first one's is drawn. Some plain horizontal lines are gone while others (same thickness) are here, colors are not really as expected, main text's glow is gone, etc. Nonetheless, for basic shapes like these in i. e. toolbar can be rendered correctly right now, that's the good step forward anyway. |
Beta Was this translation helpful? Give feedback.
-
Hello, Independently of that To be experimented. I will also prepare some SVG icons to test. |
Beta Was this translation helpful? Give feedback.
-
The test icons of the lib wiring in svg are in \doc\ icons\svgwithbackground To give precisions on my previous statement. I'm a big supporter of svg |
Beta Was this translation helpful? Give feedback.
-
Are there any objections to completely get rid of built-in "coded" icons and replace them with SVG (i.e. via Apache Batik or anything lighter)? That'd remove lot of useless code and allow support for different icon sets (i.e. light/dark). Current icons are both ugly and hardcoded, which makes a bit problematic to properly deal with darl/light themes etc. Not to mention animated icons that are (IMHO) confusing and pretty bad UX.
Beta Was this translation helpful? Give feedback.
All reactions