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")