Skip to content

Commit

Permalink
Document caveats with StyleBoxFlat antialiasing and beveled corners
Browse files Browse the repository at this point in the history
  • Loading branch information
Calinou committed Sep 14, 2021
1 parent 0232a03 commit f7f8ae6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/classes/StyleBoxFlat.xml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@
<members>
<member name="anti_aliasing" type="bool" setter="set_anti_aliased" getter="is_anti_aliased" default="true">
Antialiasing draws a small ring around the edges, which fades to transparency. As a result, edges look much smoother. This is only noticeable when using rounded corners.
[b]Note:[/b] When using beveled corners with 45-degree angles ([member corner_detail] = 1), it is recommended to set [member anti_aliasing] to [code]false[/code] to ensure crisp visuals and avoid possible visual glitches.
</member>
<member name="anti_aliasing_size" type="float" setter="set_aa_size" getter="get_aa_size" default="0.625">
This changes the size of the faded ring. Higher values can be used to achieve a "blurry" effect.
Expand Down

0 comments on commit f7f8ae6

Please sign in to comment.