You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by eb...@apache.org on 2020/02/26 17:07:09 UTC

[netbeans] branch master updated: Improve a few more Windows LAF borders on HiDPI displays.

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 fa81a8a  Improve a few more Windows LAF borders on HiDPI displays.
fa81a8a is described below

commit fa81a8a87861df1922c63f029d6db7d942b9bf22
Author: Eirik Bakke <eb...@ultorg.com>
AuthorDate: Tue Feb 25 13:51:04 2020 -0500

    Improve a few more Windows LAF borders on HiDPI displays.
    
    This applies the LAF adjustments from NETBEANS-3592 to a few more cases; JPopupMenu, JMenu, and the grey background area of NetBeans that is shown when no files are opened for editing.
---
 .../src/org/netbeans/swing/plaf/windows8/Windows8LFCustoms.java       | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/platform/o.n.swing.plaf/src/org/netbeans/swing/plaf/windows8/Windows8LFCustoms.java b/platform/o.n.swing.plaf/src/org/netbeans/swing/plaf/windows8/Windows8LFCustoms.java
index 7b48937..4256fe6 100644
--- a/platform/o.n.swing.plaf/src/org/netbeans/swing/plaf/windows8/Windows8LFCustoms.java
+++ b/platform/o.n.swing.plaf/src/org/netbeans/swing/plaf/windows8/Windows8LFCustoms.java
@@ -180,7 +180,7 @@ public final class Windows8LFCustoms extends LFCustoms {
         not use the borders from UIManager. */
         for (String key : new String[] {
                 "TextField.border", "PasswordField.border", "FormattedTextField.border", //NOI18N
-                "ScrollPane.border" }) //NOI18N
+                "ScrollPane.border", "PopupMenu.border", "Menu.border" }) //NOI18N
         {
             Object value = UIManager.getDefaults().get(key);
             if (value instanceof Border) {
@@ -227,7 +227,7 @@ public final class Windows8LFCustoms extends LFCustoms {
             DESKTOP_BACKGROUND, new Color(226, 223, 214), //NOI18N
             SCROLLPANE_BORDER_COLOR, new Color(127, 157, 185),
             DESKTOP_BORDER, new EmptyBorder(6, 5, 4, 6),
-            SCROLLPANE_BORDER, UIManager.get("ScrollPane.border"),
+            SCROLLPANE_BORDER, new DPIUnscaledBorder((Border) UIManager.get("ScrollPane.border")),
             EXPLORER_STATUS_BORDER, new StatusLineBorder(StatusLineBorder.TOP),
             EXPLORER_FOLDER_ICON , explorerIcon,
             EXPLORER_FOLDER_OPENED_ICON, explorerIcon,


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

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