ctrl_panel: Stop crushing spinboxes

It might not be the case on some themes, but on the default Qt theme the
spinbox are a bit too short for the containing numbers. See
https://github.com/pyqtgraph/pyqtgraph/issues/701.
This commit is contained in:
atse 2024-06-28 11:21:21 +08:00
parent 8902052ee0
commit abecac44d6

View File

@ -55,6 +55,7 @@
], ],
"triggerOnShow": true, "triggerOnShow": true,
"decimals": 6, "decimals": 6,
"compactHeight": false,
"param": [ "param": [
"pwm", "pwm",
"ch", "ch",
@ -74,6 +75,7 @@
300 300
], ],
"format": "{value:.4f}", "format": "{value:.4f}",
"compactHeight": false,
"param": [ "param": [
"pid", "pid",
"ch", "ch",
@ -98,6 +100,7 @@
"value": 0, "value": 0,
"step": 100, "step": 100,
"decimals": 6, "decimals": 6,
"compactHeight": false,
"limits": [ "limits": [
0, 0,
2000 2000
@ -117,6 +120,7 @@
"value": 0, "value": 0,
"step": 100, "step": 100,
"decimals": 6, "decimals": 6,
"compactHeight": false,
"limits": [ "limits": [
0, 0,
2000 2000
@ -140,6 +144,7 @@
5 5
], ],
"siPrefix": true, "siPrefix": true,
"compactHeight": false,
"param": [ "param": [
"pwm", "pwm",
"ch", "ch",
@ -170,6 +175,7 @@
100 100
], ],
"format": "{value:.4f}", "format": "{value:.4f}",
"compactHeight": false,
"param": [ "param": [
"s-h", "s-h",
"ch", "ch",
@ -185,6 +191,7 @@
"value": 10000, "value": 10000,
"step": 1, "step": 1,
"siPrefix": true, "siPrefix": true,
"compactHeight": false,
"param": [ "param": [
"s-h", "s-h",
"ch", "ch",
@ -200,6 +207,7 @@
"value": 3950, "value": 3950,
"step": 1, "step": 1,
"decimals": 4, "decimals": 4,
"compactHeight": false,
"param": [ "param": [
"s-h", "s-h",
"ch", "ch",
@ -243,6 +251,7 @@
"type": "float", "type": "float",
"step": 0.1, "step": 0.1,
"suffix": "", "suffix": "",
"compactHeight": false,
"param": [ "param": [
"pid", "pid",
"ch", "ch",
@ -256,6 +265,7 @@
"title": "Ki (Hz)", "title": "Ki (Hz)",
"type": "float", "type": "float",
"step": 0.1, "step": 0.1,
"compactHeight": false,
"param": [ "param": [
"pid", "pid",
"ch", "ch",
@ -269,6 +279,7 @@
"title": "Kd (s)", "title": "Kd (s)",
"type": "float", "type": "float",
"step": 0.1, "step": 0.1,
"compactHeight": false,
"param": [ "param": [
"pid", "pid",
"ch", "ch",
@ -294,6 +305,7 @@
2000 2000
], ],
"decimals": 6, "decimals": 6,
"compactHeight": false,
"param": [ "param": [
"pid", "pid",
"ch", "ch",
@ -312,6 +324,7 @@
2000 2000
], ],
"decimals": 6, "decimals": 6,
"compactHeight": false,
"param": [ "param": [
"pid", "pid",
"ch", "ch",
@ -336,6 +349,7 @@
"value": 20, "value": 20,
"step": 0.1, "step": 0.1,
"format": "{value:.4f}", "format": "{value:.4f}",
"compactHeight": false,
"pid_autotune": [ "pid_autotune": [
"target_temp", "target_temp",
"ch" "ch"
@ -348,6 +362,7 @@
"type": "float", "type": "float",
"value": 0, "value": 0,
"decimals": 6, "decimals": 6,
"compactHeight": false,
"step": 100, "step": 100,
"limits": [ "limits": [
-2000, -2000,
@ -367,6 +382,7 @@
"step": 0.1, "step": 0.1,
"prefix": "±", "prefix": "±",
"format": "{value:.4f}", "format": "{value:.4f}",
"compactHeight": false,
"pid_autotune": [ "pid_autotune": [
"temp_swing", "temp_swing",
"ch" "ch"
@ -380,6 +396,7 @@
"value": 3.0, "value": 3.0,
"step": 0.1, "step": 0.1,
"format": "{value:.4f}", "format": "{value:.4f}",
"compactHeight": false,
"pid_autotune": [ "pid_autotune": [
"lookback", "lookback",
"ch" "ch"