You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that the Flat Look and Feel has a ImageIcon hard code when generating a disabled Icon for buttons. Using Ikonli with FlatLAF does not really disable the icons.
I had to add the following code to convert to ImageIcon. It will be nice to add to FontIcon itself.
private ImageIcon toImageIcon(Icon icon) {
BufferedImage image = new BufferedImage(icon.getIconWidth(), icon.getIconHeight(), BufferedImage.TYPE_INT_ARGB);
icon.paintIcon(null, image.getGraphics(), 0, 0);
ImageIcon ii = new ImageIcon(image);
return ii;
}
The text was updated successfully, but these errors were encountered:
Hi,
It seems that the Flat Look and Feel has a ImageIcon hard code when generating a disabled Icon for buttons. Using Ikonli with FlatLAF does not really disable the icons.
I had to add the following code to convert to ImageIcon. It will be nice to add to FontIcon itself.
The text was updated successfully, but these errors were encountered: