[hg] main-silver: #232094 - It's difficult to read text in searc...

  • From: Milutin Kristofic < >
  • To:
  • Subject: [hg] main-silver: #232094 - It's difficult to read text in searc...
  • Date: Mon, 01 Jul 2013 17:51:25 -0700

changeset 093aebdbd0e4 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/093aebdbd0e4
description:
        #232094 - It's difficult to read text in search box at mode Dark 
Nimbus

diffstat:

 editor.search/src/org/netbeans/modules/editor/search/SearchBar.java |  8 
+++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (24 lines):

diff --git 
a/editor.search/src/org/netbeans/modules/editor/search/SearchBar.java 
b/editor.search/src/org/netbeans/modules/editor/search/SearchBar.java
--- a/editor.search/src/org/netbeans/modules/editor/search/SearchBar.java
+++ b/editor.search/src/org/netbeans/modules/editor/search/SearchBar.java
@@ -95,7 +95,7 @@
     // Delay times for incremental search [ms]
     private static final int SEARCH_DELAY_TIME_LONG = 300; // < 3 chars
     private static final int SEARCH_DELAY_TIME_SHORT = 20; // >= 3 chars
-    private static final Color DEFAULT_FG_COLOR = 
UIManager.getColor("textText"); //NOI18N
+    private static final Color DEFAULT_FG_COLOR = isCurrentLF("Nimbus") ? 
UIManager.getColor("text") : UIManager.getColor("textText"); //NOI18N
     private WeakReference<JTextComponent> actualTextComponent;
     private final List<PropertyChangeListener> actualComponentListeners = 
new LinkedList<>();
     private FocusAdapter focusAdapterForComponent;
@@ -1170,4 +1170,10 @@
             return true;
         }
     }
+    
+    private static boolean isCurrentLF(String lf) {
+        LookAndFeel laf = UIManager.getLookAndFeel();
+        String lfID = laf.getID();
+        return lf.equals(lfID);
+    }
 }
\ No newline at end of file

[hg] main-silver: #232094 - It's difficult to read text in searc...

Milutin Kristofic 07/02/2013

Project Features

About this Project

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