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

This commit is contained in:
Marius Stanciu 2020-08-22 03:54:07 +03:00
parent e07c9b9560
commit 5c960debf5
1 changed files with 8 additions and 0 deletions

View File

@ -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)