-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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] ScoringSheetViewer slider style and tooltip #7024
base: master
Are you sure you want to change the base?
[FIX] ScoringSheetViewer slider style and tooltip #7024
Conversation
Codecov ReportAttention: Patch coverage is
❌ Your patch check has failed because the patch coverage (35.71%) is below the target coverage (95.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## master #7024 +/- ##
==========================================
- Coverage 88.36% 88.35% -0.02%
==========================================
Files 332 332
Lines 73345 73360 +15
==========================================
+ Hits 64813 64816 +3
- Misses 8532 8544 +12 |
I like the change visually, but the tooltip doesn't work for me. Perhaps it is not necessary, since we see the exact probability below, but I kind like tooltips in general. |
# Draw a simple 2px wide black rectangle as the custom handle. | ||
painter.save() | ||
painter.setPen(Qt.NoPen) | ||
painter.setBrush(Qt.black) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use
painter.setBrush(QPalette().color(QPalette.WindowText))
to support dark mode.
painter.save() | ||
painter.setPen(Qt.NoPen) | ||
painter.setBrush(Qt.black) | ||
painter.drawRect(QRect(handle_rect.center().x() - 1, handle_rect.y(), 4, handle_rect.height())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This hard rectangle looks Linux-y. Perhaps change to this?
painter.drawRoundedRect(QRect(handle_rect.center().x() - 1, handle_rect.y(),
3, handle_rect.height()),
3, 3)
Issue
Fixes #6985
Description of changes
Includes