1
1
mirror of https://github.com/KenanZhu/AutoLibrary.git synced 2026-06-20 00:13:02 +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
+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;
}
""")