google-pay / compose-pay-button

An Android library that provides a Jetpack Compose wrapper on top of the Google Pay Button API.
Apache License 2.0
29 stars 1 forks source link

Dark/Light theme #79

Closed rasmusandersson5 closed 1 month ago

rasmusandersson5 commented 1 month ago

Hi!

I'm wondering how Dark/Light theme should be used. Should the button theme be selected based on the device Dark/Light theme state, or will the button handle this itself? When I look around in various documentation it looks like the button should be white when device is in dark mode, but the button dark theme does not handle that - hence the question if I'm expected to manually change to theme=Light when device is in dark mode?

dmengelt commented 1 month ago

Hi @rasmusandersson5

Right now, we don't check the device theme to set on the button, developers would have to change it themselves. This was done because not every app has a light/dark theme, so we won't override the user selection.