mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
added styles for exit button
This commit is contained in:
parent
9594eb5e18
commit
2b2fed63bb
2 changed files with 16 additions and 5 deletions
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue