I am trying to make a app which will load any website ex. google.com into dark mode when button press,By default web page color is light or white background , i want to add a button on the app when i press the button, it load the web page in night or dark mode. Is it possible? or how to do that. I tried simple night mode extension. which dosen’t work. My phone is samsung note 9 .android version 9/ android pie. Please help…
Hey! I’m facing the same issue, the web page doesn’t load as dark mode when the device theme is, if you managed to find the solution, could you please tell me? Thanks in advance and good luck!
I am Also Looking for Solution. I Posted in Kodular Community to discus this topic but no one replied the solution
There is a method to change background color by changing whole body background colour = black**
by JavaScript… you can see Js evaluate block in webviewr…
Use this block when page loaded event raised…
use this in js evaluate block…
document.body.style.backgroundColor = “black”;
CustomWebView has this feature.
where i can download this extension
what about searching the community?
https://community.kodular.io/search?q=custom%20webview%20%23extensions%20
Taifun
Can You Provide Details How to Add Home Page link and which types components can be used also my app is stoped working when start
Can you tell how can i use this component ??
Read the documentation here CustomWebView : An extended form of Web Viewer and continue reading the complete thread to find many examples
Taifun
I have already read all posts on page you mentioned but my app keeps stops when ever i try to load url from custom webview
what about providing a screenshot of your relevant blocks?
also use logcat to find out what is going on
Taifun
Check this
What is that procedure doing?
Does it work without using that procedure?
Taifun
Crash was due to wrong extension instance. Created webview for 1 and SetWebView for 2.
I fixed other issue but dark mode feature is not working
How to use this can you provide details please
Use evaluate js
block and in the text input enter
document.body.style.backgroundColor = “black”;
already added but it is not working
Try this
document.body.style.backgroundColor = "black";