Browse Source

Increase line spacing in the editor help and asset library descriptions

This makes for more readable text.
Hugo Locurcio 6 years ago
parent
commit
d6984f7311
2 changed files with 2 additions and 0 deletions
  1. 1 0
      editor/editor_help.cpp
  2. 1 0
      editor/plugins/asset_library_editor_plugin.cpp

+ 1 - 0
editor/editor_help.cpp

@@ -54,6 +54,7 @@ void EditorHelp::_init_colors() {
 	qualifier_color = text_color * Color(1, 1, 1, 0.8);
 	type_color = get_color("accent_color", "Editor").linear_interpolate(text_color, 0.5);
 	class_desc->add_color_override("selection_color", get_color("accent_color", "Editor") * Color(1, 1, 1, 0.4));
+	class_desc->add_constant_override("line_separation", Math::round(5 * EDSCALE));
 }
 
 void EditorHelp::_unhandled_key_input(const Ref<InputEvent> &p_ev) {

+ 1 - 0
editor/plugins/asset_library_editor_plugin.cpp

@@ -290,6 +290,7 @@ EditorAssetLibraryItemDescription::EditorAssetLibraryItemDescription() {
 	desc_vbox->add_child(description);
 	description->set_v_size_flags(SIZE_EXPAND_FILL);
 	description->connect("meta_clicked", this, "_link_click");
+	description->add_constant_override("line_separation", Math::round(5 * EDSCALE));
 
 	VBoxContainer *previews_vbox = memnew(VBoxContainer);
 	hbox->add_child(previews_vbox);