Quellcode durchsuchen

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

Marius Stanciu vor 5 Jahren
Ursprung
Commit
5c960debf5
1 geänderte Dateien mit 8 neuen und 0 gelöschten Zeilen
  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)