summaryrefslogtreecommitdiffstats
path: root/doc/classes/Control.xml
diff options
context:
space:
mode:
authorYuri Sizov <yuris@humnom.net>2021-07-04 23:42:23 +0300
committerYuri Sizov <yuris@humnom.net>2021-07-13 02:26:28 +0300
commit4ee0e6ddf552fd82fffb5f2895a6f05c978144ad (patch)
tree81265256ab5690da126b475ad202e95b313db862 /doc/classes/Control.xml
parent30d4732623df8a9c286eb1e0b5d3321b31bcfa86 (diff)
downloadredot-engine-4ee0e6ddf552fd82fffb5f2895a6f05c978144ad.tar.gz
Add type variations to Theme
Diffstat (limited to 'doc/classes/Control.xml')
-rw-r--r--doc/classes/Control.xml5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/classes/Control.xml b/doc/classes/Control.xml
index 47e26b7a2e..9c4600e4f3 100644
--- a/doc/classes/Control.xml
+++ b/doc/classes/Control.xml
@@ -1164,8 +1164,9 @@
<member name="theme" type="Theme" setter="set_theme" getter="get_theme">
The [Theme] resource this node and all its [Control] children use. If a child node has its own [Theme] resource set, theme items are merged with child's definitions having higher priority.
</member>
- <member name="theme_custom_type" type="StringName" setter="set_theme_custom_type" getter="get_theme_custom_type" default="&amp;&quot;&quot;">
- The type name used by this [Control] to look up its own theme items. By default, the class name of the node is used (e.g. [code]Button[/code] for the [Button] control), as well as the class names of all parent classes (in order of inheritance). Setting this property gives the highest priority to the type of the specified name, then falls back on the class names.
+ <member name="theme_type_variation" type="StringName" setter="set_theme_type_variation" getter="get_theme_type_variation" default="&amp;&quot;&quot;">
+ The name of a theme type variation used by this [Control] to look up its own theme items. When empty, the class name of the node is used (e.g. [code]Button[/code] for the [Button] control), as well as the class names of all parent classes (in order of inheritance).
+ When set, this property gives the highest priority to the type of the specified name. This type can in turn extend another type, forming a dependency chain. See [method Theme.set_type_variation]. If the theme item cannot be found using this type or its base types, lookup falls back on the class names.
[b]Note:[/b] To look up [Control]'s own items use various [code]get_theme_*[/code] methods without specifying [code]theme_type[/code].
[b]Note:[/b] Theme items are looked for in the tree order, from branch to root, where each [Control] node is checked for its [member theme] property. The earliest match against any type/class name is returned. The project-level Theme and the default Theme are checked last.
</member>