Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] Domain Editor - Adapt to dark mode #6727

Merged
merged 1 commit into from
Feb 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
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:

Check warning on line 84 in Orange/widgets/utils/domaineditor.py

View check run for this annotation

Codecov / codecov/patch

Orange/widgets/utils/domaineditor.py#L84

Added line #L84 was not covered by tests
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)

Check warning on line 87 in Orange/widgets/utils/domaineditor.py

View check run for this annotation

Codecov / codecov/patch

Orange/widgets/utils/domaineditor.py#L87

Added line #L87 was not covered by tests
if role == Qt.BackgroundRole:
place = self.variables[row][Column.place]
mapping = [Place.meta, Place.feature, Place.class_var, None]
Expand Down
Loading