Change Switch positions
This commit is contained in:
+15
-15
@@ -423,6 +423,21 @@ def create_root(
|
|||||||
)
|
)
|
||||||
color_correction_switch.pack(pady=5, anchor="w")
|
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
|
# Right column - Face Detection & Masking Options
|
||||||
many_faces_value = ctk.BooleanVar(value=modules.globals.many_faces)
|
many_faces_value = ctk.BooleanVar(value=modules.globals.many_faces)
|
||||||
many_faces_switch = ctk.CTkSwitch(
|
many_faces_switch = ctk.CTkSwitch(
|
||||||
@@ -454,21 +469,6 @@ def create_root(
|
|||||||
)
|
)
|
||||||
show_fps_switch.pack(pady=5, anchor="w")
|
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
|
# Face Opacity Controls
|
||||||
opacity_frame = ctk.CTkFrame(right_column, fg_color="#2a2d2e")
|
opacity_frame = ctk.CTkFrame(right_column, fg_color="#2a2d2e")
|
||||||
opacity_frame.pack(pady=5, anchor="w", fill="x")
|
opacity_frame.pack(pady=5, anchor="w", fill="x")
|
||||||
|
|||||||
Reference in New Issue
Block a user