Skip to content

Fix doc theme not updating on NOTIFICATION_THEME_CHANGED in EditorHelp #105720

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Grublady
Copy link
Contributor

Currently, in-editor documentation pages check to update their theme when editor settings are changed (ie when a theme is set manually).

However, the docs do not perform this check on the "theme changed" notification, so they fail to update when the theme changes by other means, such as when the system theme changes while interface/theme/follow_system_theme is enabled.

This PR merges the NOTIFICATION_EDITOR_SETTINGS_CHANGED behavior into the NOTIFICATION_THEME_CHANGED case so that the theme is always properly updated.

For reference, here is a screenshot of the incorrect behavior, captured after switching the system theme from light mode to dark mode, with interface/theme/follow_system_theme enabled (macOS 15.4, latest master 1f787b6):
Screenshot 2025-04-24 at 13 04 17

@Calinou Calinou added bug topic:editor cherrypick:4.4 Considered for cherry-picking into a future 4.4.x release labels Apr 24, 2025
@Calinou Calinou added this to the 4.5 milestone Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug cherrypick:4.4 Considered for cherry-picking into a future 4.4.x release topic:editor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants