設定ファイルの項目追加

This commit is contained in:
suti7yk5032 2024-10-30 15:43:05 +09:00
parent 445b4d720e
commit 0b23413453

View file

@ -50,7 +50,10 @@ if not os.path.isfile(client_config_path):
},
"pc_uuid": "",
"pc_token": "",
"hard_lock": False
"hard_lock": False,
"cover_image": "dislocker",
"language": "ja",
"language_file": "lang.json"
}
elif os.path.isfile(client_config_path):
@ -280,7 +283,7 @@ class Lock(customtkinter.CTkToplevel):
self.textbox_font = customtkinter.CTkFont(family="meiryo", size=14)
self.button_font = customtkinter.CTkFont(family="meiryo", size=14)
self.cover_img = customtkinter.CTkImage(light_image=Image.open(resource_path + '\\cover\\dislocker_light.png'), dark_image=Image.open(resource_path + '\\cover\\dislocker_dark.png'), size=(160, 320))
self.cover_img = customtkinter.CTkImage(light_image=Image.open(f'{resource_path}\\cover\\{client_config["cover_image"]}_light.png'), dark_image=Image.open(f'{resource_path}\\cover\\{client_config["cover_image"]}_dark.png'), size=(160, 320))
self.grid_columnconfigure(0, weight=1)
self.grid_columnconfigure(1, weight=6)