refactor: remove the non-functional 设置 button from the header

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 <noreply@anthropic.com>
This commit is contained in:
2026-06-17 08:53:34 +08:00
co-authored by Claude Opus 4.8
parent 7fe770e80d
commit 162c3fc788
2 changed files with 2 additions and 16 deletions
+1 -14
View File
@@ -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 {