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