Decrease the default line spacing in the script editor
This brings the level of line spacing closer to what it was like in Godot 3.x, which improves usability on small displays. This also decreases the default line spacing for fixed-width texts in the About dialog (license text).
This commit is contained in:
@ -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")));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user