From 77121efdff23598f04aee4a1e236bcce654b3581 Mon Sep 17 00:00:00 2001 From: FireForge <67974470+fire-forge@users.noreply.github.com> Date: Thu, 1 Sep 2022 21:51:17 -0500 Subject: [PATCH] Increase ItemList v_separation in editor theme ItemList now uses the same value for v_separation as PopupMenu. This makes it easier to select items. --- editor/editor_themes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/editor_themes.cpp b/editor/editor_themes.cpp index af0e40d1d45..2423f68b22c 100644 --- a/editor/editor_themes.cpp +++ b/editor/editor_themes.cpp @@ -1212,7 +1212,7 @@ Ref create_editor_theme(const Ref p_theme) { theme->set_color("font_color", "ItemList", font_color); theme->set_color("font_selected_color", "ItemList", mono_color); theme->set_color("guide_color", "ItemList", guide_color); - theme->set_constant("v_separation", "ItemList", widget_default_margin.y - EDSCALE); + theme->set_constant("v_separation", "ItemList", force_even_vsep * 0.5 * EDSCALE); theme->set_constant("h_separation", "ItemList", 6 * EDSCALE); theme->set_constant("icon_margin", "ItemList", 6 * EDSCALE); theme->set_constant("line_separation", "ItemList", 3 * EDSCALE);