diff options
author | Yuri Sizov <yuris@humnom.net> | 2023-07-12 15:08:36 +0200 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2023-07-12 15:08:36 +0200 |
commit | b4a11294e6332ff7f786b1c55cc2153f48511c32 (patch) | |
tree | fb51bc5c29b06a4a6c89fe078f9617a95fd96a5e /scene/resources/default_theme | |
parent | f6d568b9e4fad71e03684567178a7b4b7949882b (diff) | |
parent | 670b7bec9aeb5e31ed840e9dfcdd1e3171acc5e5 (diff) | |
download | redot-engine-b4a11294e6332ff7f786b1c55cc2153f48511c32.tar.gz |
Merge pull request #75460 from joao-pedro-braz/add_new_item_stylebox_to_the_tree_control
Add a new "inner_item_margin" Theme constant to the Tree control
Diffstat (limited to 'scene/resources/default_theme')
-rw-r--r-- | scene/resources/default_theme/default_theme.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/resources/default_theme/default_theme.cpp b/scene/resources/default_theme/default_theme.cpp index 1bfcf8d3ac..ea56e07608 100644 --- a/scene/resources/default_theme/default_theme.cpp +++ b/scene/resources/default_theme/default_theme.cpp @@ -774,6 +774,10 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const theme->set_constant("h_separation", "Tree", 4 * scale); theme->set_constant("v_separation", "Tree", 4 * scale); theme->set_constant("item_margin", "Tree", 16 * scale); + theme->set_constant("inner_item_margin_bottom", "Tree", 0); + theme->set_constant("inner_item_margin_left", "Tree", 0); + theme->set_constant("inner_item_margin_right", "Tree", 0); + theme->set_constant("inner_item_margin_top", "Tree", 0); theme->set_constant("button_margin", "Tree", 4 * scale); theme->set_constant("draw_relationship_lines", "Tree", 0); theme->set_constant("relationship_line_width", "Tree", 1); |