Edit Style
Purpose
Creates multiple advanced styling options for the element
Example
edit-style --elementName button1 --state String --part String --opacity int --color int --padLeft int --padRight int --padBottom int --padTop int --radius int
Command Syntax
| Parameter | Format | Requirement | Usage | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
--elementName | String | Mandatory | The name of the element being styled. | ||||||||||
--state | String | Optional | In which state the style is applied. Possible values:
| ||||||||||
--part | String | Optional | Some elements consist of multiple parts. This setting specifies which part the style should be applied to. Posible values:
| ||||||||||
--opacity | Integer | Mandatory | Opacity of the element. 0 is solid and 255 is transparent. | ||||||||||
--color | Integer | Mandatory | Hex color (0x000000 - 0xFFFFFF) | ||||||||||
--padLeft | Integer | Mandatory | Padding on the left side of the element. | ||||||||||
--padRight | Integer | Mandatory | Padding on the right side of the element. | ||||||||||
--padBottom | Integer | Mandatory | Padding on the bottom of the element. | ||||||||||
--padTop | Integer | Mandatory | Padding on the top of the element. | ||||||||||
--radius | Integer | Mandatory | Changes the corner radius of an element. A higher value makes it more rounded. |
From Opacity, you must specify each of the values in this command. You can set the default value for these however.
tip
Styling is advanced, and several other element settings also apply styling such as Disabled Element or Hide Element.