mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 03:18:37 +08:00
Increase the source font's line spacing
This also increases line spacing in license texts in the editor's About dialog.
This commit is contained in:
parent
b95f0e61e0
commit
976b3e3284
@ -47,7 +47,9 @@ void EditorAbout::_notification(int p_what) {
|
||||
Control *base = EditorNode::get_singleton()->get_gui_base();
|
||||
Ref<Font> font = base->get_font("source", "EditorFonts");
|
||||
_tpl_text->add_font_override("normal_font", font);
|
||||
_tpl_text->add_constant_override("line_separation", 6 * EDSCALE);
|
||||
_license_text->add_font_override("normal_font", font);
|
||||
_license_text->add_constant_override("line_separation", 6 * EDSCALE);
|
||||
_logo->set_texture(base->get_icon("Logo", "EditorIcons"));
|
||||
} break;
|
||||
}
|
||||
|
@ -357,7 +357,7 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) {
|
||||
_initial_set("text_editor/theme/color_theme", "Adaptive");
|
||||
hints["text_editor/theme/color_theme"] = PropertyInfo(Variant::STRING, "text_editor/theme/color_theme", PROPERTY_HINT_ENUM, "Adaptive,Default,Custom");
|
||||
|
||||
_initial_set("text_editor/theme/line_spacing", 4);
|
||||
_initial_set("text_editor/theme/line_spacing", 6);
|
||||
_initial_set("text_editor/theme/selection_color", Color::html("40808080"));
|
||||
|
||||
_load_default_text_editor_theme();
|
||||
|
@ -179,7 +179,7 @@ void ScriptTextEditor::_load_theme_settings() {
|
||||
text_edit->add_color_override("search_result_border_color", search_result_border_color);
|
||||
text_edit->add_color_override("symbol_color", symbol_color);
|
||||
|
||||
text_edit->add_constant_override("line_spacing", EDITOR_DEF("text_editor/theme/line_spacing", 4));
|
||||
text_edit->add_constant_override("line_spacing", EDITOR_DEF("text_editor/theme/line_spacing", 6));
|
||||
|
||||
colors_cache.symbol_color = symbol_color;
|
||||
colors_cache.keyword_color = keyword_color;
|
||||
|
@ -131,7 +131,7 @@ void TextEditor::_load_theme_settings() {
|
||||
text_edit->add_color_override("search_result_border_color", search_result_border_color);
|
||||
text_edit->add_color_override("symbol_color", symbol_color);
|
||||
|
||||
text_edit->add_constant_override("line_spacing", EDITOR_DEF("text_editor/theme/line_spacing", 4));
|
||||
text_edit->add_constant_override("line_spacing", EDITOR_DEF("text_editor/theme/line_spacing", 6));
|
||||
|
||||
colors_cache.font_color = text_color;
|
||||
colors_cache.symbol_color = symbol_color;
|
||||
|
Loading…
Reference in New Issue
Block a user