|
@@ -1711,6 +1711,11 @@ void EditorHelp::_notification(int p_what) {
|
|
_update_doc();
|
|
_update_doc();
|
|
} break;
|
|
} break;
|
|
|
|
|
|
|
|
+ case EditorSettings::NOTIFICATION_EDITOR_SETTINGS_CHANGED: {
|
|
|
|
+
|
|
|
|
+ class_desc->add_color_override("selection_color", EDITOR_DEF("text_editor/highlighting/selection_color", Color(0.2, 0.2, 1)));
|
|
|
|
+ } break;
|
|
|
|
+
|
|
default: break;
|
|
default: break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -1785,6 +1790,7 @@ EditorHelp::EditorHelp() {
|
|
class_desc = memnew(RichTextLabel);
|
|
class_desc = memnew(RichTextLabel);
|
|
background_panel->add_child(class_desc);
|
|
background_panel->add_child(class_desc);
|
|
class_desc->set_area_as_parent_rect();
|
|
class_desc->set_area_as_parent_rect();
|
|
|
|
+ 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("meta_clicked", this, "_class_desc_select");
|
|
class_desc->connect("gui_input", this, "_class_desc_input");
|
|
class_desc->connect("gui_input", this, "_class_desc_input");
|
|
}
|
|
}
|
|
@@ -1872,6 +1878,15 @@ void EditorHelpBit::_bind_methods() {
|
|
}
|
|
}
|
|
|
|
|
|
void EditorHelpBit::_notification(int p_what) {
|
|
void EditorHelpBit::_notification(int p_what) {
|
|
|
|
+
|
|
|
|
+ switch (p_what) {
|
|
|
|
+ case EditorSettings::NOTIFICATION_EDITOR_SETTINGS_CHANGED: {
|
|
|
|
+
|
|
|
|
+ rich_text->add_color_override("selection_color", EDITOR_DEF("text_editor/highlighting/selection_color", Color(0.2, 0.2, 1)));
|
|
|
|
+ } break;
|
|
|
|
+
|
|
|
|
+ default: break;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
void EditorHelpBit::set_text(const String &p_text) {
|
|
void EditorHelpBit::set_text(const String &p_text) {
|
|
@@ -1886,5 +1901,6 @@ EditorHelpBit::EditorHelpBit() {
|
|
add_child(rich_text);
|
|
add_child(rich_text);
|
|
rich_text->set_area_as_parent_rect();
|
|
rich_text->set_area_as_parent_rect();
|
|
rich_text->connect("meta_clicked", this, "_meta_clicked");
|
|
rich_text->connect("meta_clicked", this, "_meta_clicked");
|
|
|
|
+ rich_text->add_color_override("selection_color", EDITOR_DEF("text_editor/highlighting/selection_color", Color(0.2, 0.2, 1)));
|
|
set_custom_minimum_size(Size2(0, 70 * EDSCALE));
|
|
set_custom_minimum_size(Size2(0, 70 * EDSCALE));
|
|
}
|
|
}
|