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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for Windows 10 Dark Theme on older Qt versions #660

Merged
merged 1 commit into from Oct 2, 2019

Conversation

worstje
Copy link
Contributor

@worstje worstje commented Sep 30, 2019

QtCore.Qt.GlobalColor does not have any accessors for the predefined
colors on PyQt versions before 5.11 despite the object itself existing.

It would have been nice if the documentation* had mentioned that object
being broken on older versions, but I should have tested with even older
versions of PyQt before submitting the original patch.

Apparently the most supported way to access these colors is through the
Qt namespace itself, but those aren't documented in the slightest. Ugh.

My apologies to all those affected. Fixes issue #659.

*: https://www.riverbankcomputing.com/static/Docs/PyQt5/api/qtcore/qt.html#GlobalColor

@gedakc Can you create a new Windows build with this fix implemented and put it on the website? (I cannot currently test it on Qt 5.5 but since it reproduced on 5.8 I assume this bug is fixed.)

I will look into setting up a proper test environment for Qt5.5 on my end in the future so I won't have to depend on you to test it on older PyQt versions anymore. I should have caught this before I submitted the PR. 馃槩

QtCore.Qt.GlobalColor does not have any accessors for the predefined
colors on PyQt versions before 5.11 despite the object itself existing.

It would have been nice if the documentation* had mentioned that object
being broken on older versions, but I should have tested with even older
versions of PyQt before submitting the original patch.

Apparently the most supported way to access these colors is through the
Qt namespace itself, but those aren't documented in the slightest. Ugh.

My apologies to all those affected. Fixes issue olivierkes#659.

*: https://www.riverbankcomputing.com/static/Docs/PyQt5/api/qtcore/qt.html#GlobalColor
@gedakc
Copy link
Collaborator

gedakc commented Oct 1, 2019

A win32 PyInstaller package with PR 660 applied is ready for testing.

https://sourceforge.net/projects/manuskript/files/manuskript/testing-only/

@worstje
Copy link
Contributor Author

worstje commented Oct 1, 2019

@gedakc It has been properly fixed with that test build. I tested both the original release package (=crash as expected) and the new one with the fix applied (=all good).

@gedakc
Copy link
Collaborator

gedakc commented Oct 2, 2019

Thank you @worstje for confirming that the new package works as expected and prevents the crash.

I will merge this PR with the develop branch.

Further I plan to rename the test package file from:
manuskript-0.10.0-with-PR660-dark-theme-fix-win32.zip
to:
manuskript-0.10.0-2-win32.zip
and to upload it to our official release areas.

@gedakc gedakc added this to the 0.11.0 milestone Oct 2, 2019
@gedakc gedakc merged commit 67f987d into olivierkes:develop Oct 2, 2019
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.

None yet

2 participants