diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-04-07 20:15:06 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-04-07 20:15:06 -0300 |
commit | 5ed26002798466dd6388f291bb69d78e72526e19 (patch) | |
tree | a008a3c6e43b83541514e6f3b408108ca3d4dbb5 | |
parent | 7b75658bb266a8b79b4fff0d883d81600c3d37ba (diff) | |
parent | 303ce0ea3278fb370728b077621268431a2bedb0 (diff) |
Merge pull request #1580 from UsernameIsAReservedWord/fixes_help_background_color_theme
fixes #332 : makes EditorHelp uses EditorSettings bg color
-rw-r--r-- | tools/editor/editor_help.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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<StyleBoxFlat> 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); |