diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-10-25 23:19:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-25 23:19:38 +0200 |
commit | 8b1d9a00dcdc90936ff7adbbc0c165c4f38d4fb5 (patch) | |
tree | 7244f23aca3d5d7b5a17f228ee5e0f257cb7d856 | |
parent | c39238c7d2da1a65edd2b082984902bb0a5545fc (diff) | |
parent | 91825ec1d47b6e3eb689140e970cc64e16b267a1 (diff) |
Merge pull request #32847 from Calinou/fix-editor-path-icon-theme-change
Fix the editor path icon when switching from dark to light theme
-rw-r--r-- | editor/editor_path.cpp | 9 | ||||
-rw-r--r-- | editor/editor_path.h | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/editor/editor_path.cpp b/editor/editor_path.cpp index f487a3048b..e4a939c379 100644 --- a/editor/editor_path.cpp +++ b/editor/editor_path.cpp @@ -132,6 +132,15 @@ void EditorPath::_id_pressed(int p_idx) { EditorNode::get_singleton()->push_item(obj); } +void EditorPath::_notification(int p_what) { + + switch (p_what) { + case NOTIFICATION_THEME_CHANGED: { + update_path(); + } break; + } +} + void EditorPath::_bind_methods() { ClassDB::bind_method("_about_to_show", &EditorPath::_about_to_show); diff --git a/editor/editor_path.h b/editor/editor_path.h index 2dc4d21f9b..a84da9f5ac 100644 --- a/editor/editor_path.h +++ b/editor/editor_path.h @@ -48,6 +48,7 @@ class EditorPath : public MenuButton { void _add_children_to_popup(Object *p_obj, int p_depth = 0); protected: + void _notification(int p_what); static void _bind_methods(); public: |