mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
Clean-up, harmonize, and improve StyleBox API
- Make all margin properties follow the same naming convention (their getter and setter too). - Remove a virtual counterpart of `get_style_margin` from API. - Allow to override `get_minimum_size` from scripting and remove `get_center_size`.
This commit is contained in:
parent
14fdd28de9
commit
752402cf35
21 changed files with 285 additions and 300 deletions
|
|
@ -53,7 +53,7 @@ BitMapEditor::BitMapEditor() {
|
|||
// Reduce extra padding on top and bottom of size label.
|
||||
Ref<StyleBoxEmpty> stylebox;
|
||||
stylebox.instantiate();
|
||||
stylebox->set_default_margin(SIDE_RIGHT, 4 * EDSCALE);
|
||||
stylebox->set_content_margin(SIDE_RIGHT, 4 * EDSCALE);
|
||||
size_label->add_theme_style_override("normal", stylebox);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue