hwsecurity-ui / de.cotech.hw.ui / SecurityKeyDialogOptions / Builder / setTheme /

setTheme

abstract fun setTheme(theme: Int): SecurityKeyDialogOptions.Builder

Set your own custom theme for the dialog to change colors.

<style name="MyCustomDialog" parent="HwSecurity.Dialog">
    <item name="hwSecurityButtonColor">@color/hwSecurityDarkBlue</item>
    <item name="hwSecuritySurfaceColor">@color/hwSecurityBlue</item>
    <item name="hwSecurityErrorColor">@color/hwSecurityRed</item>
    <item name="hwSecuritySuccessColor">@color/hwSecurityGreen</item>
</style>