From dc8c98add402dd44edd86f5e5fd0fe0bc45f1a13 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: Fri, 23 Aug 2024 15:35:31 +0800 Subject: [PATCH] transp --- LunaTranslator/LunaTranslator/gui/setting_display_ui.py | 2 +- LunaTranslator/LunaTranslator/gui/translatorUI.py | 6 +----- plugins/CMakeLists.txt | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/LunaTranslator/LunaTranslator/gui/setting_display_ui.py b/LunaTranslator/LunaTranslator/gui/setting_display_ui.py index ebfd5bdc..6608c9a8 100644 --- a/LunaTranslator/LunaTranslator/gui/setting_display_ui.py +++ b/LunaTranslator/LunaTranslator/gui/setting_display_ui.py @@ -34,7 +34,7 @@ def createhorizontal_slider(self): self.horizontal_slider = QSlider() self.horizontal_slider.setMaximum(100) - self.horizontal_slider.setMinimum(1) + self.horizontal_slider.setMinimum(0) self.horizontal_slider.setOrientation(Qt.Orientation.Horizontal) self.horizontal_slider.setValue(0) self.horizontal_slider.setValue(globalconfig["transparent"]) diff --git a/LunaTranslator/LunaTranslator/gui/translatorUI.py b/LunaTranslator/LunaTranslator/gui/translatorUI.py index 9e4301a0..ab2848eb 100644 --- a/LunaTranslator/LunaTranslator/gui/translatorUI.py +++ b/LunaTranslator/LunaTranslator/gui/translatorUI.py @@ -1066,11 +1066,7 @@ class TranslatorWindow(resizableframeless): topr, str2rgba( globalconfig["backcolor"], - max( - 100 / 255, - globalconfig["transparent"] - * (not globalconfig["backtransparent"]), - ), + globalconfig["transparent"] * (not globalconfig["backtransparent"]), ), ) ) diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt index a975e618..cbe83d31 100644 --- a/plugins/CMakeLists.txt +++ b/plugins/CMakeLists.txt @@ -29,7 +29,7 @@ include(generate_product_version) set(VERSION_MAJOR 5) set(VERSION_MINOR 30) -set(VERSION_PATCH 1) +set(VERSION_PATCH 2) add_library(pch pch.cpp) target_precompile_headers(pch PUBLIC pch.h)