[hg] main-silver: #232729 - Dark Nimbus is also a dark color l&f...

  • From: "S. Aubrecht" < >
  • To:
  • Subject: [hg] main-silver: #232729 - Dark Nimbus is also a dark color l&f...
  • Date: Thu, 18 Jul 2013 07:57:19 -0700

changeset 07a6e88bd660 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/07a6e88bd660
description:
        #232729 - Dark Nimbus is also a dark color l&f theme

diffstat:

 
options.editor/src/org/netbeans/modules/options/colors/FontAndColorsPanel.java
 |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (20 lines):

diff --git 
a/options.editor/src/org/netbeans/modules/options/colors/FontAndColorsPanel.java
 
b/options.editor/src/org/netbeans/modules/options/colors/FontAndColorsPanel.java
--- 
a/options.editor/src/org/netbeans/modules/options/colors/FontAndColorsPanel.java
+++ 
b/options.editor/src/org/netbeans/modules/options/colors/FontAndColorsPanel.java
@@ -60,6 +60,7 @@
 import javax.swing.JPanel;
 import javax.swing.border.EmptyBorder;
 import javax.swing.plaf.metal.MetalLookAndFeel;
+import javax.swing.plaf.nimbus.NimbusLookAndFeel;
 import org.netbeans.api.options.OptionsDisplayer;
 import org.netbeans.spi.options.OptionsPanelController;
 import org.openide.DialogDisplayer;
@@ -388,6 +389,7 @@
 
     private static boolean isDarkLaF() {
         Preferences prefs = NbPreferences.root().node( "laf" ); //NOI18N
-        return prefs.getBoolean( "theme.dark", false ) && 
MetalLookAndFeel.class.getName().equals( prefs.get( "laf", "" ) ); //NOI18N
+        return prefs.getBoolean( "theme.dark", false ) && 
(MetalLookAndFeel.class.getName().equals( prefs.get( "laf", "" ))
+                                                        || 
NimbusLookAndFeel.class.getName().equals( prefs.get( "laf", "" )) ); //NOI18N
     }
 }

[hg] main-silver: #232729 - Dark Nimbus is also a dark color l&f...

S. Aubrecht 07/18/2013

Project Features

About this Project

Editor was started in November 2009, is owned by Martin Ryzl, and has 147 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close