aboutsummaryrefslogtreecommitdiff
path: root/editor/editor_help.cpp
diff options
context:
space:
mode:
authorDaniel J. Ramirez2017-09-08 15:39:41 -0500
committerDaniel J. Ramirez2017-09-12 13:16:47 -0500
commit57fff67580981397420ab8be2b3121ca951f36b8 (patch)
tree6088272e7164f81b59f368c8635ad0756280dc91 /editor/editor_help.cpp
parent60f054d3acf5d629bc3ce0f10d7ead8f9c10f973 (diff)
downloadgodot-57fff67580981397420ab8be2b3121ca951f36b8.tar.gz
godot-57fff67580981397420ab8be2b3121ca951f36b8.tar.zst
godot-57fff67580981397420ab8be2b3121ca951f36b8.zip
Diffstat (limited to 'editor/editor_help.cpp')
-rw-r--r--editor/editor_help.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/editor/editor_help.cpp b/editor/editor_help.cpp
index 7fa2c5327..696eda253 100644
--- a/editor/editor_help.cpp
+++ b/editor/editor_help.cpp
@@ -1709,6 +1709,10 @@ void EditorHelp::_notification(int p_what) {
//forward->set_icon(get_icon("Forward","EditorIcons"));
//back->set_icon(get_icon("Back","EditorIcons"));
_update_doc();
+
+ class_desc->add_style_override("normal", class_desc->get_stylebox("code_normal", "RichTextLabel"));
+ class_desc->add_style_override("focus", class_desc->get_stylebox("code_focus", "RichTextLabel"));
+
} break;
case EditorSettings::NOTIFICATION_EDITOR_SETTINGS_CHANGED: {
@@ -1784,12 +1788,10 @@ EditorHelp::EditorHelp() {
//class_list->set_selection_enabled(true);
{
- background_panel = memnew(Panel);
- background_panel->set_v_size_flags(SIZE_EXPAND_FILL);
- vbc->add_child(background_panel);
class_desc = memnew(RichTextLabel);
- background_panel->add_child(class_desc);
+ vbc->add_child(class_desc);
class_desc->set_area_as_parent_rect();
+ class_desc->set_v_size_flags(SIZE_EXPAND_FILL);
class_desc->add_color_override("selection_color", EDITOR_DEF("text_editor/highlighting/selection_color", Color(0.2, 0.2, 1)));
class_desc->connect("meta_clicked", this, "_class_desc_select");
class_desc->connect("gui_input", this, "_class_desc_input");