mirror of
https://github.com/KenanZhu/AutoLibrary.git
synced 2026-06-18 07:23: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:
@@ -223,11 +223,11 @@ class ALAutoScriptEditDialog(QDialog):
|
|||||||
self.ZoomLabel = QLabel(f"{self._fontSize}px")
|
self.ZoomLabel = QLabel(f"{self._fontSize}px")
|
||||||
self.ZoomLabel.setFixedHeight(25)
|
self.ZoomLabel.setFixedHeight(25)
|
||||||
self.OrchBtn = QPushButton("编排")
|
self.OrchBtn = QPushButton("编排")
|
||||||
self.OrchBtn.setFixedHeight(25)
|
self.OrchBtn.setFixedSize(80, 25)
|
||||||
self.OrchBtn.setToolTip("可视化生成 AutoScript 代码并插入到光标位置")
|
self.OrchBtn.setToolTip("可视化生成 AutoScript 代码并插入到光标位置")
|
||||||
ToolbarLayout.addWidget(self.OrchBtn)
|
ToolbarLayout.addWidget(self.OrchBtn)
|
||||||
self.DebugBtn = QPushButton("▶ 调试运行")
|
self.DebugBtn = QPushButton("▶ 调试运行")
|
||||||
self.DebugBtn.setFixedHeight(25)
|
self.DebugBtn.setFixedSize(80, 25)
|
||||||
self.DebugBtn.setToolTip("使用右侧模拟数据执行脚本,查看目标变量变化")
|
self.DebugBtn.setToolTip("使用右侧模拟数据执行脚本,查看目标变量变化")
|
||||||
ToolbarLayout.addWidget(self.DebugBtn)
|
ToolbarLayout.addWidget(self.DebugBtn)
|
||||||
Sep = QFrame()
|
Sep = QFrame()
|
||||||
@@ -265,7 +265,9 @@ class ALAutoScriptEditDialog(QDialog):
|
|||||||
QDialogButtonBox.StandardButton.Cancel
|
QDialogButtonBox.StandardButton.Cancel
|
||||||
)
|
)
|
||||||
self.BtnBox.button(QDialogButtonBox.StandardButton.Ok).setText("确定")
|
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).setText("取消")
|
||||||
|
self.BtnBox.button(QDialogButtonBox.StandardButton.Cancel).setFixedSize(80, 25)
|
||||||
Layout.addWidget(self.BtnBox)
|
Layout.addWidget(self.BtnBox)
|
||||||
|
|
||||||
def createButtonPanel(
|
def createButtonPanel(
|
||||||
|
|||||||
@@ -11,12 +11,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* ---- Global ---- */
|
/* ---- Global ---- */
|
||||||
QWidget {
|
|
||||||
background-color: #0f1a2e;
|
|
||||||
color: #d0daf0;
|
|
||||||
selection-background-color: #2dd4bf;
|
|
||||||
selection-color: #0f1119;
|
|
||||||
}
|
|
||||||
QMainWindow::separator {
|
QMainWindow::separator {
|
||||||
background-color: #1c2840;
|
background-color: #1c2840;
|
||||||
width: 1px;
|
width: 1px;
|
||||||
@@ -66,7 +60,7 @@ QPushButton {
|
|||||||
border-width: 1px;
|
border-width: 1px;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
color: #d0daf0;
|
color: #d0daf0;
|
||||||
padding: 2px;
|
padding: 4px 12px;
|
||||||
background-color: #1c2840;
|
background-color: #1c2840;
|
||||||
}
|
}
|
||||||
QPushButton:hover {
|
QPushButton:hover {
|
||||||
|
|||||||
Reference in New Issue
Block a user