Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
change back project manager styles
Browse files Browse the repository at this point in the history
  • Loading branch information
iLLiCiTiT committed Jan 14, 2022
1 parent 17578c5 commit ce5c70e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
5 changes: 2 additions & 3 deletions openpype/style/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,9 @@
"border-hover": "rgba(168, 175, 189, .3)",
"border-focus": "rgb(92, 173, 214)",

"warning-btn-bg": "rgb(201, 54, 54)",

"warning-btn-bg": "rgb(201, 54, 54)",
"warning-btn-bg-disabled": "rgba(201, 54, 54, 64)",
"delete-btn-bg": "rgb(201, 54, 54)",
"delete-btn-bg-disabled": "rgba(201, 54, 54, 64)",

"tab-widget": {
"bg": "#21252B",
Expand Down
13 changes: 9 additions & 4 deletions openpype/style/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -734,11 +734,11 @@ QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {
background: {color:bg-view-hover};
}

#WarningButton {
background: {color:warning-btn-bg};
#DeleteButton {
background: {color:delete-btn-bg};
}
#WarningButton:disabled {
background: {color:warning-btn-bg-disabled};
#DeleteButton:disabled {
background: {color:delete-btn-bg-disabled};
}

/* Launcher specific stylesheets */
Expand Down Expand Up @@ -1228,6 +1228,11 @@ QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {
background: #21252B;
}

/* Tray */
#TrayRestartButton {
background: {color:restart-btn-bg};
}

/* Globally used names */
#Separator {
background: {color:bg-menu-separator};
Expand Down
2 changes: 1 addition & 1 deletion openpype/tools/project_manager/project_manager/style.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def get_remove_icon(cls):
def get_warning_pixmap(cls):
src_image = get_warning_image()
colors = get_objected_colors()
color_value = colors["warning-btn-bg"]
color_value = colors["delete-btn-bg"]

return paint_image_with_color(
src_image,
Expand Down
2 changes: 1 addition & 1 deletion openpype/tools/project_manager/project_manager/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ def __init__(self, project_name, parent):
cancel_btn = QtWidgets.QPushButton("Cancel", self)
cancel_btn.setToolTip("Cancel deletion of the project")
confirm_btn = QtWidgets.QPushButton("Permanently Delete Project", self)
confirm_btn.setObjectName("WarningButton")
confirm_btn.setObjectName("DeleteButton")
confirm_btn.setEnabled(False)
confirm_btn.setToolTip("Confirm deletion")

Expand Down

0 comments on commit ce5c70e

Please sign in to comment.