From a8ae6f2a65ad66cb11908a8873a68e87e199c1ed Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Tue, 23 Jun 2026 19:37:33 +0200 Subject: [PATCH] GUI: rename Pot reset button to "Set" and move it next to its spinbox MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Now that doubleSpinBox_pot_temp carries the target temperature, the old "Pot reset to ambient temperature" label no longer described what the button does and reserved far more width than a short label needs. Shortened to "Set" and repositioned immediately to the right of the Pot [°C] label/spinbox it applies, with both shifted left to fill the space the long label used to need. --- client/brewpi.ui | 10 +++++----- client/main_window.py | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/client/brewpi.ui b/client/brewpi.ui index 1599820..d88a957 100644 --- a/client/brewpi.ui +++ b/client/brewpi.ui @@ -3742,9 +3742,9 @@ - 700 + 880 500 - 220 + 70 31 @@ -3752,13 +3752,13 @@ Only available when the server's Pot is simulated - Pot reset to ambient temperature + Set - 930 + 700 500 91 31 @@ -3774,7 +3774,7 @@ - 1030 + 800 500 70 31 diff --git a/client/main_window.py b/client/main_window.py index 111972b..86afd2b 100644 --- a/client/main_window.py +++ b/client/main_window.py @@ -1245,14 +1245,14 @@ class Ui_MainWindow(object): self.doubleSpinBox_ambient.setSingleStep(1.0) self.doubleSpinBox_ambient.setObjectName("doubleSpinBox_ambient") self.btn_pot_reset = QtWidgets.QPushButton(self.centralwidget) - self.btn_pot_reset.setGeometry(QtCore.QRect(700, 500, 220, 31)) + self.btn_pot_reset.setGeometry(QtCore.QRect(880, 500, 70, 31)) self.btn_pot_reset.setObjectName("btn_pot_reset") self.label_pot_temp = QtWidgets.QLabel(self.centralwidget) - self.label_pot_temp.setGeometry(QtCore.QRect(930, 500, 91, 31)) + self.label_pot_temp.setGeometry(QtCore.QRect(700, 500, 91, 31)) self.label_pot_temp.setAlignment(QtCore.Qt.AlignCenter) self.label_pot_temp.setObjectName("label_pot_temp") self.doubleSpinBox_pot_temp = QtWidgets.QDoubleSpinBox(self.centralwidget) - self.doubleSpinBox_pot_temp.setGeometry(QtCore.QRect(1030, 500, 70, 31)) + self.doubleSpinBox_pot_temp.setGeometry(QtCore.QRect(800, 500, 70, 31)) self.doubleSpinBox_pot_temp.setDecimals(0) self.doubleSpinBox_pot_temp.setMinimum(-999.0) self.doubleSpinBox_pot_temp.setMaximum(999.0) @@ -1331,7 +1331,7 @@ class Ui_MainWindow(object): self.label_ambient.setText(_translate("MainWindow", "Ambient [°C]")) self.doubleSpinBox_ambient.setToolTip(_translate("MainWindow", "Set the simulated/assumed ambient temperature")) self.btn_pot_reset.setToolTip(_translate("MainWindow", "Only available when the server\'s Pot is simulated")) - self.btn_pot_reset.setText(_translate("MainWindow", "Pot reset to ambient temperature")) + self.btn_pot_reset.setText(_translate("MainWindow", "Set")) self.label_pot_temp.setText(_translate("MainWindow", "Pot [°C]")) self.doubleSpinBox_pot_temp.setToolTip(_translate("MainWindow", "Pre-dial the temperature btn_pot_reset applies to the simulated Pot")) self.label_8.setText(_translate("MainWindow", "Host"))