Browse Source

Merge pull request #27913 from Amssat221/issue27912

Set a range for line spacing
Rémi Verschelde 6 years ago
parent
commit
c1cc438ce6
1 changed files with 1 additions and 0 deletions
  1. 1 0
      editor/editor_settings.cpp

+ 1 - 0
editor/editor_settings.cpp

@@ -407,6 +407,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", 6);
+	hints["text_editor/theme/line_spacing"] = PropertyInfo(Variant::INT, "text_editor/theme/line_spacing", PROPERTY_HINT_RANGE, "0,50,1");
 
 	_load_default_text_editor_theme();