Skip to content

Commit

Permalink
Merge pull request #6727 from PrimozGodec/domain-editor-dark-mode
Browse files Browse the repository at this point in the history
[FIX] Domain Editor - Adapt to dark mode
  • Loading branch information
ales-erjavec committed Feb 16, 2024
2 parents 88f1048 + cd3ab6a commit dc41035
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Orange/widgets/utils/domaineditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,10 @@ def data(self, index, role):
if col == Column.tpe:
return gui.attributeIconDict[self.vartypes.index(val) + 1]
if role == Qt.ForegroundRole:
if self.variables[row][Column.place] == Place.skip \
and col != Column.place:
if self.variables[row][Column.place] == Place.skip and col != Column.place:
return QColor(160, 160, 160)
# The background is light-ish, force dark text color - same as data table
return self.data(index, Qt.BackgroundRole) and QColor(0, 0, 0, 200)
if role == Qt.BackgroundRole:
place = self.variables[row][Column.place]
mapping = [Place.meta, Place.feature, Place.class_var, None]
Expand Down

0 comments on commit dc41035

Please sign in to comment.