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
Feature request: Auto dark mode #167
Comments
Hi, automatic dark mode detection is done via kubenav/src/utils/constants.ts Line 11 in f403fc3
So if you reinstall the app, the app should start in dark mode when it is set as the systems default. |
Hi, ok so ive removed the app, and then reinstalled it via testflight (2.2.2), and indeed it does work if you load the app up in say light mode, go into the phones settings and change to dark mode, then go back into the app, and its the same visa-versa |
Sure we can keep this as feature request. With the current logic this would be difficult to implement. As a first quick idea: We can replace the IonToggle component in the settings with an IonSelect component. The possible values should be sth. like |
in theory the plugin i mentioned above shows it can detect the system change i would really love to help! but i just dont understand react or ionic, they are far to complicated :( give me standalone html+js+css any day of the week |
Hi @si458, automatic theme changing (when the system theme is changed) is now supported. You can try out this feature with the following build: https://github.com/kubenav/kubenav/actions/runs/258083315 |
Hi @ricoberger |
I want to submit a new TestFlight version by the end of the week. First I want to take a look at #178, wich I also want to include in the next beta version 🤞 |
Hi @ricoberger |
It would be amazing if the app detected if the mobile device was running in dark mode or not and activate it accordingly
I have found a plug-in which might help with the detection automatically in capacitor
https://www.npmjs.com/package/capacitor-dark-mode
The text was updated successfully, but these errors were encountered: