From 303ce0ea3278fb370728b077621268431a2bedb0 Mon Sep 17 00:00:00 2001 From: yg2f Date: Thu, 26 Mar 2015 15:45:53 +0100 Subject: [PATCH] makes_editorhelp_uses_editor_settings_bg_color This fixes issue #332 by using the "text_editor/background_color" editor setting as background color for the EditorHelp. --- tools/editor/editor_help.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/editor/editor_help.cpp b/tools/editor/editor_help.cpp index 2283a2df14..7deb136470 100644 --- a/tools/editor/editor_help.cpp +++ b/tools/editor/editor_help.cpp @@ -1390,7 +1390,9 @@ EditorHelp::EditorHelp(EditorNode *p_editor) { { PanelContainer *pc = memnew( PanelContainer ); - pc->add_style_override("panel",get_stylebox("normal","TextEdit")); + Ref style( memnew( StyleBoxFlat ) ); + style->set_bg_color( EditorSettings::get_singleton()->get("text_editor/background_color") ); + pc->add_style_override("panel", style); //get_stylebox("normal","TextEdit")); h_split->add_child(pc); class_desc = memnew( RichTextLabel ); pc->add_child(class_desc);