mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2025-01-01 10:04:12 +08:00
dark
This commit is contained in:
parent
aa32eb3dde
commit
7031867f08
@ -864,6 +864,21 @@ class QWebWrap(abstractwebview):
|
|||||||
t.timeout.emit()
|
t.timeout.emit()
|
||||||
t.start()
|
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):
|
def set_zoom(self, zoom):
|
||||||
self.internal_zoom = zoom
|
self.internal_zoom = zoom
|
||||||
self.internal.setZoomFactor(zoom)
|
self.internal.setZoomFactor(zoom)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user