diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-07-13 11:49:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-13 11:49:49 +0200 |
commit | d331b84ae343715f3fce96c4a0e753de5368ae0f (patch) | |
tree | ec06dc3ffb972bc1b037bdfb3bb07db10d76d747 | |
parent | b8f430499754861a88b3410851cceeb07dfac40b (diff) | |
parent | da8734bd3061e7326419f5cb9eb09bc210a05954 (diff) |
Merge pull request #9620 from Noshyaar/ehb
EditorHelpBit: fix stylebox error of some instances
-rw-r--r-- | editor/editor_help.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/editor/editor_help.cpp b/editor/editor_help.cpp index 5089468e1d..952c98d0f6 100644 --- a/editor/editor_help.cpp +++ b/editor/editor_help.cpp @@ -1782,8 +1782,8 @@ void EditorHelpBit::_bind_methods() { void EditorHelpBit::_notification(int p_what) { - if (p_what == NOTIFICATION_ENTER_TREE) { - add_style_override("panel", get_stylebox("ScriptPanel", "EditorStyles")); + if (p_what == EditorSettings::NOTIFICATION_EDITOR_SETTINGS_CHANGED) { + add_style_override("panel", EditorNode::get_singleton()->get_gui_base()->get_stylebox("ScriptPanel", "EditorStyles")); } } @@ -1800,4 +1800,5 @@ EditorHelpBit::EditorHelpBit() { rich_text->set_area_as_parent_rect(8 * EDSCALE); rich_text->connect("meta_clicked", this, "_meta_clicked"); set_custom_minimum_size(Size2(0, 70 * EDSCALE)); + add_style_override("panel", EditorNode::get_singleton()->get_gui_base()->get_stylebox("ScriptPanel", "EditorStyles")); } |