Fix theme application in various editor dialogs

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.

(cherry picked from commit 01888ae7ab)
This commit is contained in:
Yuri Sizov 2023-12-04 13:18:48 +01:00 committed by Rémi Verschelde
parent dc5d47712b
commit d93fcf824f
No known key found for this signature in database
GPG key ID: C3336907360768E1
12 changed files with 54 additions and 73 deletions

View file

@ -713,6 +713,9 @@ void Path3DEditorPlugin::_notification(int p_what) {
} break;
case NOTIFICATION_READY: {
// FIXME: This can trigger theme updates when the nodes that we want to update are not yet available.
// The toolbar should be extracted to a dedicated control and theme updates should be handled through
// the notification.
Node3DEditor::get_singleton()->connect("theme_changed", callable_mp(this, &Path3DEditorPlugin::_update_theme));
} break;
}