Merge branch 'config_Transparency' into UI_2.0

This commit is contained in:
misyaguziya
2023-09-06 02:24:49 +09:00
2 changed files with 5 additions and 1 deletions

View File

@@ -222,7 +222,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)

View File

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