summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYuri Sizov <yuris@humnom.net>2023-09-08 21:51:06 +0200
committerYuri Sizov <yuris@humnom.net>2023-09-08 21:51:06 +0200
commit3d45f4b07e0042529c23b17961d00491eea9fd33 (patch)
tree8efae9ef97cadb05e8509d9e14f26e07661a5af4
parent8c1817f755b63a69378774d8d0f74499f663afe2 (diff)
downloadredot-engine-3d45f4b07e0042529c23b17961d00491eea9fd33.tar.gz
Correctly setup tooltip's style as theme variation
-rw-r--r--scene/theme/default_theme.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/theme/default_theme.cpp b/scene/theme/default_theme.cpp
index 3597eb3f78..61e018c656 100644
--- a/scene/theme/default_theme.cpp
+++ b/scene/theme/default_theme.cpp
@@ -1025,9 +1025,11 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &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<Font>());