-
-
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
[ENH] Use palette colors in more places #5680
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5680 +/- ##
==========================================
+ Coverage 86.13% 86.20% +0.07%
==========================================
Files 316 316
Lines 66388 66616 +228
==========================================
+ Hits 57182 57426 +244
+ Misses 9206 9190 -16 |
955ec62
to
f657bad
Compare
6f89123
to
7895eeb
Compare
if self.__brush is not None: | ||
return QBrush(self.__brush) | ||
else: | ||
color = self.palette().color(QPalette.Window) |
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.
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.
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.
I think I can finally say: Janez, your Qt is a mess. 😆
(i.e. My version is ok, too.)
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.
My QPalette.Window
is black, which it indeed shouldn't be (in light mode on macOS). Any ideas why?
>>> hex(QPalette().color(QPalette.Window).rgb())
'0xff000000'
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.
Can you post the contents of ~/.config/biolab.si/Orange.ini
in particular [application-style]
section.
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.
[application-style]
palette=
style-name=
7895eeb
to
c7f265b
Compare
I tried in a new environment. It's still (transparent) black. |
4035846
to
ee046d3
Compare
ee046d3
to
ff9e445
Compare
@ales-erjavec, I downloaded an Orange bundle, replaced the widgets directory with the files from this PR. The legend still has a black background. It looks as something between Qt and Catalina, not my installation of Qt. |
As suggested by @markotoplak, I tried creating a fresh user. Still black. |
Found it. Works with pyqtgraph 0.12 (the change that was made just to improve performance, it appears: pyqtgraph/pyqtgraph@fd0e2b6). @ales-erjavec, @markotoplak, can we increase the oldest supported version to 0.12? @ales-erjavec, can you add it to this PR? |
Use palette color as the default pen color.
ff9e445
to
ca9b973
Compare
I have reset the palette instead so that wont be necessary. |
Issue
Some visualizations use hardcoded colors and do not account for the effective color palette.
Description of changes
Replace use of hardcoded colors with palette colors.
Includes