This commit is contained in:
恍兮惚兮 2024-06-17 19:24:51 +08:00
parent aa32eb3dde
commit 7031867f08

View File

@ -864,6 +864,21 @@ class QWebWrap(abstractwebview):
t.timeout.emit()
t.start()
def parsehtml(self, html):
if nowisdark():
html = (
html
+ """
<style>
body
{
background-color: rgb(44,44,44);
color: white;
}
</style>"""
)
return html
def set_zoom(self, zoom):
self.internal_zoom = zoom
self.internal.setZoomFactor(zoom)