Merge pull request #31794 from Calinou/editor-increase-line-spacing
Increase line spacing in the editor help and asset library descriptions
This commit is contained in:
commit
3fdf85cd9b
2 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue