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

refactor(gui.*): 统一界面控件颜色风格

This commit is contained in:
2026-01-17 22:30:18 +08:00
parent 7be5afeae1
commit 735f31830d
4 changed files with 18 additions and 19 deletions
+3 -5
View File
@@ -156,11 +156,9 @@
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(10, 170, 10);
font: 12pt &quot;Microsoft YaHei UI&quot;;
color: rgb(255, 255, 255);
font: 9pt &quot;Segoe UI&quot;;
font: 700 9pt &quot;Microsoft YaHei UI&quot;;</string>
<string notr="true">background-color: #0AAA0A;
color: #FFFFFF;
font: 700 9pt;</string>
</property>
<property name="text">
<string>启动脚本</string>
+9 -8
View File
@@ -40,15 +40,16 @@ class ALSeatFrame(QFrame):
self.setLineWidth(2)
self.setStyleSheet("""
QFrame {
background-color: #4196EB;
border: 2px solid #4196EB;
background-color: #2294FF;
border: 2px solid #2294FF;
border-radius: 5px;
}
QLabel {
color: #F0F0F0;
color: #FFFFFF;
font-weight: bold;
}
""")
self.setCursor(Qt.CursorShape.PointingHandCursor)
self.Label = QLabel(self.__seat_number, self)
self.Label.setAlignment(Qt.AlignCenter)
self.Label.setGeometry(0, 0, 60, 40)
@@ -77,24 +78,24 @@ class ALSeatFrame(QFrame):
self.setStyleSheet("""
QFrame {
background-color: #4CAF50;
border: 2px solid #388E3C;
border: 2px solid #4CAF50;
border-radius: 5px;
color: white;
}
QLabel {
color: #F0F0F0;
color: #FFFFFF;
font-weight: bold;
}
""")
else:
self.setStyleSheet("""
QFrame {
background-color: #4196EB;
border: 2px solid #4196EB;
background-color: #2294FF;
border: 2px solid #2294FF;
border-radius: 5px;
}
QLabel {
color: #F0F0F0;
color: #FFFFFF;
font-weight: bold;
}
""")
+5 -5
View File
@@ -71,7 +71,7 @@ class TimerTaskItemWidget(QWidget):
ExecuteTimeStr = self.__timer_task["execute_time"].strftime("%Y-%m-%d %H:%M:%S")
ExecuteTimeLabel = QLabel(f"执行时间: {ExecuteTimeStr}")
ExecuteTimeLabel.setStyleSheet("color: gray;")
ExecuteTimeLabel.setStyleSheet("color: #969696;")
ExecuteTimeLabel.setFixedHeight(20)
self.TaskInfoLayout.addWidget(ExecuteTimeLabel)
@@ -93,15 +93,15 @@ class TimerTaskItemWidget(QWidget):
TaskStatusColor = "#4CAF50"
case TimerTaskStatus.ERROR:
TaskStatusText = "执行失败"
TaskStatusColor = "#FF5722"
TaskStatusColor = "#DC0000"
case TimerTaskStatus.OUTDATED:
TaskStatusText = "已过期"
TaskStatusColor = "#FF5722"
TaskStatusColor = "#DC0000"
TaskStatusLabel = QLabel(TaskStatusText)
TaskStatusLabel.setStyleSheet(f"""
QLabel {{
background-color: {TaskStatusColor};
color: white;
color: #FFFFFF;
border-radius: 5px;
font-weight: bold;
}}
@@ -116,7 +116,7 @@ class TimerTaskItemWidget(QWidget):
TaskModeLabel.setStyleSheet(f"""
QLabel {{
background-color: {TaskModeColor};
color: white;
color: #FFFFFF;
border-radius: 5px;
font-weight: bold;
}}
+1 -1
View File
@@ -153,7 +153,7 @@
</property>
<property name="styleSheet">
<string notr="true">QLabel {
color: #FF5722
color: #DC0000
}</string>
</property>
<property name="text">