Browse Source

Fixes #75 - DarkMonkey: We can now change the Diff-Colors and the User can adjust them manually using the Fonts & Colors Dialog. Also see 1e92c2f

MeFisto94 9 years ago
parent
commit
6bff07199e

+ 2 - 1
jme3-dark-laf/src/org/jme3/netbeans/plaf/darkmonkey/Installer.java

@@ -47,7 +47,6 @@ public class Installer extends ModuleInstall {
                     
                     
                     /* The laf file is parsed before this code is executed so we set the LaF once programatically */
                     /* The laf file is parsed before this code is executed so we set the LaF once programatically */
                    UIManager.setLookAndFeel("org.jme3.netbeans.plaf.darkmonkey.DarkMonkeyLookAndFeel");
                    UIManager.setLookAndFeel("org.jme3.netbeans.plaf.darkmonkey.DarkMonkeyLookAndFeel");
-                   UIManager.put("Nb.DarkMonkeyLFCustoms", new DarkMonkeyLFCustoms((DarkMonkeyLookAndFeel)UIManager.getLookAndFeel()));
                    
                    
                    /* Calling Netbeans Internal API, unfortunately there is no way around that, apart from manually fiddling with the config/.nbattrs file,
                    /* Calling Netbeans Internal API, unfortunately there is no way around that, apart from manually fiddling with the config/.nbattrs file,
                    which would need some parsing and a restart to take effect: <fileobject name=""> <attr name="Editors\currentFontColorProfile" stringvalue="Dark Monkey"/></fileobject>
                    which would need some parsing and a restart to take effect: <fileobject name=""> <attr name="Editors\currentFontColorProfile" stringvalue="Dark Monkey"/></fileobject>
@@ -57,6 +56,8 @@ public class Installer extends ModuleInstall {
                    setting.setCurrentFontColorProfile("Dark Monkey");
                    setting.setCurrentFontColorProfile("Dark Monkey");
                 }
                 }
             }
             }
+            
+            UIManager.put("Nb.DarkMonkeyLFCustoms", new DarkMonkeyLFCustoms((DarkMonkeyLookAndFeel)UIManager.getLookAndFeel()));
         } catch (Exception e) {}
         } catch (Exception e) {}
         
         
     }
     }