Description
Describe the problem
The scale of the IDE's interface may be adjusted by the user in any of three ways:
- The "Interface scale > %" field in the "Preferences" dialog.
- The Edit > Increase Font Size" and Edit > Decrease Font Size" menu items.
- The "arduino-increase-font-size" and "arduino-decrease-font-size" keyboard shortcuts (Ctrl/Command+= and Ctrl/Command+-)
The first of these is restricted to a reasonable range of valid values.
The second two have no limits, which allows the user to set scales outside the valid range.
🐛 Setting the scale to a value outside the specified max-min range causes the scale stepper to behave unpredictably.
To reproduce
- Press and hold the Ctrl+- (Command+- for macOS users) keyboard shortcut for 5 seconds.
- Press the Ctrl+= (Command+= for macOS users) keyboard shortcut repeatedly.
🐛 The scale does not change. It appears the IDE interface scale is stuck (actually you only have to increase it enough to get back into the valid range)
Expected behavior
Interface scale value is limited to the valid range no matter which approach is used to change it.
The allowed range must be decided on and then the limits put in place.
Arduino IDE version
2.0.0-rc9.2.snapshot-0d545be
Operating system
Windows
Operating system version
10
Additional context
Previously reported at #1264 (comment)
Related: #1345
Issue checklist
- I searched for previous reports in the issue tracker
- I verified the problem still occurs when using the latest nightly build
- My report contains all necessary details