mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IJPL-175785 Merged main menu: Main menu hover is very tiny in DFM, Full Screen modes
GitOrigin-RevId: 1dcc7785bb18a59be0031aa128bfdb9cb8303c8e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
f34e4f6158
commit
677e708e7e
+2
-2
@@ -68,7 +68,7 @@ internal class ToolbarFrameHeader(
|
||||
isOpaque = false
|
||||
}
|
||||
private val menuBarContainer = createMenuBarContainer()
|
||||
private val toolbarMainMenu = RootPaneUtil.createMenuBar(coroutineScope = coroutineScope, frame = frame, customMenuGroup = null)
|
||||
private val toolbarMainMenu = RootPaneUtil.createMenuBar(coroutineScope = coroutineScope, frame = frame, customMenuGroup = null).apply { isOpaque = false }
|
||||
private val mainMenuButton = MainMenuButton(coroutineScope, getButtonIcon()) { if (mode == ShowMode.TOOLBAR_WITH_MENU) toolbarMainMenu.menuCount else 0 }
|
||||
private val mainMenuButtonComponent = mainMenuButton.button
|
||||
private var toolbar: MainToolbar? = null
|
||||
@@ -471,7 +471,7 @@ internal class ToolbarFrameHeader(
|
||||
}
|
||||
val toolbarPnl = NonOpaquePanel(GridBagLayout()).apply {
|
||||
val gb = GridBag().anchor(WEST).nextLine()
|
||||
add(toolbarMainMenu, gb.next().fillCellVertically())
|
||||
add(toolbarMainMenu, gb.next().fillCellVertically().weighty(1.0))
|
||||
add(mainMenuButtonComponent, gb.next())
|
||||
add(toolbarPlaceholder, gb.next().weightx(1.0).fillCell())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user