added some styles to qtreeview

This commit is contained in:
iLLiCiTiT 2021-05-14 17:23:47 +02:00
parent 0699d8d843
commit b318387c3c
2 changed files with 13 additions and 0 deletions

View file

@ -115,6 +115,7 @@ class TypeDelegate(QtWidgets.QStyledItemDelegate):
def createEditor(self, parent, option, index):
editor = FilterComboBox(parent)
editor.setObjectName("TypeEditor")
editor.style().polish(editor)
if not self._project_doc_cache.project_doc:
return editor

View file

@ -4,6 +4,18 @@ QTreeView::item {
padding-right: 3px;
}
QTreeView::item:selected, QTreeView::item:selected:!active {
background: rgba(0, 122, 204, 127);
color: black;
}
#RefreshBtn {
padding: 2px;
}
#TypeEditor, #ToolEditor, #NameEditor, #NumberEditor {
background: transparent;
border: 1px solid #005c99;
border-radius: 0.3em;
}