From f12a5d10a557fc2541a3fb88eeabe58a46b5f0fb Mon Sep 17 00:00:00 2001 From: misyaguziya Date: Wed, 6 Sep 2023 02:23:24 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=8D[Update]=20Config=20Window=20transp?= =?UTF-8?q?arency=E3=81=8C=E5=A4=89=E5=8C=96=E3=81=99=E3=82=8B=E3=82=88?= =?UTF-8?q?=E3=81=86=E3=81=AB=E5=AE=9F=E8=A3=85=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 2 +- view.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index d7c5e93b..ad67818b 100644 --- a/main.py +++ b/main.py @@ -212,7 +212,7 @@ def callbackDisableConfigWindowCompactMode(): def callbackSetTransparency(value): print("callbackSetTransparency", int(value)) config.TRANSPARENCY = int(value) - # self.parent.wm_attributes("-alpha", int(value/100)) + view.updateConfigWindowTransparency() def callbackSetAppearance(value): print("callbackSetAppearance", value) diff --git a/view.py b/view.py index 25bd3b15..3221b6ef 100644 --- a/view.py +++ b/view.py @@ -410,6 +410,10 @@ class View(): # Config Window + @staticmethod + def updateConfigWindowTransparency(): + vrct_gui.wm_attributes("-alpha", config.TRANSPARENCY/100) + def setConfigWindowCompactModeSwitchStatusToDisabled(self): vrct_gui.config_window.setting_box_compact_mode_switch_box.configure(state="disabled")