-
-
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
getTheme not working on app startup #258
Comments
Weird bug! This is using NS 6.5 w/ latest ns-theme plugin and Android platform. Create a new project using
run on device and toggle the device theme - works fine. Now go to app.ts and add the following line before
The colors no longer change on device theme toggle. |
Can you check if this works with the latest @next version? |
No. Returns the wrong result and now crashes.
|
Using the latest release 2.3.3 of theme and NS.
On Android platform, Theme.getMode() doesn't work on app startup.
I've got my phone Display settings in Dark theme.
When the app starts up (before run) - I do a getMode() and it returns ns-light.
Shouldn't it return ns-dark.
The app does start up in Dark theme.
This seems to be related to issue #232
I'm also intercepting
systemAppearanceChangedEvent
callback - when this event is calledhas the app already changed to the new theme or do I have to call
Theme.setMode()
.Thank you.
The text was updated successfully, but these errors were encountered: