-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
theme returns to DARK after toggling in system settings #271
Comments
+1 |
1 similar comment
+1 |
+1! |
This comment was marked as abuse.
This comment was marked as abuse.
To add more context @NathanaelA, I started a clean project and I am using I have dark mode set on my phone, (Pixel 5, Android 11) During the initial load (I am using @nativescript/angular) it displays correctly, however on subsequent webpack hot reloads it will then apply the dark theme. I have tried the following,
It will still appear in dark mode regardless on webpack reloads, not sure if this will be an issue when I go to production or not. |
This comment was marked as abuse.
This comment was marked as abuse.
That's correct. When you say "toggling it in settings" I did not turn dark mode on/off while the app was running, dark mode was set to on the entire time I was testing. Turning it off completely bypasses the issue but that's not a solution. |
This comment was marked as abuse.
This comment was marked as abuse.
Created #289 |
Environment
Describe the bug
This is a bug that shows during runtime. I performed the tests on Android_API 30.
To reproduce the bugs I need the following steps.
My app forces the use of the light theme. This works at this time.
Still, everything is OK in my app.
Android settings and enable "Dark Theme"
Maybe you have to repeat steps 3 and 4.
Now my app uses the dark theme, although I force it to use the light theme.
Sample project
My main component (
App.vue
) looks like this:The text was updated successfully, but these errors were encountered: