diff options
author | Yuri Sizov <yuris@humnom.net> | 2023-01-19 19:14:09 +0300 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2023-01-19 20:02:21 +0300 |
commit | 752402cf354a105496ed9a86038f83f56d0706fd (patch) | |
tree | eddbf98b4692136c7d6c56e765b557236bb40afc /editor/editor_help.cpp | |
parent | 14fdd28de9f1f9979cb6cffa4b715a16d406439d (diff) | |
download | redot-engine-752402cf354a105496ed9a86038f83f56d0706fd.tar.gz |
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`.
Diffstat (limited to 'editor/editor_help.cpp')
-rw-r--r-- | editor/editor_help.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/editor_help.cpp b/editor/editor_help.cpp index 9b1a5e028b..4cf947b006 100644 --- a/editor/editor_help.cpp +++ b/editor/editor_help.cpp @@ -195,8 +195,8 @@ void EditorHelp::_class_desc_resized(bool p_force_update_theme) { display_margin = new_display_margin; Ref<StyleBox> class_desc_stylebox = EditorNode::get_singleton()->get_theme_base()->get_theme_stylebox(SNAME("background"), SNAME("EditorHelp"))->duplicate(); - class_desc_stylebox->set_default_margin(SIDE_LEFT, display_margin); - class_desc_stylebox->set_default_margin(SIDE_RIGHT, display_margin); + class_desc_stylebox->set_content_margin(SIDE_LEFT, display_margin); + class_desc_stylebox->set_content_margin(SIDE_RIGHT, display_margin); class_desc->add_theme_style_override("normal", class_desc_stylebox); class_desc->add_theme_style_override("focused", class_desc_stylebox); } |