From fc044f41fb8cf05ce4f700e6a18e0504a3ce609b 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, 21 Jun 2024 22:11:46 +0800 Subject: [PATCH] color --- LunaTranslator/LunaTranslator/gui/translatorUI.py | 4 ++-- LunaTranslator/files/defaultconfig/config.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/LunaTranslator/LunaTranslator/gui/translatorUI.py b/LunaTranslator/LunaTranslator/gui/translatorUI.py index 52186411..f5c3981b 100644 --- a/LunaTranslator/LunaTranslator/gui/translatorUI.py +++ b/LunaTranslator/LunaTranslator/gui/translatorUI.py @@ -253,9 +253,9 @@ class QUnFrameWindow(resizableframeless): for name in self.buttons: if name in colorstate: color = ( - globalconfig["buttoncolor"] + globalconfig["buttoncolor_1"] if colorstate[name] - else globalconfig["buttoncolor_1"] + else globalconfig["buttoncolor"] ) else: color = globalconfig["buttoncolor"] diff --git a/LunaTranslator/files/defaultconfig/config.json b/LunaTranslator/files/defaultconfig/config.json index 79c43dc9..a05085ff 100644 --- a/LunaTranslator/files/defaultconfig/config.json +++ b/LunaTranslator/files/defaultconfig/config.json @@ -475,10 +475,10 @@ "accept_use_unicode_start": 0, "accept_use_unicode_end": 65535, "premtsimiuse": false, - "buttoncolor": "#FF69B4", + "buttoncolor": "#001f9f", "buttoncolor2": "#FF69B4", "buttoncolor3": "#afafaf", - "buttoncolor_1": "#afafaf", + "buttoncolor_1": "#FF69B4", "premtsimi2": 100, "ocrrangecolor": "#000000", "ocrrangewidth": 2,