From 3a1b2954f1cf7c9210f4118516d1a7bf1c171343 Mon Sep 17 00:00:00 2001 From: Relintai Date: Thu, 20 Apr 2023 23:47:14 +0200 Subject: [PATCH] Ported: [3.x] Don't apply scale to autohide theme property - AThousandShips https://github.com/godotengine/godot/commit/1c6625756838560e6bd7c6ad24b14fe430cc10db --- scene/resources/default_theme/default_theme.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scene/resources/default_theme/default_theme.cpp b/scene/resources/default_theme/default_theme.cpp index a67a7c957..1bf9bfe74 100644 --- a/scene/resources/default_theme/default_theme.cpp +++ b/scene/resources/default_theme/default_theme.cpp @@ -894,8 +894,8 @@ void fill_default_theme(Ref &theme, const Ref &default_font, const theme->set_constant("vseparation", "GridContainer", 4 * scale); theme->set_constant("separation", "HSplitContainer", 12 * scale); theme->set_constant("separation", "VSplitContainer", 12 * scale); - theme->set_constant("autohide", "HSplitContainer", 1 * scale); - theme->set_constant("autohide", "VSplitContainer", 1 * scale); + theme->set_constant("autohide", "HSplitContainer", 1); + theme->set_constant("autohide", "VSplitContainer", 1); theme->set_constant("hseparation", "HFlowContainer", 4 * scale); theme->set_constant("vseparation", "HFlowContainer", 4 * scale); theme->set_constant("hseparation", "VFlowContainer", 4 * scale);