From 3d45f4b07e0042529c23b17961d00491eea9fd33 Mon Sep 17 00:00:00 2001 From: Yuri Sizov Date: Fri, 8 Sep 2023 21:51:06 +0200 Subject: [PATCH] Correctly setup tooltip's style as theme variation --- scene/theme/default_theme.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scene/theme/default_theme.cpp b/scene/theme/default_theme.cpp index 3597eb3f78a..61e018c6567 100644 --- a/scene/theme/default_theme.cpp +++ b/scene/theme/default_theme.cpp @@ -1025,9 +1025,11 @@ void fill_default_theme(Ref &theme, const Ref &default_font, const // TooltipPanel + TooltipLabel + theme->set_type_variation("TooltipPanel", "PopupPanel"); theme->set_stylebox("panel", "TooltipPanel", make_flat_stylebox(Color(0, 0, 0, 0.5), 2 * default_margin, 0.5 * default_margin, 2 * default_margin, 0.5 * default_margin)); + theme->set_type_variation("TooltipLabel", "Label"); theme->set_font_size("font_size", "TooltipLabel", -1); theme->set_font("font", "TooltipLabel", Ref());