Conversation
Modify the access level of css to public in order to customize the WebView. This change allows users to apply their own styles to the WebView.
|
I understand that our library already has a Modifying the case .auto:
return """
<style type='text/css'>
@media (prefers-color-scheme: light) {
\(conf.css(isLight: true, alignment: alignment))
}
@media (prefers-color-scheme: dark) {
\(conf.css(isLight: false, alignment: alignment))
}
\(conf.customCSS)
body {
margin: 0;
padding: 0;
}
</style>
<BODY>
"""Additional CSS is applied here. |
Actually, I used WKNavigationDelegate from WKWebView and needed to customize business requirements, which is why I customized WebView. But I prefer using default css in RichText. |
Modify the access level of css to public in order to customize the WebView. This change allows users to apply their own styles to the WebView.