change the item look

This commit is contained in:
Jakub Trllo 2022-10-24 17:31:38 +02:00
parent a98085704f
commit 271a0056bc
3 changed files with 3 additions and 19 deletions

View file

@ -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",

View file

@ -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};
} }

View file

@ -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)