-
Notifications
You must be signed in to change notification settings - Fork 17
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
1.6.2-rc.1 fileChooser uses the icon of the target mod #65
base: architectury-1.21
Are you sure you want to change the base?
1.6.2-rc.1 fileChooser uses the icon of the target mod #65
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rewrote JFileChooser
Now to use it like this:
MidnightFileChooser fileChooser = new MidnightFileChooser(“currentDirectoryPath”, “modid”);
The icon for the mod modid
will be used
Looks great, but sadly, I cannot accept this. |
I heard you need to compress the size of the project, so why not remove |
MidnightLib-1.6.2-rc.2.zip And it is not the use of internal classes can be guaranteed to reduce the size of the compilation, for example, I provide you with two copies of the source code here, but the internal class will be separated from the size of the compiled jar is even smaller! You can notice that rc.2 has a smaller compilation size. |
MidnightColorUtil (just like the |
The one-file restriction is not for file size reasons. |
Now that I'm thinking about it, it doesn't make sense to keep it this way, as I want people to use the whole library... |
The main thing is that you can open the compiled jar with the compressed package browsing tool, and you will find that those internal classes will also generate independent |
You mean copying the entire MidnightConfig class directly when users develop their own modules? But you can actually let the user use the Mixin feature. But you're right, this PR can't be merged immediately in a hurry. |
Yes, exactly |
The file selector now uses the target mod's icon by default, or the midnightlib icon if there is no icon available.