From 162c3fc788a2239473145d24839643cdf1635ff3 Mon Sep 17 00:00:00 2001 From: ila Date: Wed, 17 Jun 2026 08:53:34 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20remove=20the=20non-functional=20?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=20button=20from=20the=20header?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The 设置 button was a layout placeholder from the initial header build — never wired to anything, so clicking it did nothing. Remove it (and its style) rather than leave a dead control; current settings (output dir/format/quality) are editable inline in the export panel. Docs: UI design 4.1 records that no settings entry is provided for now. Co-Authored-By: Claude Opus 4.8 --- docs/07-ui-design.md | 3 +-- src/app/main_window.py | 15 +-------------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/docs/07-ui-design.md b/docs/07-ui-design.md index 4d9d298..7a15295 100644 --- a/docs/07-ui-design.md +++ b/docs/07-ui-design.md @@ -52,7 +52,6 @@ - 软件图标。 - 软件名称:`自动合成印花服饰效果图工具`。 - 当前版本号,放在软件名称右侧,例如:`v1.0.0`。 -- 设置入口。 - Windows 窗口按钮。 要求: @@ -60,7 +59,7 @@ - 标题栏高度紧凑。 - 版本号使用低于软件名称的视觉层级,例如浅灰小字。 - 版本号必须常驻显示,便于用户和管理员确认当前运行版本。 -- 设置入口放在右侧。 +- 暂不提供「设置」入口:当前可配置项不多,且输出目录/格式/质量在导出面板就地可改。待确有集中设置需求时再加,避免放置点了无反应的占位按钮。 - 不放复杂业务按钮。 ### 4.2 流程页签 diff --git a/src/app/main_window.py b/src/app/main_window.py index 904825c..59147e9 100644 --- a/src/app/main_window.py +++ b/src/app/main_window.py @@ -71,7 +71,7 @@ class MainWindow(QMainWindow): self._restore_preferences() def _create_header(self): - """Top header: app name, version label, settings button.""" + """Top header: app name and version label.""" header = QWidget() header.setObjectName("header") header.setFixedHeight(_HEADER_HEIGHT) @@ -87,14 +87,9 @@ class MainWindow(QMainWindow): version.setObjectName("appVersion") version.setAlignment(Qt.AlignVCenter) - settings_btn = QPushButton("设置") - settings_btn.setObjectName("settingsBtn") - settings_btn.setFixedWidth(60) - row.addWidget(title) row.addWidget(version) row.addStretch() - row.addWidget(settings_btn) return header @@ -479,14 +474,6 @@ class MainWindow(QMainWindow): font-size: 11px; color: #888888; } - #settingsBtn { - border: 1px solid #d6d6d6; - border-radius: 3px; - padding: 3px 8px; - background: #f7f7f7; - font-size: 12px; - } - #settingsBtn:hover { background: #e8e8e8; } /* Flow tab bar */ #tabBarContainer {