Customization API
UnicoThemeBuilder methods
| Method | Description |
|---|---|
setColorSilhouetteSuccess(color) | Silhouette color when capture succeeds |
setBackgroundColor(color) | Background color of the capture frame |
setColorText(color) | Text color |
setBackgroundColorComponents(color) | Background color of UI components |
setColorTextComponents(color) | Text color inside UI components |
setBackgroundColorBoxMessage(color) | Background color of the message box |
setColorTextBoxMessage(color) | Text color inside the message box |
setBackgroundColorButtons(color) | Background color of buttons |
setColorTextButtons(color) | Text color of buttons |
setColorCancelButton(color) | Cancel button color |
setColorProgressBar(color) | Progress bar color |
setFontFamily(font) (v3.19.2+) | Font family for the capture frame |
setHtmlPopupLoading(html) | Custom HTML for the loading popup (document capture only) |
build() | Returns the UnicoTheme instance |
Color value types
Supported color types are hexadecimal strings (e.g., "#FF0000").
Locale
| Method | Type | Description |
|---|---|---|
setLocale(locale) | LocaleTypes | Sets the capture screen language |
Refer to API Reference > Enums for the full list of supported LocaleTypes values.