-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
PR: Adjust icon colors for increased contrast #15964
Conversation
/show binder |
I've gotten feedback that the disabled button opacity is inherited from QDarkStyleSheet right now, and that we can either override it within Spyder or put in a PR and request a release of QDarkStyleSheet. Right now I'm leaning towards overriding it simply because it seems like a small change that is potentially only needed for Spyder. I'm open to feedback on this, though. |
Meeting feedback
|
I talked with @steff456 because I couldn't find anything that looked to me like a disabled button state for the toolbar buttons in QDarkStyleSheet. This does need to happen in Spyder so I'll be adding it to this PR. Here's why:
|
Hello @isabela-pf! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2021-07-29 14:16:11 UTC |
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.
Thanks @isabela-pf for helping us to improve this! I left an initial review for you.
Hey @isabela-pf, this requires a new release of QtAwesome with support for setting alpha in icon colors. For now I opened PR spyder-ide/qtawesome#166 to add that functionality. |
This reverts commit 8cd019f.
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.
@isabela-pf, I left one last comment for you then this should be ready.
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.
@isabela-pf, I'm sorry but I missed another couple of details that were missing from your revert. I left suggestions for them below.
Co-authored-by: Carlos Cordoba <[email protected]>
Co-authored-by: Carlos Cordoba <[email protected]>
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.
Thanks a lot @isabela-pf for your help with this!
Description of Changes
Spyder 5's light and dark mode icons in the toolbars don't all meet WCAG 2.1 contrast standards for non-text elements. While WCAG is a web-focused set of guidelines, contrast is not a web-specific problem so this makes sense in desktop applications as well. This PR is another tiny step for a more accessible Spyder.
Changes made:
ICON_2
andICON_3
in both light and dark modes.ICON_2
andICON_3
in both light and dark modes. These are all SVGs in theimages
directory.Change the disabled button opacity for toolbars to 65% opacity. (I'm still looking for this.)This is no longer a part of this PR.Issue(s) Resolved
Addresses part of ux-improvements #42. There may be work in this area in the future to see if we can come up with a better solution.
Affirmation
By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.
I certify the above statement is true and correct:
isabela-pf