Skip to main content

Colors

You can change the colors of UI elements of AutomatID screens, by providing your colors through the AutomatIdConfiguration during the initialization phase. If you don't, the default AutomatID colors are used.

The following colors can be customized:

Color identifier
LightTitleColor
LightLabelColor
LightButtonBgNormalColor
LightButtonBgPressedColor
LightButtonLabelNormalColor
LightButtonLabelPressedColor
DarkTitleColor
DarkLabelColor
DarkLinkNormalColor
DarkLinkPressedColor
DarkButtonBgNormalColor
DarkButtonBgPressedColor
DarkButtonLabelNormalColor
DarkButtonLabelPressedColor
ButtonBorderNormalColor
ButtonBorderPressedColor
DocumentIconNormalColor
DocumentIconPressedColor
IconNormalColor
IconPressedColor
LightHeaderIconNormalColor
LightHeaderIconPressedColor
DarkHeaderIconNormalColor
DarkHeaderIconPressedColor
MrzBackIconNormalColor
MrzBackIconPressedColor
MrzSuccessReadColor
NfcScanBarLoadingColor
SummaryTitleColor
FaceScanLabelColor
FillerSeparatorColor
BackgroundColor

Please refer to the following screens to understand how the colors are applied to the flows of AutomatID.

Workplace
IndexIdentifier
1LightHeaderIconNormalColor, (LightHeaderIconPressedColor)
2BackgroundColor
3ButtonBorderNormalColor, ButtonBorderPressedColor
4DocumentIconNormalColor, DocumentIconNormalColor
5IconNormalColor, IconPressedColor
6DarkTitleColor
7DarkLabelColor
8LightButtonLabelNormalColor, LightButtonLabelPressedColor
9DarkLinkNormalColor, DarkLinkPressedColor
Workplace
IndexIdentifier
1MrzBackIconNormalColor, MrzBackIconPressedColor
2MrzSuccessReadColor, default is white
3LightLabelColor
Workplace
IndexIdentifier
1LightButtonBgNormalColor, LightButtonBgPressedColor
2LightTitleColor
3LightLabelColor
4LightButtonLabelNormalColor, LightButtonLabelPressedColor
Workplace
IndexIdentifier
1NfcScanBarLoadingColor (only on Android)
Workplace
IndexIdentifier
1FillerSeparatorColor
2DarkButtonBgNormalColor, DarkButtonBgPressedColor
3SummaryTitleColor
4DarkTitleColor
5DarkLabelColor
6DarkButtonLabelNormalColor, DarkButtonLabelPressedColor
Workplace
IndexIdentifier
1DarkHeaderIconNormalColor, DarkHeaderIconPressedColor
2FaceScanLabelColor

You can use the corresponding method in AutomatIdConfiguration to set each color:

val configuration = AutomatIdConfiguration.Builder()
.withBackgroundColor(ContextCompat.getColor(this, R.color.bg_color))