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

Fix theme application in various editor dialogs #85745

Merged

Conversation

YuriSizov
Copy link
Contributor

Fixes #85627.
Fixes #85633 (although I couldn't reproduce it, but I updated suspicious code).

99% of the time we shouldn't rely on the theme_changed signal in the engine code, we should use the notification instead. In most situations here we just have a window node which probably didn't handle theme changes well during the early days of development of Godot 4.0. The boilerplate to rely on child controls is redundant now.

I left some comments in places where I couldn't quickly improve the code, but they should be fine for now.

99% of the time we shouldn't rely on the signal, we
should use the notification instead. I left some comments
in places where I couldn't quickly improve the code.
@YuriSizov YuriSizov added bug topic:editor usability cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release labels Dec 4, 2023
@YuriSizov YuriSizov added this to the 4.3 milestone Dec 4, 2023
@YuriSizov YuriSizov requested review from a team as code owners December 4, 2023 12:22
Copy link
Member

@akien-mga akien-mga left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@akien-mga akien-mga merged commit 6c7d438 into godotengine:master Dec 4, 2023
15 checks passed
@akien-mga
Copy link
Member

Thanks!

@YuriSizov YuriSizov deleted the editor-obey-the-theme-overlord branch December 4, 2023 23:56
@YuriSizov YuriSizov removed the cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release label Dec 5, 2023
@YuriSizov
Copy link
Contributor Author

Cherry-picked for 4.2.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants