Class CSSThemeCompiler
java.lang.Object
com.codename1.ui.css.CSSThemeCompiler
Compiles a subset of Codename One CSS into theme properties stored in a MutableResource.
Supported selector syntax
UIIDUIID:selectedUIID:pressedUIID:disabled*(mapped toComponent):root(for constants only)
Supported declarations
colorbackground-colorpaddingmarginfont-family(mapped tofontstring for later resolution)cn1-derivecn1-image-idcn1-mutable-image- border-related properties:
border,border-*,background-image,background-position,background-repeat
Theme constants
- CSS custom property definitions in
:root, e.g.--primary: #ff00ff; @constants { name: value; other: value; }var(--name)dereferencing in declaration values.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcompile(String css, MutableResource resources, String themeName)
-
Constructor Details
-
CSSThemeCompiler
public CSSThemeCompiler()
-
-
Method Details
-
compile
-