| 137 | ProgressDialog *ProgressDialog::singleton = nullptr; |
| 138 | |
| 139 | void ProgressDialog::_notification(int p_what) { |
| 140 | switch (p_what) { |
| 141 | case NOTIFICATION_THEME_CHANGED: { |
| 142 | Ref<StyleBox> style = main->get_theme_stylebox(SceneStringName(panel), SNAME("PopupMenu")); |
| 143 | main_border_size = style->get_minimum_size(); |
| 144 | main->set_offset(SIDE_LEFT, style->get_margin(SIDE_LEFT)); |
| 145 | main->set_offset(SIDE_RIGHT, -style->get_margin(SIDE_RIGHT)); |
| 146 | main->set_offset(SIDE_TOP, style->get_margin(SIDE_TOP)); |
| 147 | main->set_offset(SIDE_BOTTOM, -style->get_margin(SIDE_BOTTOM)); |
| 148 | |
| 149 | center_panel->add_theme_style_override(SceneStringName(panel), get_theme_stylebox(SceneStringName(panel), "PopupPanel")); |
| 150 | } break; |
| 151 | } |
| 152 | } |
| 153 | |
| 154 | void ProgressDialog::_update_ui() { |
| 155 | // Run main loop for two frames. |
nothing calls this directly
no test coverage detected