apache / jmeter

Apache JMeter open-source load testing tool for analyzing and measuring the performance of a variety of services
https://jmeter.apache.org/
Apache License 2.0
8.41k stars 2.1k forks source link

Zoom in/out config settings or remember last zoom level or shortcut key #6104

Open jarnokau opened 12 months ago

jarnokau commented 12 months ago

Use case

working sometimes on 17" laptop screen sometimes working on 26" monitor requires changing zoom level. Personally I have to Zoom-in every time I open jmeter. it would be time saving and be less annoying if you could define desired zoom level to be used every time. in config you can change Icon size but you cannot change font size, only way to do that is zoom in and if you have to do more than one zoom then it is three times "open Options and zoom in"

Possible solution

possible solutions that would improve situation: 1)possibility to set text size like jmeter.tree.icons.size can be done. 2)have parameter in config file that you could set and it would be effective all the time. if you need different zoom level for different screens you can use two different configs and two starting files. 3) jmeter would remember last zoom level 4) shortcut key combination for zoom in and zoom out 5)zoom in and out button in tool bar

Possible workarounds

No response

JMeter Version

5.6.2

Java Version

1.8.0_381

OS Version

Windows 11

tricatch commented 4 months ago

workaround

  1. make jmeter_init.jsr223 text file

org.apache.jorphan.gui.JMeterUIDefaults.INSTANCE.setScale(1.3f); org.apache.jmeter.util.JMeterUtils.refreshUI();

  1. set init script file to jmeter.properties jsr223.init.file={user-path}/jmeter_init.jsr223

  2. run jmeter

jmeter.properties - extra ui setting

jmeter.toolbar.icons.size=32x32 jmeter.tree.icons.size=24x24 jsyntaxtextarea.font.family=Hack jsyntaxtextarea.font.size=28