1
1
mirror of https://github.com/KenanZhu/AutoLibrary.git synced 2026-06-17 23:13:03 +08:00

fix(theme): 优化 BlueForest 按钮样式

- QPushButton 添加 min-width: 80px, min-height: 25px 统一按钮默认大小
- 移除无效的 QDialogButtonBox 选择器,对话框按钮直接继承 QPushButton
- QPushButton padding 调整为 4px 12px,兼顾各场景按钮尺寸

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-05-30 19:54:25 +08:00
parent 9c1772b186
commit c0b6e0899c
2 changed files with 5 additions and 9 deletions
+4 -2
View File
@@ -223,11 +223,11 @@ class ALAutoScriptEditDialog(QDialog):
self.ZoomLabel = QLabel(f"{self._fontSize}px")
self.ZoomLabel.setFixedHeight(25)
self.OrchBtn = QPushButton("编排")
self.OrchBtn.setFixedHeight(25)
self.OrchBtn.setFixedSize(80, 25)
self.OrchBtn.setToolTip("可视化生成 AutoScript 代码并插入到光标位置")
ToolbarLayout.addWidget(self.OrchBtn)
self.DebugBtn = QPushButton("▶ 调试运行")
self.DebugBtn.setFixedHeight(25)
self.DebugBtn.setFixedSize(80, 25)
self.DebugBtn.setToolTip("使用右侧模拟数据执行脚本,查看目标变量变化")
ToolbarLayout.addWidget(self.DebugBtn)
Sep = QFrame()
@@ -265,7 +265,9 @@ class ALAutoScriptEditDialog(QDialog):
QDialogButtonBox.StandardButton.Cancel
)
self.BtnBox.button(QDialogButtonBox.StandardButton.Ok).setText("确定")
self.BtnBox.button(QDialogButtonBox.StandardButton.Ok).setFixedSize(80, 25)
self.BtnBox.button(QDialogButtonBox.StandardButton.Cancel).setText("取消")
self.BtnBox.button(QDialogButtonBox.StandardButton.Cancel).setFixedSize(80, 25)
Layout.addWidget(self.BtnBox)
def createButtonPanel(
+1 -7
View File
@@ -11,12 +11,6 @@
*/
/* ---- Global ---- */
QWidget {
background-color: #0f1a2e;
color: #d0daf0;
selection-background-color: #2dd4bf;
selection-color: #0f1119;
}
QMainWindow::separator {
background-color: #1c2840;
width: 1px;
@@ -66,7 +60,7 @@ QPushButton {
border-width: 1px;
border-radius: 5px;
color: #d0daf0;
padding: 2px;
padding: 4px 12px;
background-color: #1c2840;
}
QPushButton:hover {