diff options
author | Yuri Sizov <yuris@humnom.net> | 2023-03-31 21:17:59 +0200 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2023-03-31 21:39:02 +0200 |
commit | 1522762dc986c130ad63cbf854514d730788a4cf (patch) | |
tree | 81cbbbb7028bc95f828d78644b570e506736ece9 /doc/classes/Tree.xml | |
parent | 9fae65404a223a86816685b0b4036a57b8f976b7 (diff) | |
download | redot-engine-1522762dc986c130ad63cbf854514d730788a4cf.tar.gz |
Make icons of scripted and custom classes fit the editor UI
Also:
- Add an option to limit the icon size in PopupMenu.
This is similar to how this works in Tree and TreeItem.
- Add the same option to TabBar.
- Add a theme constant for Tree, PopupMenu, Button, and
TabBar to apply this limit on the control level.
Co-authored-by: Daylily-Zeleen <daylily-zeleen@foxmail.com>
Diffstat (limited to 'doc/classes/Tree.xml')
-rw-r--r-- | doc/classes/Tree.xml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/classes/Tree.xml b/doc/classes/Tree.xml index 95778f86c4..d09f61b8c8 100644 --- a/doc/classes/Tree.xml +++ b/doc/classes/Tree.xml @@ -518,6 +518,9 @@ <theme_item name="h_separation" data_type="constant" type="int" default="4"> The horizontal space between item cells. This is also used as the margin at the start of an item when folding is disabled. </theme_item> + <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="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> |