Skip to content

Commit 73f6464

Browse files
authored
Merge branch 'main' into stm-6851-update-docs-for-paid-models
2 parents 79b6f4c + c444e18 commit 73f6464

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

content/en-us/ui/appearance-modifiers.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ title: UI appearance modifiers
33
description: Explains how to use appearance modifiers to customize basic user interface objects.
44
---
55

6+
import BetaAlert from '../includes/beta-features/beta-alert.md'
7+
68
By utilizing **appearance modifiers**, you can further customize the appearance of your `Class.GuiObject|GuiObjects`.
79

810
- Apply a [gradient](#gradient) to the background of an object.
@@ -207,6 +209,8 @@ When applied to a text object, you can override the default stroke behavior by t
207209

208210
### Border position/offset
209211

212+
<BetaAlert betaName="Improved UIStrokes" leadIn="The properties outlined in this section are currently in beta. Enable them through " leadOut="." components={props.components} />
213+
210214
`Class.UIStroke.BorderStrokePosition|BorderStrokePosition` sets the stroke's position relative to its parent's border and `Class.UIStroke.BorderOffset|BorderOffset` lets you specify an additional offset to the stroke's position.
211215

212216
<GridContainer numColumns="3">
@@ -269,6 +273,14 @@ The `Class.UIStroke.LineJoinMode|LineJoinMode` property lets you control how cor
269273
</figure>
270274
</GridContainer>
271275

276+
### Layering
277+
278+
<BetaAlert betaName="Improved UIStrokes" leadIn="Stroke layering through the property outlined in this section is currently in beta. Enable it through " leadOut="." components={props.components} />
279+
280+
To layer multiple sibling `Class.UIStroke` instances on a `Class.GuiObject` from front to back, you can utilize the `Class.UIStroke.ZIndex|ZIndex` property. Those with a lower `Class.UIStroke.ZIndex|ZIndex` render under (behind) those with a higher `Class.UIStroke.ZIndex|ZIndex`.
281+
282+
Note that the rendering order for `Class.UIStroke` instances with the same `Class.UIStroke.ZIndex|ZIndex` is undefined. Do not apply multiple `Class.UIStroke` instances with the same index if their rendering order matters.
283+
272284
## Corners
273285

274286
The `Class.UICorner` instance applies deformation to all four corners of its parent `Class.GuiObject`. You can control the applied radius through the `Class.UICorner.CornerRadius|CornerRadius` property using either `Datatype.UDim.Scale|Scale` or `Datatype.UDim.Offset|Offset`.

0 commit comments

Comments
 (0)