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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR: Fix changing color scheme and UI theme (Appearance) #16991

Merged
merged 6 commits into from
Dec 13, 2021

Conversation

ccordoba12
Copy link
Member

@ccordoba12 ccordoba12 commented Dec 9, 2021

Description of Changes

  • Show a restart message whenever there is a mismatch between the selected UI theme and color scheme in preferences. That functionality broke in PR: Add plugin teardown operations to the plugin registry #16012.
  • Fix observers that need to react to changes in color scheme. This was not working as expected for all plugins that need it (i.e. editor, help, history and IPython console).
  • Add tests for the Appearance config page so its UX to change color schemes and UI themes doesn't break yet again (that UX is tricky to get right).
  • In Preferences, don't add section to changed and restart options when it is None. This allow us to send the set of changed options to plugins in the same way as before PR: Add plugin teardown operations to the plugin registry #16012 was merged (not only Appearance but several other things were broken due to that).
  • Cleanup unused imports.

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: @ccordoba12

@ccordoba12 ccordoba12 added this to the v5.2.1 milestone Dec 9, 2021
@ccordoba12 ccordoba12 self-assigned this Dec 9, 2021
@pep8speaks
Copy link

pep8speaks commented Dec 9, 2021

Hello @ccordoba12! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 229:80: E501 line too long (80 > 79 characters)

Comment last updated at 2021-12-11 19:51:11 UTC

Copy link
Member

@dalthviz dalthviz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ccordoba12 ! LGTM 👍

@dalthviz dalthviz merged commit c92c156 into spyder-ide:5.x Dec 13, 2021
dalthviz added a commit that referenced this pull request Dec 13, 2021
@ccordoba12 ccordoba12 deleted the fix-appearance branch December 13, 2021 16:01
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

3 participants