Merge pull request #71686 from YuriSizov/stylebox-min-size-but-better

Clean-up, harmonize, and improve StyleBox API
This commit is contained in:
Rémi Verschelde
2023-01-22 17:53:04 +01:00
21 changed files with 285 additions and 300 deletions

View File

@@ -525,7 +525,7 @@ EditorToaster::EditorToaster() {
Ref<StyleBoxFlat> boxes[] = { info_panel_style_background, warning_panel_style_background, error_panel_style_background };
for (int i = 0; i < 3; i++) {
boxes[i]->set_default_margin_individual(int(stylebox_radius * 2.5), 3, int(stylebox_radius * 2.5), 3);
boxes[i]->set_content_margin_individual(int(stylebox_radius * 2.5), 3, int(stylebox_radius * 2.5), 3);
}
// Theming (progress).