hwsecurity-fido2 / de.cotech.hw.fido2.ui / WebauthnDialogOptions / Builder / setTheme /

setTheme

abstract fun setTheme(theme: Int): WebauthnDialogOptions.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>