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 /doc/classes/Tree.xml | |
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 'doc/classes/Tree.xml')
-rw-r--r-- | doc/classes/Tree.xml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/classes/Tree.xml b/doc/classes/Tree.xml index afe0088a26..68876be84b 100644 --- a/doc/classes/Tree.xml +++ b/doc/classes/Tree.xml @@ -542,6 +542,18 @@ <theme_item name="icon_max_width" data_type="constant" type="int" default="0"> The maximum allowed width of the icon in item's cells. This limit is applied on top of the default size of the icon, but before the value set with [method TreeItem.set_icon_max_width]. The height is adjusted according to the icon's ratio. </theme_item> + <theme_item name="inner_item_margin_bottom" data_type="constant" type="int" default="0"> + The inner bottom margin of an item. + </theme_item> + <theme_item name="inner_item_margin_left" data_type="constant" type="int" default="0"> + The inner left margin of an item. + </theme_item> + <theme_item name="inner_item_margin_right" data_type="constant" type="int" default="0"> + The inner right margin of an item. + </theme_item> + <theme_item name="inner_item_margin_top" data_type="constant" type="int" default="0"> + The inner top margin of an item. + </theme_item> <theme_item name="item_margin" data_type="constant" type="int" default="16"> The horizontal margin at the start of an item. This is used when folding is enabled for the item. </theme_item> |