Skip to content

Commit

Permalink
Improve a few more Windows LAF borders on HiDPI displays.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
eirikbakke committed Feb 26, 2020
1 parent 11a439b commit fa81a8a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ configurations are changed without logging out of Windows and back in again (as
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) {
Expand Down Expand Up @@ -227,7 +227,7 @@ public Object[] createApplicationSpecificKeysAndValues () {
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,
Expand Down

0 comments on commit fa81a8a

Please sign in to comment.