atarw / material-ui-swing

A modern, Material Design UI for Java Swing
MIT License
653 stars 86 forks source link

Can't load /imgs/white/minimize.png #106

Closed majenkotech closed 4 years ago

majenkotech commented 4 years ago

Trying to use this on Ubuntu with OpenJDK 11.0.7 it fails to load /imgs/white/minimize.png.

I tracked this down to that one image being a 1-bit image, rather than RGBA or grayscale, and it really doesn't like that format.

For the time being I'm overlaying my own RGBA format of the same image over the content of the jar file, but it could do with being adjusted in the repo.

vincenzopalazzo commented 4 years ago

HI @majenkotech.

This bug was known in the pre-release_6.1 but I resolve it inside this commit

This branch is only for the official release and not for the dev process, for see the development condition you can look inside the development branch vincenzopalazzo/material-ui-swing

Some icon inside the project are also png, but I will update this with svg, with library https://jiconfont.github.io/swing

You can download the last version of the library here Download

If you are interested to know the change inside the library in the version 1.1.1 official you can see the CHANGELOG.md

vincenzopalazzo commented 4 years ago

Fixed in material-ui-swing-1.1.1-rc1, look here https://github.com/vincenzopalazzo/material-ui-swing/releases