Closed gsalinaslopez closed 6 months ago
Hi @badaix
Have you had time to take a look at this PR? It should be pretty straightforward and it implements https://github.com/badaix/snapdroid/issues/6
Thanks!
Hi @gsalinaslopez sorry, I completely missed this PR. I will check ASAP, latest the upcoming weekend :)
Closes https://github.com/badaix/snapdroid/issues/6. The app will change its color scheme between light (original look) and dark theme based on the OS level settings (Android 10 and higher)
Changes
DayNight
theme as stated in the android developer documentation: https://developer.android.com/develop/ui/views/theming/darktheme#support-dark-themethemes.xml
resource and added theres/values-night
to store the dark theme version declaration. Reference: https://developer.android.com/codelabs/basic-android-kotlin-training-change-app-theme#4prefers-color-scheme
andcolor-scheme
CSS tags onto the embeddedabout.html
asset. Reference: https://developer.android.com/develop/ui/views/layout/webapps/dark-themeScreenshots
Notes
The original app's color scheme remains unchanged, now becoming the default "Light Theme"