From 64c0f085b1826f29f03c4cd7e1726ac36a55cc8e Mon Sep 17 00:00:00 2001 From: KRSHH <136873090+KRSHH@users.noreply.github.com> Date: Mon, 28 Oct 2024 12:20:54 +0530 Subject: [PATCH] Change Switch positions --- modules/ui.py | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/modules/ui.py b/modules/ui.py index a6b1ba8..9a7a6ce 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -423,6 +423,21 @@ def create_root( ) color_correction_switch.pack(pady=5, anchor="w") + map_faces = ctk.BooleanVar(value=modules.globals.map_faces) + map_faces_switch = ctk.CTkSwitch( + left_column, + text="Map faces", + variable=map_faces, + cursor="hand2", + command=lambda: ( + setattr(modules.globals, "map_faces", map_faces.get()), + save_switch_states(), + ), + progress_color="#3a7ebf", + font=("Roboto", 14, "bold"), + ) + map_faces_switch.pack(pady=5, anchor="w") + # Right column - Face Detection & Masking Options many_faces_value = ctk.BooleanVar(value=modules.globals.many_faces) many_faces_switch = ctk.CTkSwitch( @@ -454,21 +469,6 @@ def create_root( ) show_fps_switch.pack(pady=5, anchor="w") - map_faces = ctk.BooleanVar(value=modules.globals.map_faces) - map_faces_switch = ctk.CTkSwitch( - right_column, - text="Map faces", - variable=map_faces, - cursor="hand2", - command=lambda: ( - setattr(modules.globals, "map_faces", map_faces.get()), - save_switch_states(), - ), - progress_color="#3a7ebf", - font=("Roboto", 14, "bold"), - ) - map_faces_switch.pack(pady=5, anchor="w") - # Face Opacity Controls opacity_frame = ctk.CTkFrame(right_column, fg_color="#2a2d2e") opacity_frame.pack(pady=5, anchor="w", fill="x")