From bab8c760e88ae848f5be633d0be87966703e6f61 Mon Sep 17 00:00:00 2001 From: gsegovia2018 <46790538+gsegovia2018@users.noreply.github.com> Date: Thu, 11 Apr 2019 18:29:07 +0200 Subject: Set range for line spacing --- editor/editor_settings.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/editor_settings.cpp b/editor/editor_settings.cpp index bf582ca004..b725bb1d96 100644 --- a/editor/editor_settings.cpp +++ b/editor/editor_settings.cpp @@ -407,6 +407,7 @@ void EditorSettings::_load_defaults(Ref 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(); -- cgit v1.2.3