Status Update
Comments
an...@gmail.com <an...@gmail.com> #2
Sorry, I forgot to attach the video..
an...@gmail.com <an...@gmail.com> #3
I do not see this issue as a duplicate of the linked issue, just because some keywords are the same.
My ticket appears to be a bug in the existing implementation of WebView and the linked issue is basically a feature request to be able to override the current isLightTheme-behavior.
Description
Component used: WebView Version used: Webkit 1.12.1 Devices/Android versions reproduced on: Pixel 7 (Android 14), Samsung S21 (Android 12)
If I add a WebView inside a ModalBottomSheet in Jetpack Compose, it is displayed in dark-mode. The best would be if you watch the attached video. You surely will understand the problem right away.
Here is the code to reproduce the problem. You can find the whole source on GitHub :
Since the web content dark theme is displayed according to
isLightTheme
, I checked it. And I can confirm that the ´isLightTheme´ property is always set to true for the context, that creates the WebView.I also opened a ticket , since it may be a problem on the Material3 Jetpack Compose side.