From 27798339006fa3eefc8e8a173a79836bbd91f105 Mon Sep 17 00:00:00 2001 From: Mikhail Sokolov Date: Wed, 21 Sep 2022 18:56:13 +0200 Subject: [PATCH] IDEA-301436 Wrong inset between IJ and hamburger icons GitOrigin-RevId: efe02e0773e81589bded4b984e3ef10bfcd53bd4 --- .../header/toolbar/ToolbarFrameHeader.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/platform-impl/src/com/intellij/openapi/wm/impl/customFrameDecorations/header/toolbar/ToolbarFrameHeader.kt b/platform/platform-impl/src/com/intellij/openapi/wm/impl/customFrameDecorations/header/toolbar/ToolbarFrameHeader.kt index 3565c8e40334..071f58526f4c 100644 --- a/platform/platform-impl/src/com/intellij/openapi/wm/impl/customFrameDecorations/header/toolbar/ToolbarFrameHeader.kt +++ b/platform/platform-impl/src/com/intellij/openapi/wm/impl/customFrameDecorations/header/toolbar/ToolbarFrameHeader.kt @@ -160,12 +160,12 @@ internal class ToolbarFrameHeader(frame: JFrame, ideMenu: IdeMenuBar) : FrameHea val menuPnl = NonOpaquePanel(GridBagLayout()).apply { val gb = GridBag().anchor(WEST).nextLine() - add(myMenuBar, gb.next().insetLeft(JBUI.scale(20)).fillCellVertically().weighty(1.0)) + add(myMenuBar, gb.next().insetLeft(JBUI.scale(16)).fillCellVertically().weighty(1.0)) add(Box.createHorizontalGlue(), gb.next().weightx(1.0).fillCell()) } val toolbarPnl = NonOpaquePanel(GridBagLayout()).apply { val gb = GridBag().anchor(WEST).nextLine() - add(mainMenuButton.button, gb.next().insetLeft(JBUI.scale(20))) + add(mainMenuButton.button, gb.next().insetLeft(JBUI.scale(16))) add(myToolbarPlaceholder, gb.next().weightx(1.0).fillCell()) }