Merge pull request #90633 from YeldhamDev/the_popup_is_not_wearing_any_panels

Remove `Popup`'s unused "panel" style
This commit is contained in:
Rémi Verschelde 2024-04-14 14:39:15 +02:00
commit 41fc152232
No known key found for this signature in database
GPG key ID: C3336907360768E1
5 changed files with 8 additions and 11 deletions

View file

@ -23,9 +23,4 @@
</description>
</signal>
</signals>
<theme_items>
<theme_item name="panel" data_type="style" type="StyleBox">
Default [StyleBox] for the [Popup].
</theme_item>
</theme_items>
</class>

View file

@ -768,6 +768,9 @@
<theme_item name="labeled_separator_right" data_type="style" type="StyleBox">
[StyleBox] for the right side of labeled separator. See [method add_separator].
</theme_item>
<theme_item name="panel" data_type="style" type="StyleBox">
[StyleBox] for the the background panel.
</theme_item>
<theme_item name="separator" data_type="style" type="StyleBox">
[StyleBox] used for the separators. See [method add_separator].
</theme_item>

View file

@ -8,4 +8,9 @@
</description>
<tutorials>
</tutorials>
<theme_items>
<theme_item name="panel" data_type="style" type="StyleBox">
[StyleBox] for the the background panel.
</theme_item>
</theme_items>
</class>

View file

@ -194,8 +194,6 @@ Rect2i Popup::_popup_adjust_rect() const {
void Popup::_bind_methods() {
ADD_SIGNAL(MethodInfo("popup_hide"));
BIND_THEME_ITEM_CUSTOM(Theme::DATA_TYPE_STYLEBOX, Popup, panel_style, "panel");
}
Popup::Popup() {

View file

@ -43,10 +43,6 @@ class Popup : public Window {
LocalVector<Window *> visible_parents;
bool popped_up = false;
struct ThemeCache {
Ref<StyleBox> panel_style;
} theme_cache;
void _initialize_visible_parents();
void _deinitialize_visible_parents();