Переглянути джерело

- CNCJob UI - Autoleveller feature - added a StyleSheet for the Pause/resume button

Marius Stanciu 5 роки тому
батько
коміт
5c960debf5
1 змінених файлів з 8 додано та 0 видалено
  1. 8 0
      appGUI/ObjectUI.py

+ 8 - 0
appGUI/ObjectUI.py

@@ -2253,6 +2253,14 @@ class CNCObjectUI(ObjectUI):
         self.pause_resume_button.setSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
         self.pause_resume_button.setText(_("Pause/Resume"))
         self.pause_resume_button.setCheckable(True)
+        self.pause_resume_button.setStyleSheet("""
+                            RotatedToolButton:checked
+                            {
+                                background-color: red;
+                                color: white;
+                                border: none;
+                            }
+                            """)
 
         pause_frame = QtWidgets.QFrame()
         pause_frame.setContentsMargins(0, 0, 0, 0)