👍[Update] Config Window transparencyが変化するように実装を追加
This commit is contained in:
2
main.py
2
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)
|
||||
|
||||
4
view.py
4
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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user