change sign

This commit is contained in:
SelfConfusion 2024-07-13 00:49:42 +08:00
parent 87bc21173f
commit b61d4eb2e9
1 changed files with 8 additions and 8 deletions

View File

@ -141,13 +141,13 @@ class App(ctk.CTk):
def switchSign(i: int, is_open: bool) -> str: def switchSign(i: int, is_open: bool) -> str:
match i: match i:
case 0: # Color Correction 颜色矫正 case 0: # Color Correction 颜色矫正
return "cmdbgo" if is_open else "cmdbcs" return "cmdogb" if is_open else "cmdcsb"
case 3: # Gamma case 3: # Gamma
return "cmdggo" if is_open else "cmdgcs" return "cmdogg" if is_open else "cmdcsg"
case 4: # Saturation 饱和度 case 4: # Saturation 饱和度
return "cmdsgo" if is_open else "cmdscs" return "cmdogs" if is_open else "cmdcss"
case 5: # White Balance case 5: # White Balance
return "cmdwgo" if is_open else "cmdwcs" return "cmdogw" if is_open else "cmdcsw"
case _: case _:
return "error" return "error"
@ -495,13 +495,13 @@ class App(ctk.CTk):
def switchSign (i:int) -> str: def switchSign (i:int) -> str:
match i: match i:
case 0: # switch day case 0: # switch day
return "cmdday" return "cmdvdd"
case 1: # night case 1: # night
return "cmdnig" return "cmdvdn"
case 2: # start video case 2: # start video
return "cmdsta" return "cmdvds"
case 3: # stop video case 3: # stop video
return "cmdstp" return "cmdvdp"
case _: case _:
return "error" return "error"