IJPL-164066 Add popup.resize.zone.* registry keys for Windows and Linux

Let's make it more consistent and possible for internal and power users
to adjust to their liking.

GitOrigin-RevId: b344587e147f8dce32ecf72a2b5ec0a76fa48906
This commit is contained in:
Sergei Tachenov
2024-10-17 16:56:01 +00:00
committed by intellij-monorepo-bot
parent bdd9b06331
commit 5eaa8b827a
2 changed files with 13 additions and 1 deletions
@@ -74,4 +74,12 @@ private fun defaultBorder(movable: Boolean): Insets {
}
}
private fun defaultZone(): Int = if (SystemInfo.isMac) Registry.intValue("popup.resize.zone.macos", 8) else 4
private fun defaultZone(): Int = if (SystemInfo.isMac) {
Registry.intValue("popup.resize.zone.macos", 8) // for some reason, small values on macOS make it really uncomfortable
}
else if (SystemInfo.isWindows) {
Registry.intValue("popup.resize.zone.windows", 4)
}
else {
Registry.intValue("popup.resize.zone.linux", 4)
}
@@ -1370,6 +1370,10 @@ allow.dialog.based.popups=false
allow.dialog.based.popups.description=Allows to use a JDialog as popup toplevel
popup.resize.zone.macos=8
popup.resize.zone.macos.description=The size of mouse resize zone on macOS
popup.resize.zone.windows=4
popup.resize.zone.windows.description=The size of mouse resize zone on Windows
popup.resize.zone.linux=4
popup.resize.zone.linux.description=The size of mouse resize zone on Linux
popup.fix.ide.frame.owner=false
popup.fix.ide.frame.owner.description=Uses correct owner for IdeFrame, but can break some popups