mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 00:24:13 +08:00
dark
This commit is contained in:
parent
aa32eb3dde
commit
7031867f08
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user