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

Topic Modeling: Base selection style on itemdelegates #751

Merged
merged 3 commits into from
Nov 19, 2021

Conversation

ajdapretnar
Copy link
Collaborator

Issue

Fixes #711.

Description of changes

Use text_color_for_state to color selection in Topic Modeling.

Includes
  • Code changes
  • Tests
  • Documentation

@codecov-commenter
Copy link

codecov-commenter commented Nov 15, 2021

Codecov Report

Merging #751 (f62b8d9) into master (ebfd330) will increase coverage by 0.17%.
The diff coverage is 50.00%.

@@            Coverage Diff             @@
##           master     #751      +/-   ##
==========================================
+ Coverage   74.30%   74.48%   +0.17%     
==========================================
  Files          73       74       +1     
  Lines        9669     9896     +227     
  Branches     1321     1334      +13     
==========================================
+ Hits         7185     7371     +186     
- Misses       2229     2269      +40     
- Partials      255      256       +1     

Comment on lines 384 to 385
painter.setPen(
QtGui.QPen(text_color_for_state(option.palette, option.state)))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably be

ctx.palette.setColor(QtGui.QPalette.Text, text_color_for_state(option.palette, option.state))

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@PrimozGodec
Copy link
Collaborator

This one needs at least orange-widget-base 4.14.0. So we need to increase the minimum version to orange-widget-base>=4.14.0 in requirements and also in tox for oldest tests.

@PrimozGodec PrimozGodec self-requested a review November 18, 2021 10:39
@PrimozGodec
Copy link
Collaborator

I added two commits to this branch. First increases minimal version of orange-widget-base. The second fixes summary implementation which does not work when a version of orange-widget-base >=4.14 and the version of Orange==3.28.

@ajdapretnar ajdapretnar merged commit da42f78 into biolab:master Nov 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unfocused selections in table components hard to see
4 participants