Skip to content

TAppColors ​

Unit FMXER.UI.Consts. Application colors read by the elements when they are created, and the Material Design palette. See Styling & Theming.

Application colors ​

Class propertyDefaultRead by
PrimaryColorMATERIAL_AMBER_800TScaffoldForm (title bar), TActionButtonFrame (circle), TCardFrame (title bar), TBackgroundFrame/TBackgroundForm (fill), TChipFrame (text and border)
PrimaryTextColorTAlphaColorRec.WhiteTScaffoldForm (title), TTextFrame (text)
SolidBackgroundColorTAlphaColorRec.LightgrayTChipFrame (fill)
LightBackgroundColorTAlphaColorRec.SilverTCardFrame (content)
DividerColorMATERIAL_GREY_800THorzDividerFrame

The defaults are set by the class constructor of TAppColors. Assign new values before the elements are created (typically before the first RouteTo).

Material Design palette ​

Constants of type TAlphaColor, shades 400 and 800 of the Material Design 2014 palette:

Hue400800
RedMATERIAL_RED_400 #EF5350MATERIAL_RED_800 #C62828
PinkMATERIAL_PINK_400 #EC407AMATERIAL_PINK_800 #AD1457
PurpleMATERIAL_PURPLE_400 #AB47BCMATERIAL_PURPLE_800 #6A1B9A
Deep PurpleMATERIAL_DEEP_PURPLE_400 #7E57C2MATERIAL_DEEP_PURPLE_800 #4527A0
IndigoMATERIAL_INDIGO_400 #5C6BC0MATERIAL_INDIGO_800 #283593
BlueMATERIAL_BLUE_400 #42A5F5MATERIAL_BLUE_800 #1565C0
Light BlueMATERIAL_LIGHT_BLUE_400 #29B6F6MATERIAL_LIGHT_BLUE_800 #0277BD
CyanMATERIAL_CYAN_400 #26C6DAMATERIAL_CYAN_800 #00838F
TealMATERIAL_TEAL_400 #26A69AMATERIAL_TEAL_800 #00695C
GreenMATERIAL_GREEN_400 #66BB6AMATERIAL_GREEN_800 #2E7D32
Light GreenMATERIAL_LIGHT_GREEN_400 #9CCC65MATERIAL_LIGHT_GREEN_800 #558B2F
LimeMATERIAL_LIME_400 #D4E157MATERIAL_LIME_800 #9E9D24
YellowMATERIAL_YELLOW_400 #FFEE58MATERIAL_YELLOW_800 #F9A825
AmberMATERIAL_AMBER_400 #FFCA28MATERIAL_AMBER_800 #FF8F00
OrangeMATERIAL_ORANGE_400 #FFA726MATERIAL_ORANGE_800 #EF6C00
Deep OrangeMATERIAL_DEEP_ORANGE_400 #FF7043MATERIAL_DEEP_ORANGE_800 #D84315
BrownMATERIAL_BROWN_400 #8D6E63MATERIAL_BROWN_800 #4E342E
GreyMATERIAL_GREY_400 #BDBDBDMATERIAL_GREY_800 #424242
Blue GreyMATERIAL_BLUE_GREY_400 #78909CMATERIAL_BLUE_GREY_800 #37474F

All the constants are fully opaque ($FF alpha).

Released under the Mozilla Public License 2.0.