From 8ab0fb6a74cc7b000e40221dcda98f1a03578284 Mon Sep 17 00:00:00 2001 From: Mikhail Sokolov Date: Fri, 6 Jul 2018 17:07:50 +0300 Subject: [PATCH] IDEA-193051 New SE: Correct the size and indents for buttons --- .../ide/actions/searcheverywhere/SearchEverywhereUI.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/ide/actions/searcheverywhere/SearchEverywhereUI.java b/platform/lang-impl/src/com/intellij/ide/actions/searcheverywhere/SearchEverywhereUI.java index 3a4a376376ee..aa52eb3f5598 100644 --- a/platform/lang-impl/src/com/intellij/ide/actions/searcheverywhere/SearchEverywhereUI.java +++ b/platform/lang-impl/src/com/intellij/ide/actions/searcheverywhere/SearchEverywhereUI.java @@ -374,15 +374,17 @@ public class SearchEverywhereUI extends BorderLayoutPanel implements Disposable, res.setOpaque(false); res.add(myNonProjectCB); - res.add(Box.createHorizontalStrut(JBUI.scale(19))); DefaultActionGroup actionGroup = new DefaultActionGroup(); actionGroup.addAction(new ShowInFindToolWindowAction()); actionGroup.addAction(new ShowFilterAction()); ActionToolbar toolbar = ActionManager.getInstance().createActionToolbar("search.everywhere.toolbar", actionGroup, true); + toolbar.setLayoutPolicy(ActionToolbar.NOWRAP_LAYOUT_POLICY); + toolbar.updateActionsImmediately(); JComponent toolbarComponent = toolbar.getComponent(); toolbarComponent.setOpaque(false); + toolbarComponent.setBorder(JBUI.Borders.empty(2, 18, 2, 9)); res.add(toolbarComponent); return res; }