@@ -28,6 +28,7 @@ public class LibGDXPluginSettingsPane {
2828 private JPanel root ;
2929 private JCheckBox showPreviewsOfColorCheckBox ;
3030 private JCheckBox neverAskAboutSkinFiles ;
31+ private JCheckBox showPreviewsOfColorInSkinCheckBox ;
3132
3233 private LibGDXPluginSettings settings = new LibGDXPluginSettings ();
3334
@@ -38,16 +39,19 @@ JComponent createPanel(@NotNull LibGDXPluginSettings settings) {
3839
3940 void apply () {
4041 settings .setEnableColorAnnotations (showPreviewsOfColorCheckBox .isSelected ());
42+ settings .setEnableColorAnnotationsInSkin (showPreviewsOfColorInSkinCheckBox .isSelected ());
4143 settings .setNeverAskAboutSkinFiles (neverAskAboutSkinFiles .isSelected ());
4244 }
4345
4446 void reset () {
4547 showPreviewsOfColorCheckBox .setSelected (settings .getEnableColorAnnotations ());
48+ showPreviewsOfColorInSkinCheckBox .setSelected (settings .getEnableColorAnnotationsInSkin ());
4649 neverAskAboutSkinFiles .setSelected (settings .getNeverAskAboutSkinFiles ());
4750 }
4851
4952 boolean isModified () {
5053 return showPreviewsOfColorCheckBox .isSelected () != settings .getEnableColorAnnotations ()
54+ || showPreviewsOfColorInSkinCheckBox .isSelected () != settings .getEnableColorAnnotationsInSkin ()
5155 || neverAskAboutSkinFiles .isSelected () != settings .getNeverAskAboutSkinFiles ();
5256 }
5357
@@ -67,16 +71,18 @@ boolean isModified() {
6771 */
6872 private void $$$setupUI$$$ () {
6973 root = new JPanel ();
70- root .setLayout (new GridLayoutManager (3 , 3 , new Insets (0 , 0 , 0 , 0 ), -1 , -1 ));
74+ root .setLayout (new GridLayoutManager (4 , 3 , new Insets (0 , 0 , 0 , 0 ), -1 , -1 ));
7175 showPreviewsOfColorCheckBox = new JCheckBox ();
7276 this .$$$loadButtonText$$$ (showPreviewsOfColorCheckBox , ResourceBundle .getBundle ("libgdxplugin" ).getString ("settings.enable.color.previews" ));
7377 root .add (showPreviewsOfColorCheckBox , new GridConstraints (0 , 0 , 1 , 3 , GridConstraints .ANCHOR_WEST , GridConstraints .FILL_NONE , GridConstraints .SIZEPOLICY_CAN_SHRINK | GridConstraints .SIZEPOLICY_CAN_GROW , GridConstraints .SIZEPOLICY_FIXED , null , null , null , 0 , false ));
7478 final Spacer spacer1 = new Spacer ();
75- root .add (spacer1 , new GridConstraints (2 , 1 , 1 , 1 , GridConstraints .ANCHOR_CENTER , GridConstraints .FILL_VERTICAL , 1 , GridConstraints .SIZEPOLICY_WANT_GROW , null , null , null , 0 , false ));
79+ root .add (spacer1 , new GridConstraints (3 , 1 , 1 , 1 , GridConstraints .ANCHOR_CENTER , GridConstraints .FILL_VERTICAL , 1 , GridConstraints .SIZEPOLICY_WANT_GROW , null , null , null , 0 , false ));
7680 neverAskAboutSkinFiles = new JCheckBox ();
77- neverAskAboutSkinFiles .setActionCommand ("Never ask about treating Json files which look like Skin files as Skin files" );
7881 this .$$$loadButtonText$$$ (neverAskAboutSkinFiles , ResourceBundle .getBundle ("libgdxplugin" ).getString ("settings.never.ask.about.skin.files" ));
79- root .add (neverAskAboutSkinFiles , new GridConstraints (1 , 0 , 1 , 2 , GridConstraints .ANCHOR_WEST , GridConstraints .FILL_NONE , GridConstraints .SIZEPOLICY_CAN_SHRINK | GridConstraints .SIZEPOLICY_CAN_GROW , GridConstraints .SIZEPOLICY_FIXED , null , null , null , 0 , false ));
82+ root .add (neverAskAboutSkinFiles , new GridConstraints (2 , 0 , 1 , 2 , GridConstraints .ANCHOR_WEST , GridConstraints .FILL_NONE , GridConstraints .SIZEPOLICY_CAN_SHRINK | GridConstraints .SIZEPOLICY_CAN_GROW , GridConstraints .SIZEPOLICY_FIXED , null , null , null , 0 , false ));
83+ showPreviewsOfColorInSkinCheckBox = new JCheckBox ();
84+ this .$$$loadButtonText$$$ (showPreviewsOfColorInSkinCheckBox , ResourceBundle .getBundle ("libgdxplugin" ).getString ("settings.enable.color.previews.skin" ));
85+ root .add (showPreviewsOfColorInSkinCheckBox , new GridConstraints (1 , 0 , 1 , 1 , GridConstraints .ANCHOR_WEST , GridConstraints .FILL_NONE , GridConstraints .SIZEPOLICY_CAN_SHRINK | GridConstraints .SIZEPOLICY_CAN_GROW , GridConstraints .SIZEPOLICY_FIXED , null , null , null , 0 , false ));
8086 }
8187
8288 /**
0 commit comments