Fix some grammar in StyleBoxFlat class docs
(cherry picked from commit 89e7e61773
)
This commit is contained in:
parent
29616f4a35
commit
28365a5258
1 changed files with 4 additions and 4 deletions
|
@ -4,12 +4,12 @@
|
|||
Customizable [StyleBox] with a given set of parameters (no texture required).
|
||||
</brief_description>
|
||||
<description>
|
||||
This [StyleBox] can be used to achieve all kinds of looks without the need of a texture. Those properties are customizable:
|
||||
This [StyleBox] can be used to achieve all kinds of looks without the need of a texture. The following properties are customizable:
|
||||
- Color
|
||||
- Border width (individual width for each border)
|
||||
- Rounded corners (individual radius for each corner)
|
||||
- Shadow (with blur and offset)
|
||||
Setting corner radius to high values is allowed. As soon as corners would overlap, the stylebox will switch to a relative system. Example:
|
||||
Setting corner radius to high values is allowed. As soon as corners overlap, the stylebox will switch to a relative system. Example:
|
||||
[codeblock]
|
||||
height = 30
|
||||
corner_radius_top_left = 50
|
||||
|
@ -178,8 +178,8 @@
|
|||
Border width for the top border.
|
||||
</member>
|
||||
<member name="corner_detail" type="int" setter="set_corner_detail" getter="get_corner_detail" default="8">
|
||||
This sets the amount of vertices used for each corner. Higher values result in rounder corners but take more processing power to compute. When choosing a value, you should take the corner radius ([method set_corner_radius_all]) into account.
|
||||
For corner radii smaller than 10, [code]4[/code] or [code]5[/code] should be enough. For corner radii smaller than 30, values between [code]8[/code] and [code]12[/code] should be enough.
|
||||
This sets the number of vertices used for each corner. Higher values result in rounder corners but take more processing power to compute. When choosing a value, you should take the corner radius ([method set_corner_radius_all]) into account.
|
||||
For corner radii less than 10, [code]4[/code] or [code]5[/code] should be enough. For corner radii less than 30, values between [code]8[/code] and [code]12[/code] should be enough.
|
||||
A corner detail of [code]1[/code] will result in chamfered corners instead of rounded corners, which is useful for some artistic effects.
|
||||
</member>
|
||||
<member name="corner_radius_bottom_left" type="int" setter="set_corner_radius" getter="get_corner_radius" default="0">
|
||||
|
|
Loading…
Reference in a new issue