Skip to main content

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

ParameterFormatRequirementUsage
--elementNameStringMandatoryThe name of the element being styled.
--stateStringOptionalIn which state the style is applied. Possible values:
CLI tool parameterJSON value
defaultDEFAULT
pressedPRESSED
disabledDISABLED
scrolledSCROLLED
--partStringOptionalSome elements consist of multiple parts. This setting specifies which part the style should be applied to.

Posible values:
CLI tool parameterJSON value
scrollbarSCROLLBAR
indicatorINDICATOR
itemsITEMS
mainMAIN
If left empty or as an invalid value it defaults to the main part. This is usually the element background.
--opacityIntegerMandatoryOpacity of the element. 0 is solid and 255 is transparent.
--colorIntegerMandatoryHex color (0x000000 - 0xFFFFFF)
--padLeftIntegerMandatoryPadding on the left side of the element.
--padRightIntegerMandatoryPadding on the right side of the element.
--padBottomIntegerMandatoryPadding on the bottom of the element.
--padTopIntegerMandatoryPadding on the top of the element.
--radiusIntegerMandatoryChanges 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.