Merge pull request #1580 from UsernameIsAReservedWord/fixes_help_background_color_theme
fixes #332 : makes EditorHelp uses EditorSettings bg color
This commit is contained in:
commit
5ed2600279
1 changed files with 3 additions and 1 deletions
|
@ -1390,7 +1390,9 @@ EditorHelp::EditorHelp(EditorNode *p_editor) {
|
||||||
|
|
||||||
{
|
{
|
||||||
PanelContainer *pc = memnew( PanelContainer );
|
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);
|
h_split->add_child(pc);
|
||||||
class_desc = memnew( RichTextLabel );
|
class_desc = memnew( RichTextLabel );
|
||||||
pc->add_child(class_desc);
|
pc->add_child(class_desc);
|
||||||
|
|
Loading…
Reference in a new issue