UIStyleMixin is a mixin containing rules that can be used by other designs that use text styles in their UI displays.
We do not use it alone, we use it to add the rules to other designs; currently only UIControlMixin uses it.
Parameter Rules
backgroundColor: | This controls the background color in the design where it is mixed into. |
Example: | return "#C3F6F2"; |
Choices: | "background | primary | secondary|…|#rrggbb|#rgb" |
color: | This sets the color of the text that shows up in the UI. |
Example: | "text" |
fontFace: | There are four styles for displaying fonts in Java: plain, bold, italic, and bold italic. |
Example: | "default" |
fontSize: | Font size to appear in the User Interface.If fontSize is specified, it takes precedence over textSize. |
Example: | “normal” |
textSize: | These are the pre-defined text sizes "normal”, “big”, “bigger”, “small”, “smaller". |
Example: | “normal” |
textStyle: | “bold”, “italic”, “underline”, or combination by a comma |
Example: | “bold” |
Mixins
None
RULE NAME |
TYPE |
DEFAULTS |
CATEGORY |
FLAGS |
---|---|---|---|---|
backgroundColor |
string |
"background" |
Style |
Cached |
color |
string |
"text" |
Style |
Cached |
fontFace |
string |
"default" |
Style |
Cached |
fontSize |
string |
"normal" |
Style |
Cached |
textSize |
string |
"normal" |
Style |
|
textStyle |
string |
"regular" |
Style |
Cached |
UI Design that uses the UIStyleMixin:
1.UIControlMixin