diff --git a/main.py b/main.py index 1f834b47..ea563ec2 100644 --- a/main.py +++ b/main.py @@ -222,7 +222,7 @@ def callbackDisableConfigWindowCompactMode(): def callbackSetTransparency(value): print("callbackSetTransparency", int(value)) config.TRANSPARENCY = int(value) - view.updateConfigWindowTransparency() + view.setMainWindowTransparency(config.TRANSPARENCY/100) def callbackSetAppearance(value): print("callbackSetAppearance", value) diff --git a/view.py b/view.py index 26cc8c35..49cbacf7 100644 --- a/view.py +++ b/view.py @@ -405,6 +405,9 @@ class View(): def clearMessageBox(self): vrct_gui.entry_message_box.delete(0, CTK_END) + @staticmethod + def setMainWindowTransparency(transparency:float): + vrct_gui.wm_attributes("-alpha", transparency) @@ -416,10 +419,6 @@ 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")