- added new setting for the color of the Project Tree items; it helps in providing contrast when using dark theme like the one in MacOS

This commit is contained in:
Marius Stanciu
2019-04-30 23:34:35 +03:00
parent b53c08f1e5
commit eda4202952
6 changed files with 115 additions and 26 deletions

View File

@@ -256,6 +256,13 @@ class ObjectCollection(QtCore.QAbstractItemModel):
# self.view.setAcceptDrops(True)
# self.view.setDropIndicatorShown(True)
color = self.app.defaults['global_proj_item_color']
# set StyleSheet
stylesheet = "QTreeView::item {color: %s;}" % color
self.view.setStyleSheet(stylesheet)
font = QtGui.QFont()
font.setPixelSize(12)
font.setFamily("Seagoe UI")