From a91fc130c8f7bc6bc522981975a8eee9f595c04f Mon Sep 17 00:00:00 2001 From: Konstantin Bulenkov Date: Thu, 30 Jun 2016 22:24:21 +0200 Subject: [PATCH] use HiDPI aware borders --- .../src/com/intellij/ide/actions/Switcher.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/platform-impl/src/com/intellij/ide/actions/Switcher.java b/platform/platform-impl/src/com/intellij/ide/actions/Switcher.java index 6c2fd575966f..6220dbacb697 100644 --- a/platform/platform-impl/src/com/intellij/ide/actions/Switcher.java +++ b/platform/platform-impl/src/com/intellij/ide/actions/Switcher.java @@ -314,7 +314,7 @@ public class Switcher extends AnAction implements DumbAware { } }; - descriptions.setBorder(BorderFactory.createEmptyBorder(1, 4, 1, 4)); + descriptions.setBorder(JBUI.Borders.empty(1, 4)); descriptions.add(pathLabel, BorderLayout.CENTER); twManager = ToolWindowManager.getInstance(project); DefaultListModel twModel = new DefaultListModel(); @@ -341,7 +341,7 @@ public class Switcher extends AnAction implements DumbAware { || mySpeedSearch.getComparator().matchingFragments(mySpeedSearch.getEnteredPrefix(), s) != null, mySpeedSearch); } - toolWindows.setBorder(IdeBorderFactory.createEmptyBorder(5, 5, 5, 20)); + toolWindows.setBorder(JBUI.Borders.empty(5, 5, 5, 20)); toolWindows.setSelectionMode(pinned ? ListSelectionModel.MULTIPLE_INTERVAL_SELECTION : ListSelectionModel.SINGLE_SELECTION); toolWindows.setCellRenderer(new SwitcherToolWindowsListRenderer(mySpeedSearch, map, myPinned) { @NotNull @@ -548,7 +548,7 @@ public class Switcher extends AnAction implements DumbAware { files.getSelectionModel().addListSelectionListener(filesSelectionListener); files.setCellRenderer(filesRenderer); - files.setBorder(IdeBorderFactory.createEmptyBorder(5, 5, 5, 5)); + files.setBorder(JBUI.Borders.empty(5)); files.addKeyListener(this); ScrollingUtil.installActions(files); files.addMouseListener(this);