You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All the colors are correctly updated, EXCEPT the cursor color in the input fields: it remains either white or black, following the device's Dark mode rather than the PaymentSheet.Appearance I've set.
My expectation is that: either the cursor color should be directly customizable in PaymentSheet.Colors, or it should use the onComponent color.
Note: adding AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO) in my Application class solves it.
But it feels like a workaround: I shouldn't have to set this globally and affect my whole app just to solve the cursor in Stripe activities.
Summary
I am forcing light theme in my PaymentSheet, regardless of the device's Dark mode settings, using the method recommended by the docs:
All the colors are correctly updated, EXCEPT the cursor color in the input fields: it remains either white or black, following the device's Dark mode rather than the PaymentSheet.Appearance I've set.
My expectation is that: either the cursor color should be directly customizable in PaymentSheet.Colors, or it should use the
onComponent
color.Code to reproduce
I've forked this repo: https://github.com/david-tixr/stripe-android and added only the few lines mentioned above (commit: david-tixr@30b1faa).
bug/cursor-color
Android version
Android 14, possibly lower versions too
Installation method
Gradle dependency:
com.stripe:stripe-android:20.38.0
Dependency Versions
kotlin: 1.9.22
stripe-android: 20.38.0
Android Gradle Plugin: 8.2.2
Gradle: 8.2
Screenshots
❌ Device in Dark mode -- cursor is white on white, barely visible
✅ Device in Light mode -- cursor is black on white
The text was updated successfully, but these errors were encountered: