From 0a2dcafb9f4de7ed35b6b9d693034c9e8367ebd3 Mon Sep 17 00:00:00 2001 From: Sergey Malenkov Date: Thu, 11 May 2017 22:22:47 +0300 Subject: [PATCH] IDEA-165089 put the toolbar into the box and align with the right part --- .../ide/fileTemplates/impl/AllFileTemplatesConfigurable.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/ide/fileTemplates/impl/AllFileTemplatesConfigurable.java b/platform/lang-impl/src/com/intellij/ide/fileTemplates/impl/AllFileTemplatesConfigurable.java index 6dc28a91b7d6..a9161e347539 100644 --- a/platform/lang-impl/src/com/intellij/ide/fileTemplates/impl/AllFileTemplatesConfigurable.java +++ b/platform/lang-impl/src/com/intellij/ide/fileTemplates/impl/AllFileTemplatesConfigurable.java @@ -40,6 +40,7 @@ import com.intellij.openapi.util.Disposer; import com.intellij.ui.IdeBorderFactory; import com.intellij.ui.ScrollPaneFactory; import com.intellij.ui.TabbedPaneWrapper; +import com.intellij.ui.border.CustomLineBorder; import com.intellij.util.ArrayUtil; import com.intellij.util.PlatformIcons; import com.intellij.util.containers.ContainerUtil; @@ -317,14 +318,14 @@ public class AllFileTemplatesConfigurable implements SearchableConfigurable, Con myCurrentTab.getComponent()); myToolBar = ActionManager.getInstance().createActionToolbar(ActionPlaces.UNKNOWN, group, true).getComponent(); - myToolBar.setBorder(IdeBorderFactory.createEmptyBorder()); + myToolBar.setBorder(new CustomLineBorder(1, 1, 0, 1)); SchemesPanel schemesPanel = new SchemesPanel(); schemesPanel.setBorder(JBUI.Borders.empty(5, 10, 0, 10)); schemesPanel.resetSchemes(Arrays.asList(FileTemplatesScheme.DEFAULT, myManager.getProjectScheme())); JPanel leftPanelWrapper = new JPanel(new BorderLayout()); - leftPanelWrapper.setBorder(JBUI.Borders.empty(0, 10, 10, 0)); + leftPanelWrapper.setBorder(JBUI.Borders.empty(10, 10, 10, 0)); leftPanelWrapper.add(BorderLayout.NORTH, myToolBar); leftPanelWrapper.add(BorderLayout.CENTER, myLeftPanel);