Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dark mode support? #622

Open
Bash4195 opened this issue Sep 4, 2024 · 0 comments
Open

Dark mode support? #622

Bash4195 opened this issue Sep 4, 2024 · 0 comments

Comments

@Bash4195
Copy link

Bash4195 commented Sep 4, 2024

I just spent a ton of time trying to figure out how to make the background of my app icon black in dark mode and white in light mode. In the instructions, it says there's the iconBackgroundColorDark to change that with the generate command but it doesn't seem to do anything? If I'm misunderstanding this, please correct me but I don't see any changes with this dark mode option. The splashBackgroundColorDark seems to work.

I did finally get dark mode working thanks to this Stackoverflow answer: https://stackoverflow.com/a/69731757/6581796

All I had to do was generate the icons with iconBackgroundColor set to black (not the dark mode option). Copy the mipmap folders and rename them to mipmap-night-**. Regenerate the icons with the white background. Copy the mipmap-night-** folders into the same place android/app/src/main/res/.

Couldn't this be done for me with the generate command so the icon supports both light and dark mode?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant