Re: Generate roof plugin

by dorin » Sun Jun 23, 2024 3:47 pm

The second one is Nimbus, also out the box LaF under linux.
I've simply add:

Code: Select all

 -Dswing.defaultlaf=javax.swing.plaf.nimbus.NimbusLookAndFeel 
in the bash file for SH3D.
You need to test only on default, the Nimbus is optional.
The axes is there:

Code: Select all

roofPreview = new ModelPreviewComponent(true, true, true, [size=3][u][b]true[/b][/u][/size] );
at 174 on GenrateRoofPluginView v.4.6

To have a more versatile UI for a plugin we need:
1. to have the necesary informations BEFORE the start of plugin or the UI. Something like this:

Code: Select all

for (UIManager.LookAndFeelInfo laf : UIManager.getInstalledLookAndFeels()) {
             if ("Nimbus".equals(laf.getName())) {
                 UIManager.setLookAndFeel(laf.getClassName());
                 //UIManager.getLookAndFeelDefaults().put("Panel.background", Color.white);
                 //UIManager.getLookAndFeelDefaults().put("Button.contentMargins", new InsetsUIResource(0,0,0,0));
             }
         }
And probably more.
2. To pack the plugin with all sizes(16, 32, 64) of icons
3. To put cases everywhere it need to use it.