浏览代码

Increase line spacing in the editor help and asset library descriptions

This makes for more readable text.
Hugo Locurcio 6 年之前
父节点
当前提交
d6984f7311
共有 2 个文件被更改,包括 2 次插入0 次删除
  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);
 	qualifier_color = text_color * Color(1, 1, 1, 0.8);
 	type_color = get_color("accent_color", "Editor").linear_interpolate(text_color, 0.5);
 	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_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) {
 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);
 	desc_vbox->add_child(description);
 	description->set_v_size_flags(SIZE_EXPAND_FILL);
 	description->set_v_size_flags(SIZE_EXPAND_FILL);
 	description->connect("meta_clicked", this, "_link_click");
 	description->connect("meta_clicked", this, "_link_click");
+	description->add_constant_override("line_separation", Math::round(5 * EDSCALE));
 
 
 	VBoxContainer *previews_vbox = memnew(VBoxContainer);
 	VBoxContainer *previews_vbox = memnew(VBoxContainer);
 	hbox->add_child(previews_vbox);
 	hbox->add_child(previews_vbox);