SecUSo / privacy-friendly-shopping-list

Privacy Friendly App to create and manage shoppings lists on Android devices.
Apache License 2.0
63 stars 37 forks source link

Add setting to manually select dark/light mode #109

Open jahway603 opened 9 months ago

jahway603 commented 9 months ago

Add setting to manually select dark/light mode as seen in https://github.com/SecUSo/privacy-friendly-qr-scanner/pull/174

jahway603 commented 8 months ago

@udenr can you please help me implement this? I know you implemented this feature in another SecUSo app, as mentioned in the OP of this Issue. I'm having trouble figuring out how to rewrite SettingsActivity.java, but have added code from your commit here https://github.com/jahway603/privacy-friendly-shopping-list/commit/5594b0fa4c173c735b8a3f57f1e79e1c1c927d1e. Any help would be appreciated.

udenr commented 7 months ago

This app does not even support dark mode yet. Maybe that's the problem why it's not working for you. You first need to change the theme to one that supports dark mode and then adjust the colors. This should work similar to this commit. Then it should already follow the system settings. You might need to adjust some additional resources or code, that everything uses the new Theme as seen in this commit. I hope this helps.