From f070c4a3a9f45be88e62a450c259a474412b6054 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: Mon, 15 Jul 2024 07:22:23 +0800 Subject: [PATCH] . --- LunaTranslator/LunaTranslator/gui/translatorUI.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/LunaTranslator/LunaTranslator/gui/translatorUI.py b/LunaTranslator/LunaTranslator/gui/translatorUI.py index 6c87045d..720568fa 100644 --- a/LunaTranslator/LunaTranslator/gui/translatorUI.py +++ b/LunaTranslator/LunaTranslator/gui/translatorUI.py @@ -44,7 +44,7 @@ class QUnFrameWindow(resizableframeless): muteprocessignal = pyqtSignal() ocr_once_signal = pyqtSignal() resizesignal = pyqtSignal(QSize) - move_signal=pyqtSignal(QPoint) + move_signal = pyqtSignal(QPoint) def hookfollowsignalsolve(self, code, other): if self._move_drag: @@ -586,7 +586,7 @@ class QUnFrameWindow(resizableframeless): self.initvalues() self.initsignals() self._TitleLabel = QLabel(self) - self._TitleLabel.setObjectName('_TitleLabel') + self._TitleLabel.setObjectName("_TitleLabel") self._TitleLabel.setMouseTracking(True) self.addbuttons() self.translate_text = Textbrowser(self) @@ -670,7 +670,11 @@ class QUnFrameWindow(resizableframeless): topr, str2rgba( globalconfig["backcolor"], - globalconfig["transparent"] * (not globalconfig["backtransparent"]), + max( + 100 / 255, + globalconfig["transparent"] + * (not globalconfig["backtransparent"]), + ), ), ) )