99keshav99 / CaptureSposed

Xposed module that effectively disables the newly introduced screenshot detection API in Android 14
GNU Affero General Public License v3.0
89 stars 5 forks source link

Add Dynamic Theme Support #19

Closed 99keshav99 closed 1 month ago

99keshav99 commented 1 month ago

This PR introduces dynamic theme support for the app, allowing it to automatically adjust based on the system's default theme settings.

Light Theme

image

Dark Theme

image

DavidBerdik commented 1 month ago

Nice! I have noticed a rather strange behavior, though. When I launch the app, the splash screen that shows before the app fully loads has a white background instead of a black background.

This phenomenon can be seen in the following demo video. Note that the only app that shows a white background on the splash screen when in dark mode is CaptureSposed. All the other ones show a black background.

https://github.com/99keshav99/CaptureSposed/assets/7663225/5a7a5663-6dd5-469e-86f8-1416781d64e3

99keshav99 commented 1 month ago

Interesting find! Thank you for pointing that out. I've made the necessary changes to ensure that the correct theme is used for the splash screen.

Note: There is a commit for code clean up, changes from this commit are not related to issue #19

Could you please review the changes and let me know if the behavior is as expected at your end?

DavidBerdik commented 1 month ago

Works as intended for me!