mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 08:54:53 +01:00
rename widget to frame
This commit is contained in:
parent
8c2a00acde
commit
2a61810f46
2 changed files with 15 additions and 15 deletions
|
|
@ -571,19 +571,12 @@ QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {
|
|||
}
|
||||
|
||||
#InfoText {
|
||||
padding: 5px;
|
||||
padding-left: 30px;
|
||||
padding-top: 20px;
|
||||
background: transparent;
|
||||
border: 1px solid {color:border};
|
||||
}
|
||||
|
||||
#InfoText:hover {
|
||||
border-color: {color:border};
|
||||
}
|
||||
|
||||
#InfoText:focus {
|
||||
border-color: {color:border};
|
||||
}
|
||||
|
||||
#TypeEditor, #ToolEditor, #NameEditor, #NumberEditor {
|
||||
background: transparent;
|
||||
border-radius: 0.3em;
|
||||
|
|
@ -716,11 +709,18 @@ QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {
|
|||
font-size: 13pt;
|
||||
}
|
||||
|
||||
#ValidationErrorTitleWidget {
|
||||
#ValidationErrorTitleFrame {
|
||||
background: {color:bg-inputs};
|
||||
border-left: 4px solid transparent;
|
||||
}
|
||||
#ValidationErrorTitleWidget[checked="1"] {
|
||||
|
||||
#ValidationErrorTitleFrame:hover {
|
||||
border-left-color: {color:border};
|
||||
}
|
||||
|
||||
#ValidationErrorTitleFrame[selected="1"] {
|
||||
background: {color:bg};
|
||||
border-left-color: {palette:blue-light};
|
||||
}
|
||||
|
||||
#ArrowBtn, #ArrowBtn:disabled, #ArrowBtn:hover {
|
||||
|
|
|
|||
|
|
@ -29,13 +29,13 @@ class _ClickableFrame(QtWidgets.QFrame):
|
|||
super(_ClickableFrame, self).mouseReleaseEvent(event)
|
||||
|
||||
|
||||
class ValidationErrorTitleWidget(_ClickableFrame):
|
||||
class ValidationErrorTitleFrame(_ClickableFrame):
|
||||
selected = QtCore.Signal(int)
|
||||
|
||||
def __init__(self, index, error_info, parent):
|
||||
super(ValidationErrorTitleWidget, self).__init__(parent)
|
||||
super(ValidationErrorTitleFrame, self).__init__(parent)
|
||||
|
||||
self.setObjectName("ValidationErrorTitleWidget")
|
||||
self.setObjectName("ValidationErrorTitleFrame")
|
||||
|
||||
exception = error_info["exception"]
|
||||
label_widget = QtWidgets.QLabel(exception.title, self)
|
||||
|
|
@ -252,7 +252,7 @@ class ValidationsWidget(QtWidgets.QWidget):
|
|||
})
|
||||
|
||||
for idx, item in enumerate(errors_by_title):
|
||||
widget = ValidationErrorTitleWidget(idx, item, self)
|
||||
widget = ValidationErrorTitleFrame(idx, item, self)
|
||||
widget.selected.connect(self._on_select)
|
||||
self._errors_layout.addWidget(widget)
|
||||
self._title_widgets[idx] = widget
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue