1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Merge pull request #81463 from YuriSizov/theme-variate-those-tooltips

Correctly setup tooltip's style as theme variation
This commit is contained in:
Rémi Verschelde
2023-09-08 23:16:29 +02:00

View File

@@ -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>());