mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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:
committed by
intellij-monorepo-bot
parent
bdd9b06331
commit
5eaa8b827a
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user