added styles for exit button

This commit is contained in:
iLLiCiTiT 2021-04-28 10:38:42 +02:00
parent 9594eb5e18
commit 2b2fed63bb
2 changed files with 16 additions and 5 deletions

View file

@ -289,14 +289,13 @@ class InstallDialog(QtWidgets.QDialog):
"Run",
btns_widget
)
run_button.setMinimumSize(64, 24)
run_button.setToolTip("Run OpenPype")
# install button - - - - - - - - - - - - - - - - - - - - - - - - - - -
exit_button = QtWidgets.QPushButton("Exit", btns_widget)
exit_button.setStyleSheet(
("color: rgb(64, 64, 64);"
"background-color: rgb(128, 128, 128);"
"padding: 0.5em;")
)
exit_button.setObjectName("ExitBtn")
exit_button.setFlat(True)
exit_button.setMinimumSize(64, 24)
exit_button.setToolTip("Exit")

View file

@ -86,6 +86,18 @@ QMenu::item:selected {
border: 1px solid rgb(48, 48, 48);
}
#ExitBtn {
/* `border` must be set to background of flat button is painted .*/
border: none;
color: rgb(64, 64, 64);
background-color: rgb(128, 128, 128);
padding: 0.5em;
}
#ExitBtn:hover{
background-color: rgb(185, 185, 185);
}
#ButtonWithOptions QPushButton{
border: none;
background-color: rgb(72, 200, 150);