This is an automated email from the ASF dual-hosted git repository.

ebakke pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git


The following commit(s) were added to refs/heads/master by this push:
     new db0f59f623b On FlatLAF, add a thin top border on the quick search pane 
that is shown when the user starts typing in an Outline or TreeView component.
db0f59f623b is described below

commit db0f59f623b47138a5c41f0a5bed2194fc76fc6d
Author: Eirik Bakke <[email protected]>
AuthorDate: Mon Feb 5 16:31:07 2024 -0500

    On FlatLAF, add a thin top border on the quick search pane that is shown 
when the user starts typing in an Outline or TreeView component.
---
 .../src/org/netbeans/swing/laf/flatlaf/FlatLFCustoms.java          | 2 ++
 platform/openide.awt/src/org/openide/awt/QuickSearch.java          | 7 ++++++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git 
a/platform/o.n.swing.laf.flatlaf/src/org/netbeans/swing/laf/flatlaf/FlatLFCustoms.java
 
b/platform/o.n.swing.laf.flatlaf/src/org/netbeans/swing/laf/flatlaf/FlatLFCustoms.java
index 4aab548f173..a3e47b104f9 100644
--- 
a/platform/o.n.swing.laf.flatlaf/src/org/netbeans/swing/laf/flatlaf/FlatLFCustoms.java
+++ 
b/platform/o.n.swing.laf.flatlaf/src/org/netbeans/swing/laf/flatlaf/FlatLFCustoms.java
@@ -89,6 +89,8 @@ public class FlatLFCustoms extends LFCustoms {
 
             EDITOR_TABSCOMPONENT_BORDER, BorderFactory.createEmptyBorder(),
             EDITOR_TOOLBAR_BORDER, new CompoundBorder(DPISafeBorder.matte(0, 
0, 1, 0, editorContentBorderColor), BorderFactory.createEmptyBorder(1, 0, 1, 
0)),
+            "NbExplorerView.quicksearch.border.instance",
+                new CompoundBorder(DPISafeBorder.matte(1, 0, 0, 0, 
editorContentBorderColor), BorderFactory.createEmptyBorder(2, 6, 2, 2)),
             EDITOR_TAB_CONTENT_BORDER, DPISafeBorder.matte(0, 1, 1, 1, 
editorContentBorderColor),
             VIEW_TAB_CONTENT_BORDER, DPISafeBorder.matte(0, 1, 1, 1, 
UIManager.getColor("TabbedContainer.view.contentBorderColor")), // NOI18N
 
diff --git a/platform/openide.awt/src/org/openide/awt/QuickSearch.java 
b/platform/openide.awt/src/org/openide/awt/QuickSearch.java
index 240b3057795..c88f1a8fa0f 100644
--- a/platform/openide.awt/src/org/openide/awt/QuickSearch.java
+++ b/platform/openide.awt/src/org/openide/awt/QuickSearch.java
@@ -23,6 +23,7 @@ import java.awt.event.*;
 import java.lang.ref.WeakReference;
 import java.util.function.Consumer;
 import javax.swing.*;
+import javax.swing.border.Border;
 import javax.swing.event.DocumentEvent;
 import javax.swing.event.DocumentListener;
 import javax.swing.event.PopupMenuEvent;
@@ -610,7 +611,11 @@ public class QuickSearch {
         public SearchPanel(JComponent component, boolean alwaysShown) {
             this.component = component;
             this.alwaysShown = alwaysShown;
-            if (isAquaLaF) {
+
+            Border customBorder = 
UIManager.getBorder("NbExplorerView.quicksearch.border.instance");
+            if (customBorder != null) {
+                setBorder(customBorder);
+            } else if (isAquaLaF) {
                 setBorder(BorderFactory.createEmptyBorder(9,6,8,2));
             } else {
                 setBorder(BorderFactory.createEmptyBorder(2,6,2,2));


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to