-
Notifications
You must be signed in to change notification settings - Fork 1
YAML CSS Documentation
This documentation describes the structure and properties of the YAML CSS JSON schema.
-
Type:
string -
Default Value:
1.5.0 - Description: Previous versions. YAML-CSS is not retro-compatible.
-
Allowed Values:
1.0.01.1.01.2.01.3.01.4.01.4.11.5.0
-
Type:
object
-
id:
-
Type:
string
-
Type:
-
path:
-
Type:
string
-
Type:
-
width:
-
Type:
integer
-
Type:
-
height:
-
Type:
integer
-
Type:
-
mode:
-
Type:
string -
Allowed Values:
STRETCHNINE_SLICETILE
-
Type:
-
border:
-
Type:
object
-
Type:
-
top:
integer -
bottom:
integer -
left:
integer -
right:
integer
-
Type:
array - Description: List of textures.
-
Items:
-
Type:
object -
Required:
id - References: Properties defined in Texture.
-
Type:
-
Type:
object
-
backgroundColor:
-
Type:
string -
Default Value:
transparent -
Description: Background color in hexadecimal format
#RRGGBB.
-
Type:
-
backgroundImage:
-
Type:
string -
Default Value:
transparent - Description: Image as the background of an element.
-
Type:
-
backgroundImagePressed:
-
Type:
string -
Default Value:
transparent - Description: Background image when the element is pressed.
-
Type:
-
backgroundImageHover:
-
Type:
string -
Default Value:
transparent - Description: Background image when the cursor hovers over the element.
-
Type:
-
width:
-
Type:
string - Description: Size on the X-axis of the element.
-
Type:
-
height:
-
Type:
string - Description: Size on the Y-axis of the element.
-
Type:
-
localX:
-
Type:
integer - Description: Local X position relative to the global X position of the parent element.
-
Type:
-
localY:
-
Type:
integer - Description: Local Y position relative to the global Y position of the parent element.
-
Type:
-
globalX:
-
Type:
integer - Description: Global X position.
-
Type:
-
globalY:
-
Type:
integer - Description: Global Y position.
-
Type:
-
childrenPlacement:
-
Type:
string -
Allowed Values:
TOP_LEFTBOTTOM_LEFTTOP_RIGHTBOTTOM_RIGHTCENTERLEFTRIGHTTOPBOTTOMNONECHILD_DECIDE
- Description: Placement of child nodes relative to their parent node.
-
Type:
-
selfPlacement:
-
Type:
string - Allowed Values: (Same values as childrenPlacement).
-
Type:
-
border:
-
Type:
string -
Default Value:
none -
Description: The width of the border line and the color, e.g.,
2px #RRGGBB.
-
Type:
-
border-top:
-
Type:
string -
Description: Width and color of the top border line, e.g.,
2px #RRGGBB.
-
Type:
-
border-bottom:
-
Type:
string -
Description: Width and color of the bottom border line, e.g.,
2px #RRGGBB.
-
Type:
-
border-left:
-
Type:
string -
Description: Width and color of the left border line, e.g.,
2px #RRGGBB.
-
Type:
-
border-right:
-
Type:
string -
Description: Width and color of the right border line, e.g.,
2px #RRGGBB.
-
Type:
-
textColor:
-
Type:
string -
Description: Text color in hexadecimal format, e.g.,
#RRGGBB.
-
Type:
-
textShadow:
-
Type:
boolean - Description: Enables or disables shadow for text.
-
Type:
-
lineHeight:
-
Type:
string - Description: Line height for label text.
-
Type:
-
direction:
-
Type:
string -
Allowed Values:
verticallyhorizontally
- Description: The direction of a bar or scroll bar element.
-
Type:
-
focusBackgroundColor:
-
Type:
string
-
Type:
-
focusTextColor:
-
Type:
string
-
Type:
-
focusBorderColor:
-
Type:
string
-
Type:
-
defaultBorderColor:
-
Type:
string
-
Type:
-
defaultBackgroundColor:
-
Type:
string
-
Type:
-
defaultTextColor:
-
Type:
string
-
Type:
-
drawBackground:
-
Type:
boolean
-
Type:
-
cursorBlinkInterval:
-
Type:
integer
-
Type:
-
cursorCharacter:
-
Type:
string
-
Type:
-
scrollBarLength:
-
Type:
integer
-
Type:
-
progressBarFullBackground:
-
Type:
string
-
Type:
-
progressBarSmoothingFactor:
-
Type:
number
-
Type:
-
pressedBorderColor:
-
Type:
string
-
Type:
-
pressedBackgroundColor:
-
Type:
string
-
Type:
-
scrollBarVisible:
-
Type:
boolean
-
Type:
-
thumbHeight:
-
Type:
string
-
Type:
-
thumbWidth:
-
Type:
string
-
Type:
-
scrollBarSize:
-
Type:
string
-
Type:
-
overflow:
-
Type:
string -
Allowed Values:
hideview
-
Default Value:
view
-
Type:
-
scrollBarColor:
-
Type:
string
-
Type:
-
scrollBarThumbColor:
-
Type:
string
-
Type:
-
layoutSpacing:
-
Type:
string
-
Type:
-
layoutCenterItems:
-
Type:
boolean
-
Type:
-
layoutItemsFromCenter:
-
Type:
boolean -
Default Value:
false
-
Type:
-
bgHeight:
-
Type:
string
-
Type:
-
bgWidth:
-
Type:
string
-
Type:
-
imageScale:
-
Type:
string
-
Type:
-
imageScaleWidth:
-
Type:
string
-
Type:
-
imageScaleHeight:
-
Type:
string
-
Type:
-
Type:
array - Description: List of Select objects.
-
at:
-
Type:
string -
Description: Value of the
Atattribute.
-
Type:
-
References:
- Includes all properties defined in SharedProperties.