修改部分UI、修改module中心点设定、添加单独连接

This commit is contained in:
xinzhu.yin
2026-06-08 11:03:10 +08:00
parent e9a591bf6e
commit febbb28a4c
8 changed files with 201 additions and 24 deletions

View File

@@ -274,7 +274,7 @@ def create_gamma_pattern_panel(self: "PQAutomationApp"):
right = ttk.Frame(mid)
right.grid(row=0, column=1, sticky=tk.NS)
edit_frame = ttk.LabelFrame(right, text="编辑选中点", padding=8)
edit_frame = ttk.LabelFrame(right, text="编辑选中点", padding=8)
edit_frame.pack(fill=tk.X)
self._gamma_edit_r_var = tk.StringVar()
@@ -358,27 +358,22 @@ def create_gamma_pattern_panel(self: "PQAutomationApp"):
command=lambda: _paste_from_clipboard(self),
).pack(fill=tk.X, pady=(6, 0))
# ===== 底部 =====
bottom = ttk.LabelFrame(root, text="校验与保存", padding=8)
bottom.pack(fill=tk.X, pady=(10, 0))
# ---- 右侧:校验与保存(与编辑区放在一起) ----
save_box = ttk.LabelFrame(right, text="校验与保存", padding=8)
save_box.pack(fill=tk.X, pady=(10, 0))
self._gamma_validate_label = ttk.Label(
bottom, text="", style="Muted.TLabel", justify=tk.LEFT
save_box, text="", style="Muted.TLabel", justify=tk.LEFT
)
self._gamma_validate_label.pack(anchor=tk.W)
save_row = ttk.Frame(bottom)
save_row = ttk.Frame(save_box)
save_row.pack(fill=tk.X, pady=(6, 0))
ttk.Button(
save_row, text="保存改动到当前预设",
bootstyle="primary",
command=lambda: _save_to_current_preset(self),
).pack(side=tk.LEFT)
ttk.Button(
save_row, text="应用到运行时 (gray.json)",
bootstyle="success",
command=lambda: _apply_current_to_runtime(self),
).pack(side=tk.LEFT, padx=(6, 0))
ttk.Button(
save_row, text="另存为新预设...",
bootstyle="info-outline",