- fixing an issue with not building the UI for the generated objects when running a script and then trying to enable/disable the plots
- attempting to add a feature in the text editors to autoselect all words in a document that are the same as the one that was clicked - all the colors set in Preferences now have to be in the 8digits format RGBA (including the alpha channel as a suffix) - it is required to delete the current preferences files
This commit is contained in:
@@ -476,8 +476,8 @@ class ObjectCollection(QtCore.QAbstractItemModel):
|
||||
return index.internalPointer().data(index.column())
|
||||
|
||||
if role == Qt.ItemDataRole.ForegroundRole:
|
||||
color = QColor(self.app.defaults['global_proj_item_color'])
|
||||
color_disabled = QColor(self.app.defaults['global_proj_item_dis_color'])
|
||||
color = QColor(self.app.defaults['global_proj_item_color'][:-2])
|
||||
color_disabled = QColor(self.app.defaults['global_proj_item_dis_color'][:-2])
|
||||
obj = index.internalPointer().obj
|
||||
if obj:
|
||||
return QtGui.QBrush(color) if obj.options["plot"] else QtGui.QBrush(color_disabled)
|
||||
|
||||
Reference in New Issue
Block a user