From 2341c7bbd93e934647e25428b3656e439ade2b99 Mon Sep 17 00:00:00 2001 From: kobewi Date: Wed, 17 Nov 2021 12:50:25 +0100 Subject: Mention how to add margins to Button's icon --- doc/classes/Button.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/classes/Button.xml b/doc/classes/Button.xml index ba55fda59c..d63bad7cad 100644 --- a/doc/classes/Button.xml +++ b/doc/classes/Button.xml @@ -78,6 +78,7 @@ Button's icon, if text is present the icon will be placed before the text. + To edit margin and spacing of the icon, use [code]hseparation[/code] theme property of [Button] and [code]content_margin_*[/code] properties of the used [StyleBox]es. Specifies if the icon should be aligned to the left, right, or center of a button. Uses the same [enum TextAlign] constants as the text alignment. If centered, text will draw on top of the icon. -- cgit v1.2.3