diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-03-21 08:16:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-21 08:16:51 +0100 |
commit | d77d85d23e0400722920872892592c36b36f5cb9 (patch) | |
tree | 69b49db85cbaa221885b5e1fdbab921a65f9f965 | |
parent | fbd94dbe88be6bd8baefe9b438ca456a0ce52e96 (diff) | |
parent | 6d4514c95e88acabd88fb5c426ed7a422fcf070a (diff) |
Merge pull request #59367 from Calinou/script-editor-decrease-line-spacing
Decrease the default line spacing in the script editor
-rw-r--r-- | editor/editor_about.cpp | 4 | ||||
-rw-r--r-- | editor/editor_settings.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/editor/editor_about.cpp b/editor/editor_about.cpp index 9b6e2698b6..5beda7d907 100644 --- a/editor/editor_about.cpp +++ b/editor/editor_about.cpp @@ -43,10 +43,10 @@ void EditorAbout::_theme_changed() { const int font_size = get_theme_font_size(SNAME("source_size"), SNAME("EditorFonts")); _tpl_text->add_theme_font_override("normal_font", font); _tpl_text->add_theme_font_size_override("normal_font_size", font_size); - _tpl_text->add_theme_constant_override("line_separation", 6 * EDSCALE); + _tpl_text->add_theme_constant_override("line_separation", 4 * EDSCALE); _license_text->add_theme_font_override("normal_font", font); _license_text->add_theme_font_size_override("normal_font_size", font_size); - _license_text->add_theme_constant_override("line_separation", 6 * EDSCALE); + _license_text->add_theme_constant_override("line_separation", 4 * EDSCALE); _logo->set_texture(get_theme_icon(SNAME("Logo"), SNAME("EditorIcons"))); } diff --git a/editor/editor_settings.cpp b/editor/editor_settings.cpp index 7d78e6aa16..d4581ffb09 100644 --- a/editor/editor_settings.cpp +++ b/editor/editor_settings.cpp @@ -535,7 +535,7 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) { // Appearance: Whitespace _initial_set("text_editor/appearance/whitespace/draw_tabs", true); _initial_set("text_editor/appearance/whitespace/draw_spaces", false); - EDITOR_SETTING(Variant::INT, PROPERTY_HINT_RANGE, "text_editor/appearance/whitespace/line_spacing", 6, "0,50,1") + EDITOR_SETTING(Variant::INT, PROPERTY_HINT_RANGE, "text_editor/appearance/whitespace/line_spacing", 4, "0,50,1") // Behavior // Behavior: Navigation |