From ecff5bc42fe036cd01b480ef09222370df7eeae7 Mon Sep 17 00:00:00 2001 From: kobewi Date: Mon, 22 Mar 2021 02:43:01 +0100 Subject: Add methods to remove theme overrides --- doc/classes/Control.xml | 55 ++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 54 insertions(+), 1 deletion(-) (limited to 'doc/classes') diff --git a/doc/classes/Control.xml b/doc/classes/Control.xml index c5e820e9fe..35196ff98b 100644 --- a/doc/classes/Control.xml +++ b/doc/classes/Control.xml @@ -150,7 +150,6 @@ Overrides the [Color] with given [code]name[/code] in the [member theme] resource the control uses. - [b]Note:[/b] Unlike other theme overrides, there is no way to undo a color override without manually assigning the previous color. [b]Example of overriding a label's color and resetting it later:[/b] [codeblocks] [gdscript] @@ -730,6 +729,60 @@ Give up the focus. No other control will be able to receive keyboard input. + + + + + + + Removes a theme override for a [Color] with the given [code]name[/code]. + + + + + + + + + Removes a theme override for a constant with the given [code]name[/code]. + + + + + + + + + Removes a theme override for a [Font] with the given [code]name[/code]. + + + + + + + + + Removes a theme override for a font size with the given [code]name[/code]. + + + + + + + + + Removes a theme override for an icon with the given [code]name[/code]. + + + + + + + + + Removes a theme override for a [StyleBox] with the given [code]name[/code]. + + -- cgit v1.2.3 From 5950482b86d3b16be2e738465c24f105b8dcdd10 Mon Sep 17 00:00:00 2001 From: kobewi Date: Tue, 23 Mar 2021 00:55:02 +0100 Subject: Remove the clearing behavior from add_override --- doc/classes/Control.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'doc/classes') diff --git a/doc/classes/Control.xml b/doc/classes/Control.xml index 35196ff98b..5b8fcb64c6 100644 --- a/doc/classes/Control.xml +++ b/doc/classes/Control.xml @@ -177,7 +177,7 @@ - Overrides an integer constant with given [code]name[/code] in the [member theme] resource the control uses. If the [code]constant[/code] is [code]0[/code], the override is cleared and the constant from assigned [Theme] is used. + Overrides an integer constant with given [code]name[/code] in the [member theme] resource the control uses. @@ -188,7 +188,7 @@ - Overrides the font with given [code]name[/code] in the [member theme] resource the control uses. If [code]font[/code] is [code]null[/code] or invalid, the override is cleared and the font from assigned [Theme] is used. + Overrides the font with given [code]name[/code] in the [member theme] resource the control uses. @@ -199,7 +199,7 @@ - Overrides the font size with given [code]name[/code] in the [member theme] resource the control uses. If [code]font_size[/code] is [code]-1[/code], the override is cleared and the font size from assigned [Theme] is used. + Overrides the font size with given [code]name[/code] in the [member theme] resource the control uses. @@ -210,7 +210,7 @@ - Overrides the icon with given [code]name[/code] in the [member theme] resource the control uses. If [code]icon[/code] is [code]null[/code] or invalid, the override is cleared and the icon from assigned [Theme] is used. + Overrides the icon with given [code]name[/code] in the [member theme] resource the control uses. @@ -221,7 +221,7 @@ - Overrides the [StyleBox] with given [code]name[/code] in the [member theme] resource the control uses. If [code]stylebox[/code] is empty or invalid, the override is cleared and the [StyleBox] from assigned [Theme] is used. + Overrides the [StyleBox] with given [code]name[/code] in the [member theme] resource the control uses. [b]Example of modifying a property in a StyleBox by duplicating it:[/b] [codeblocks] [gdscript] -- cgit v1.2.3