You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-19 14:31:59 +00:00
Add set_default_margin_all/individual to StyleBox
This commit is contained in:
@@ -498,10 +498,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(SIDE_LEFT, int(stylebox_radius * 2.5));
|
||||
boxes[i]->set_default_margin(SIDE_RIGHT, int(stylebox_radius * 2.5));
|
||||
boxes[i]->set_default_margin(SIDE_TOP, 3);
|
||||
boxes[i]->set_default_margin(SIDE_BOTTOM, 3);
|
||||
boxes[i]->set_default_margin_individual(int(stylebox_radius * 2.5), 3, int(stylebox_radius * 2.5), 3);
|
||||
}
|
||||
|
||||
// Theming (progress).
|
||||
|
||||
Reference in New Issue
Block a user