-
-
Notifications
You must be signed in to change notification settings - Fork 3.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
[ui][python console] Fix hard to read python console editor icons #60261
Conversation
🪟 Windows buildsDownload Windows builds of this PR for testing. 🪟 Windows Qt6 buildsDownload Windows Qt6 builds of this PR for testing. |
Instead of the buffer (which is a little ugly), how about using parameterised colors here? QgsApplication::getThemeIcon supports that already, so we could keep the single-color icon but render it using a suitable color based on the palette |
@nyalldawson , done. The ugly buffer is something we rely on for quite a few icons, eg: We can fix that one day :) |
@@ -261,7 +261,10 @@ def contextMenuEvent(self, e): | |||
|
|||
menu.addSeparator() | |||
toggle_comment_action = QAction( | |||
QgsApplication.getThemeIcon("console/iconCommentEditorConsole.svg"), | |||
QgsApplication.getThemeIcon( |
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 icon is also used in python/plugins/processing/script/ScriptEditorDialog.py and src/gui/codeeditors/qgscodeeditor.cpp -- they'll also need the palette color set
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.
@nyalldawson , done, thanks.
ea47c46
to
4390742
Compare
Description
This PR fixes #59772 by altering two icons to insure their visibility is OK on both light / gray / dark themes.
Blend of gray before:
Blend of gray after:
Night mapping before:
Night mapping after: