Skip to content

Commit

Permalink
Merge pull request #81463 from YuriSizov/theme-variate-those-tooltips
Browse files Browse the repository at this point in the history
Correctly setup tooltip's style as theme variation
  • Loading branch information
akien-mga committed Sep 8, 2023
2 parents fb4edf5 + 3d45f4b commit fc99492
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scene/theme/default_theme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>());

Expand Down

0 comments on commit fc99492

Please sign in to comment.