diff options
author | João Pedro Braz <brazjoaopedro@ymail.com> | 2023-04-27 15:16:28 -0300 |
---|---|---|
committer | João Pedro Braz <josaid@localhost.localdomain> | 2023-06-02 11:32:40 +0200 |
commit | 670b7bec9aeb5e31ed840e9dfcdd1e3171acc5e5 (patch) | |
tree | b89af0f860c9b7d497c931a63c8e6a6074279664 /scene/gui/tree.h | |
parent | 150acefb39baf20f28ef92ee438add6571d1826b (diff) | |
download | redot-engine-670b7bec9aeb5e31ed840e9dfcdd1e3171acc5e5.tar.gz |
Add the "inner_item_margin" Theme constant to the Tree control
This PR adds the "inner_item_margin" Theme constant to the Tree Control.
It behaves like a horizontal padding (in CSS), but only in the active
writing direction (So on LTR it'll apply a left padding and on RTL right
padding).
The Editor Theme has been updated to make use of this and a result items
in Trees and ItemLists no longer "hugs" their border, expressing a proper
spacing instead.
Diffstat (limited to 'scene/gui/tree.h')
-rw-r--r-- | scene/gui/tree.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/gui/tree.h b/scene/gui/tree.h index 24b649b040..b1089d6e5b 100644 --- a/scene/gui/tree.h +++ b/scene/gui/tree.h @@ -547,6 +547,10 @@ private: int h_separation = 0; int v_separation = 0; + int inner_item_margin_bottom = 0; + int inner_item_margin_left = 0; + int inner_item_margin_right = 0; + int inner_item_margin_top = 0; int item_margin = 0; int button_margin = 0; int icon_max_width = 0; |