mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
change the item look
This commit is contained in:
parent
a98085704f
commit
271a0056bc
3 changed files with 3 additions and 19 deletions
|
|
@ -100,10 +100,7 @@
|
||||||
"bg-expander": "#2C313A",
|
"bg-expander": "#2C313A",
|
||||||
"bg-expander-hover": "#2d6c9f",
|
"bg-expander-hover": "#2d6c9f",
|
||||||
"bg-expander-selected-hover": "#3784c5"
|
"bg-expander-selected-hover": "#3784c5"
|
||||||
},
|
}
|
||||||
"bg-legacy": "rgb(17, 17, 17)",
|
|
||||||
"bg-legacy-hover": "rgb(41, 41, 41)",
|
|
||||||
"bg-legacy-selected": "rgba(42, 123, 174, .4)"
|
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
"invalid-light": "#C93636",
|
"invalid-light": "#C93636",
|
||||||
|
|
|
||||||
|
|
@ -965,18 +965,6 @@ VariantInputsWidget QToolButton {
|
||||||
background: {color:bg-view-selection};
|
background: {color:bg-view-selection};
|
||||||
}
|
}
|
||||||
|
|
||||||
#CardViewLegacyItemWidget {
|
|
||||||
background: {color:publisher:bg-legacy};
|
|
||||||
border-radius: 0.2em;
|
|
||||||
|
|
||||||
}
|
|
||||||
#CardViewLegacyItemWidget:hover {
|
|
||||||
background: {color:publisher:bg-legacy-hover};
|
|
||||||
}
|
|
||||||
#CardViewLegacyItemWidget[state="selected"] {
|
|
||||||
background: {color:publisher:bg-legacy-selected};
|
|
||||||
}
|
|
||||||
|
|
||||||
#ListViewSubsetName[state="invalid"] {
|
#ListViewSubsetName[state="invalid"] {
|
||||||
color: {color:publisher:error};
|
color: {color:publisher:error};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -353,19 +353,18 @@ class LegacyItemCardWidget(CardWidget):
|
||||||
|
|
||||||
def __init__(self, item, parent):
|
def __init__(self, item, parent):
|
||||||
super(LegacyItemCardWidget, self).__init__(parent)
|
super(LegacyItemCardWidget, self).__init__(parent)
|
||||||
self.setObjectName("CardViewLegacyItemWidget")
|
|
||||||
|
|
||||||
self._id = item.id
|
self._id = item.id
|
||||||
self.identifier = item.identifier
|
self.identifier = item.identifier
|
||||||
self._group_identifier = LEGACY_ITEM_GROUP
|
self._group_identifier = LEGACY_ITEM_GROUP
|
||||||
|
|
||||||
icon_widget = PublishPixmapLabel(None, self)
|
icon_widget = IconValuePixmapLabel("fa.magic", self)
|
||||||
icon_widget.setObjectName("FamilyIconLabel")
|
icon_widget.setObjectName("FamilyIconLabel")
|
||||||
|
|
||||||
label_widget = QtWidgets.QLabel(item.label, self)
|
label_widget = QtWidgets.QLabel(item.label, self)
|
||||||
|
|
||||||
icon_layout = QtWidgets.QHBoxLayout()
|
icon_layout = QtWidgets.QHBoxLayout()
|
||||||
icon_layout.setContentsMargins(5, 5, 5, 5)
|
icon_layout.setContentsMargins(10, 5, 5, 5)
|
||||||
icon_layout.addWidget(icon_widget)
|
icon_layout.addWidget(icon_widget)
|
||||||
|
|
||||||
layout = QtWidgets.QHBoxLayout(self)
|
layout = QtWidgets.QHBoxLayout(self)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue