Popups are now windows also (broken!)

This commit is contained in:
Juan Linietsky 2020-03-12 09:37:40 -03:00
parent 543fb1c4da
commit 441f1a5fe9
159 changed files with 3311 additions and 3285 deletions

View file

@ -34,10 +34,10 @@ Size2 PanelContainer::get_minimum_size() const {
Ref<StyleBox> style;
if (has_stylebox("panel"))
style = get_stylebox("panel");
if (has_theme_stylebox("panel"))
style = get_theme_stylebox("panel");
else
style = get_stylebox("panel", "PanelContainer");
style = get_theme_stylebox("panel", "PanelContainer");
Size2 ms;
for (int i = 0; i < get_child_count(); i++) {
@ -65,10 +65,10 @@ void PanelContainer::_notification(int p_what) {
RID ci = get_canvas_item();
Ref<StyleBox> style;
if (has_stylebox("panel"))
style = get_stylebox("panel");
if (has_theme_stylebox("panel"))
style = get_theme_stylebox("panel");
else
style = get_stylebox("panel", "PanelContainer");
style = get_theme_stylebox("panel", "PanelContainer");
style->draw(ci, Rect2(Point2(), get_size()));
}
@ -77,10 +77,10 @@ void PanelContainer::_notification(int p_what) {
Ref<StyleBox> style;
if (has_stylebox("panel"))
style = get_stylebox("panel");
if (has_theme_stylebox("panel"))
style = get_theme_stylebox("panel");
else
style = get_stylebox("panel", "PanelContainer");
style = get_theme_stylebox("panel", "PanelContainer");
Size2 size = get_size();
Point2 ofs;