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
commit fc99492d30
No known key found for this signature in database
GPG Key ID: C3336907360768E1

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