88import com .nilo .plaf .nimrod .NimRODTheme ;
99import java .awt .Color ;
1010import java .awt .Font ;
11+ import java .util .prefs .Preferences ;
1112import javax .swing .UIDefaults ;
12- import javax .swing .UIManager ;
1313import org .openide .util .NbPreferences ;
1414
1515/**
@@ -49,6 +49,27 @@ public DarkMonkeyLookAndFeel(){
4949 case "yellow" :
5050 setCurrentTheme (getYellowTheme ());
5151 break ;
52+
53+ case "yellow-two" :
54+ setCurrentTheme (getYellowTwoTheme ());
55+ break ;
56+
57+ case "manual" :
58+ NimRODTheme nt = new NimRODTheme ();
59+ Preferences pref = NbPreferences .root ().node ("laf" );
60+ nt .setBlack (Color .decode (pref .get ("darkmonkey.color.black" , "#E8EAE0" )));
61+ nt .setWhite (Color .decode (pref .get ("darkmonkey.color.white" , "#373737" )));
62+ nt .setPrimary1 (Color .decode (pref .get ("darkmonkey.color.primary1" , "#1A28BD" )));
63+ nt .setPrimary2 (Color .decode (pref .get ("darkmonkey.color.primary2" , "#233FB0" )));
64+ nt .setPrimary3 (Color .decode (pref .get ("darkmonkey.color.primary3" , "#3AA5F2" )));
65+ nt .setSecondary1 (Color .decode (pref .get ("darkmonkey.color.secondary1" , "#303030" )));
66+ nt .setSecondary2 (Color .decode (pref .get ("darkmonkey.color.secondary2" , "#3A3A3A" )));
67+ nt .setSecondary3 (Color .decode (pref .get ("darkmonkey.color.secondary3" , "#515151" )));
68+ nt .setFrameOpacity (180 );
69+ nt .setMenuOpacity (219 );
70+ nt .setFont (Font .decode ("DejaVu Sans Condensed-PLAIN-12" ));
71+ setCurrentTheme (nt );
72+ break ;
5273
5374 case "legacy" :
5475 setCurrentTheme (getLegacyTheme ());
@@ -64,7 +85,6 @@ public DarkMonkeyLookAndFeel(){
6485 } catch (Exception e ) {
6586 setCurrentTheme (getBlueTheme ());
6687 }
67-
6888 }
6989
7090 /**
@@ -90,7 +110,7 @@ public String getName() {
90110
91111 /**
92112 * This method override, getDescription() returns the String
93- * "Look and Feel DarkMonkey - 2015 , based on NimROD 2007" for
113+ * "Look and Feel DarkMonkey - 2016 , based on NimROD 2007" for
94114 * instances of future programming that might use it as a tool tip or
95115 * small descriptor in their Look and Feel modules.
96116 * @return String "Look and Feel DarkMonkey - 2016, based on NimROD 2007"
@@ -104,6 +124,7 @@ public String getDescription() {
104124 @ Override
105125 protected void initClassDefaults ( UIDefaults table ) {
106126 super .initClassDefaults ( table );
127+ // MenuBarUI currently doesn't compile table.put("MenuBarUI", "org.jme3.netbeans.plaf.darkmonkey.components.MenuBarUI");
107128 /*
108129 for( Enumeration en = table.keys(); en.hasMoreElements(); ) {
109130 System.out.println( "[" + en.nextElement() + "]");
@@ -166,6 +187,24 @@ private NimRODTheme getYellowTheme() {
166187 return nt ;
167188 }
168189
190+ private NimRODTheme getYellowTwoTheme () {
191+ NimRODTheme nt = new NimRODTheme ();
192+
193+ nt .setBlack (Color .decode ("#F3C802" )); // Font Foreground
194+ nt .setWhite (Color .decode ("#262626" )); // Font Background
195+ nt .setPrimary1 (Color .decode ("#2040D0" )); // Surrounds Bars and Shortcuts
196+ nt .setPrimary2 (Color .decode ("#1D3DBF" )); // mainly used for bars
197+ nt .setPrimary3 (Color .decode ("#1D3DBF" )); // e.g. for open tabs (Application)
198+ nt .setSecondary1 (Color .decode ("#000000" )); // Outlines, some decoration and tooltips for disabled buttons
199+ nt .setSecondary2 (Color .decode ("#A6A086" )); // Selected inactive things (and disabled text)
200+ nt .setSecondary3 (Color .decode ("#323232" )); // Unselected Frames (and general background color)
201+ nt .setFrameOpacity (180 );
202+ nt .setMenuOpacity (219 );
203+ nt .setFont (Font .decode ("DejaVu Sans Condensed-PLAIN-12" ));
204+
205+ return nt ;
206+ }
207+
169208 /**
170209 * This is the Legacy Theme. It's the one that DarkMonkey had before alpha-4
171210 * @return
@@ -200,9 +239,9 @@ private NimRODTheme getDebugTheme() {
200239 nt .setPrimary1 (Color .decode ("#FF0000" )); // Surrounds Bars and Shortcuts
201240 nt .setPrimary2 (Color .decode ("#00FF00" )); // mainly used for bars
202241 nt .setPrimary3 (Color .decode ("#0000FF" )); // e.g. for open tabs (Application)
203- nt .setSecondary1 (Color .decode ("#00FF00 " )); // Selected Things
204- nt .setSecondary2 (Color .decode ("#FF0000 " )); // Selected inactive Things
205- nt .setSecondary3 (Color .decode ("#0000FF " )); // Unselected Frames
242+ nt .setSecondary1 (Color .decode ("#FFFF00 " )); // Outlines, some decoration and tooltips for disabled buttons
243+ nt .setSecondary2 (Color .decode ("#FF00FF " )); // Selected inactive things (and disabled text)
244+ nt .setSecondary3 (Color .decode ("#00FFFF " )); // Unselected Frames
206245 nt .setFrameOpacity (180 );
207246 nt .setMenuOpacity (219 );
208247 nt .setFont (Font .decode ("DejaVu Sans Condensed-PLAIN-12" ));
0 commit comments