From 999930f4334a95fef108699d8348839a870be5f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Wed, 19 Jun 2024 08:53:34 +0800 Subject: [PATCH] example --- LunaTranslator/LunaTranslator/rendertext/webview.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/LunaTranslator/LunaTranslator/rendertext/webview.py b/LunaTranslator/LunaTranslator/rendertext/webview.py index cf9f4050..5a8c7c79 100644 --- a/LunaTranslator/LunaTranslator/rendertext/webview.py +++ b/LunaTranslator/LunaTranslator/rendertext/webview.py @@ -12,7 +12,7 @@ testsavejs = False # example def extrastyle(rootdivid): with open( - r"C:\Users\11737\Pictures\asutoraea\yande.re 289904 astralair_no_shiroki_towa favorite game_cg miko shida_kazuhiro yuuki_(astralair_no_shiroki_towa).png", + r"example.png", "rb", ) as ff: b64 = base64.b64encode(ff.read()).decode("utf-8") @@ -20,6 +20,7 @@ def extrastyle(rootdivid): extra = f"""#{rootdivid}::before {{ background-image: url('data:image/jpeg;base64,{b64}') ; + background-size: 100% auto; opacity: 0.5; content: ''; position: absolute;