|
|
|
/* 规程管理系统 - 白色浅蓝色QSS样式 */
|
|
|
|
|
|
|
|
/* ==================== 全局样式 ==================== */
|
|
|
|
QWidget {
|
|
|
|
background-color: #ffffff;
|
|
|
|
color: #2c3e50;
|
|
|
|
font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
|
|
|
|
font-size: 9pt;
|
|
|
|
selection-background-color: #3498db;
|
|
|
|
selection-color: #ffffff;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ==================== 主窗口 ==================== */
|
|
|
|
QMainWindow {
|
|
|
|
background-color: #f8f9fa;
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
QMainWindow::separator {
|
|
|
|
background-color: #bdc3c7;
|
|
|
|
width: 2px;
|
|
|
|
height: 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ==================== 工具栏 ==================== */
|
|
|
|
QToolBar {
|
|
|
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
|
|
stop: 0 #ecf0f1, stop: 1 #d5dbdb);
|
|
|
|
border: none;
|
|
|
|
spacing: 3px;
|
|
|
|
padding: 5px;
|
|
|
|
border-bottom: 2px solid #3498db;
|
|
|
|
}
|
|
|
|
|
|
|
|
QToolBar::handle {
|
|
|
|
background: #bdc3c7;
|
|
|
|
width: 8px;
|
|
|
|
margin: 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
QToolBar QToolButton {
|
|
|
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
|
|
stop: 0 #ffffff, stop: 1 #ecf0f1);
|
|
|
|
border: 1px solid #bdc3c7;
|
|
|
|
border-radius: 6px;
|
|
|
|
padding: 8px 12px;
|
|
|
|
margin: 2px;
|
|
|
|
color: #2c3e50;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
QToolBar QToolButton:hover {
|
|
|
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
|
|
stop: 0 #e8f4fd, stop: 1 #d6eaff);
|
|
|
|
border: 1px solid #3498db;
|
|
|
|
}
|
|
|
|
|
|
|
|
QToolBar QToolButton:pressed {
|
|
|
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
|
|
stop: 0 #d6eaff, stop: 1 #c3e2ff);
|
|
|
|
border: 1px solid #2980b9;
|
|
|
|
}
|
|
|
|
|
|
|
|
QToolBar QToolButton:disabled {
|
|
|
|
background: #f5f6fa;
|
|
|
|
color: #95a5a6;
|
|
|
|
border: 1px solid #d5dbdb;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ==================== 状态栏 ==================== */
|
|
|
|
QStatusBar {
|
|
|
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
|
|
stop: 0 #ecf0f1, stop: 1 #d5dbdb);
|
|
|
|
border-top: 1px solid #bdc3c7;
|
|
|
|
color: #34495e;
|
|
|
|
padding: 3px;
|
|
|
|
}
|
|
|
|
|
|
|
|
QStatusBar::item {
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ==================== 按钮 ==================== */
|
|
|
|
QPushButton {
|
|
|
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
|
|
stop: 0 #ffffff, stop: 1 #ecf0f1);
|
|
|
|
border: 1px solid #bdc3c7;
|
|
|
|
border-radius: 8px;
|
|
|
|
padding: 10px 16px;
|
|
|
|
font-weight: bold;
|
|
|
|
color: #2c3e50;
|
|
|
|
min-width: 80px;
|
|
|
|
min-height: 30px;
|
|
|
|
}
|
|
|
|
|
|
|
|
QPushButton:hover {
|
|
|
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
|
|
stop: 0 #e8f4fd, stop: 1 #d6eaff);
|
|
|
|
border: 1px solid #3498db;
|
|
|
|
}
|
|
|
|
|
|
|
|
QPushButton:pressed {
|
|
|
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
|
|
stop: 0 #d6eaff, stop: 1 #c3e2ff);
|
|
|
|
border: 1px solid #2980b9;
|
|
|
|
}
|
|
|
|
|
|
|
|
QPushButton:disabled {
|
|
|
|
background: #f5f6fa;
|
|
|
|
color: #95a5a6;
|
|
|
|
border: 1px solid #d5dbdb;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 特殊按钮颜色 */
|
|
|
|
QPushButton[text*="开始"], QPushButton[text*="执行"] {
|
|
|
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
|
|
stop: 0 #58d68d, stop: 1 #27ae60);
|
|
|
|
border: 1px solid #2ecc71;
|
|
|
|
color: #ffffff;
|
|
|
|
}
|
|
|
|
|
|
|
|
QPushButton[text*="开始"]:hover, QPushButton[text*="执行"]:hover {
|
|
|
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
|
|
stop: 0 #7dcea0, stop: 1 #58d68d);
|
|
|
|
}
|
|
|
|
|
|
|
|
QPushButton[text*="停止"], QPushButton[text*="删除"] {
|
|
|
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
|
|
stop: 0 #ec7063, stop: 1 #e74c3c);
|
|
|
|
border: 1px solid #e67e22;
|
|
|
|
color: #ffffff;
|
|
|
|
}
|
|
|
|
|
|
|
|
QPushButton[text*="停止"]:hover, QPushButton[text*="删除"]:hover {
|
|
|
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
|
|
stop: 0 #f1948a, stop: 1 #ec7063);
|
|
|
|
}
|
|
|
|
|
|
|
|
QPushButton[text*="重置"] {
|
|
|
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
|
|
stop: 0 #f7dc6f, stop: 1 #f39c12);
|
|
|
|
border: 1px solid #f1c40f;
|
|
|
|
color: #ffffff;
|
|
|
|
}
|
|
|
|
|
|
|
|
QPushButton[text*="重置"]:hover {
|
|
|
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
|
|
stop: 0 #f8e6a0, stop: 1 #f7dc6f);
|
|
|
|
}
|
|
|
|
|
|
|
|
QPushButton[text*="报告"], QPushButton[text*="导入"] {
|
|
|
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
|
|
stop: 0 #bb8fce, stop: 1 #9b59b6);
|
|
|
|
border: 1px solid #af7ac5;
|
|
|
|
color: #ffffff;
|
|
|
|
}
|
|
|
|
|
|
|
|
QPushButton[text*="报告"]:hover, QPushButton[text*="导入"]:hover {
|
|
|
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
|
|
stop: 0 #d2b4de, stop: 1 #bb8fce);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ==================== 规程界面按钮样式 ==================== */
|
|
|
|
/* 开始自动执行按钮 - 绿色主题 */
|
|
|
|
QPushButton[text*="开始自动执行"] {
|
|
|
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
|
|
stop: 0 #28a745, stop: 1 #218838);
|
|
|
|
border: 2px solid #28a745;
|
|
|
|
border-radius: 6px;
|
|
|
|
color: #ffffff;
|
|
|
|
font-size: 13px;
|
|
|
|
font-weight: bold;
|
|
|
|
min-width: 140px;
|
|
|
|
padding: 10px 20px;
|
|
|
|
icon-size: 16px 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
QPushButton[text*="开始自动执行"]:hover {
|
|
|
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
|
|
stop: 0 #218838, stop: 1 #1e7e34);
|
|
|
|
border-color: #1e7e34;
|
|
|
|
}
|
|
|
|
|
|
|
|
QPushButton[text*="开始自动执行"]:pressed {
|
|
|
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
|
|
stop: 0 #1e7e34, stop: 1 #1c7430);
|
|
|
|
border-color: #1c7430;
|
|
|
|
}
|
|
|
|
|
|
|
|
QPushButton[text*="开始自动执行"]:disabled {
|
|
|
|
background: #6c757d;
|
|
|
|
border-color: #6c757d;
|
|
|
|
color: #adb5bd;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 停止自动执行按钮 - 红色主题 */
|
|
|
|
QPushButton[text*="停止自动执行"] {
|
|
|
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
|
|
stop: 0 #dc3545, stop: 1 #c82333);
|
|
|
|
border: 2px solid #dc3545;
|
|
|
|
border-radius: 6px;
|
|
|
|
color: #ffffff;
|
|
|
|
font-size: 13px;
|
|
|
|
font-weight: bold;
|
|
|
|
min-width: 140px;
|
|
|
|
padding: 10px 20px;
|
|
|
|
icon-size: 16px 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
QPushButton[text*="停止自动执行"]:hover {
|
|
|
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
|
|
stop: 0 #c82333, stop: 1 #bd2130);
|
|
|
|
border-color: #bd2130;
|
|
|
|
}
|
|
|
|
|
|
|
|
QPushButton[text*="停止自动执行"]:pressed {
|
|
|
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
|
|
stop: 0 #bd2130, stop: 1 #b21f2d);
|
|
|
|
border-color: #b21f2d;
|
|
|
|
}
|
|
|
|
|
|
|
|
QPushButton[text*="停止自动执行"]:disabled {
|
|
|
|
background: #6c757d;
|
|
|
|
border-color: #6c757d;
|
|
|
|
color: #adb5bd;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 执行下一步按钮 - 蓝色主题 */
|
|
|
|
QPushButton[text*="执行下一步"] {
|
|
|
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
|
|
stop: 0 #007bff, stop: 1 #0056b3);
|
|
|
|
border: 2px solid #007bff;
|
|
|
|
border-radius: 6px;
|
|
|
|
color: #ffffff;
|
|
|
|
font-size: 13px;
|
|
|
|
font-weight: bold;
|
|
|
|
min-width: 140px;
|
|
|
|
padding: 10px 20px;
|
|
|
|
icon-size: 16px 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
QPushButton[text*="执行下一步"]:hover {
|
|
|
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
|
|
stop: 0 #0056b3, stop: 1 #004085);
|
|
|
|
border-color: #004085;
|
|
|
|
}
|
|
|
|
|
|
|
|
QPushButton[text*="执行下一步"]:pressed {
|
|
|
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
|
|
stop: 0 #004085, stop: 1 #003d7a);
|
|
|
|
border-color: #003d7a;
|
|
|
|
}
|
|
|
|
|
|
|
|
QPushButton[text*="执行下一步"]:disabled {
|
|
|
|
background: #6c757d;
|
|
|
|
border-color: #6c757d;
|
|
|
|
color: #adb5bd;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 完全重置按钮 - 橙色主题 */
|
|
|
|
QPushButton[text*="完全重置"] {
|
|
|
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
|
|
stop: 0 #fd7e14, stop: 1 #e8690b);
|
|
|
|
border: 2px solid #fd7e14;
|
|
|
|
border-radius: 6px;
|
|
|
|
color: #ffffff;
|
|
|
|
font-size: 13px;
|
|
|
|
font-weight: bold;
|
|
|
|
min-width: 140px;
|
|
|
|
padding: 10px 20px;
|
|
|
|
icon-size: 16px 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
QPushButton[text*="完全重置"]:hover {
|
|
|
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
|
|
stop: 0 #e8690b, stop: 1 #d6620a);
|
|
|
|
border-color: #d6620a;
|
|
|
|
}
|
|
|
|
|
|
|
|
QPushButton[text*="完全重置"]:pressed {
|
|
|
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
|
|
stop: 0 #d6620a, stop: 1 #c55a09);
|
|
|
|
border-color: #c55a09;
|
|
|
|
}
|
|
|
|
|
|
|
|
QPushButton[text*="完全重置"]:disabled {
|
|
|
|
background: #6c757d;
|
|
|
|
border-color: #6c757d;
|
|
|
|
color: #adb5bd;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 生成报告按钮 - 紫色主题 */
|
|
|
|
QPushButton[text*="生成报告"] {
|
|
|
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
|
|
stop: 0 #6f42c1, stop: 1 #5a32a3);
|
|
|
|
border: 2px solid #6f42c1;
|
|
|
|
border-radius: 6px;
|
|
|
|
color: #ffffff;
|
|
|
|
font-size: 13px;
|
|
|
|
font-weight: bold;
|
|
|
|
min-width: 140px;
|
|
|
|
padding: 10px 20px;
|
|
|
|
icon-size: 16px 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
QPushButton[text*="生成报告"]:hover {
|
|
|
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
|
|
stop: 0 #5a32a3, stop: 1 #4c2a85);
|
|
|
|
border-color: #4c2a85;
|
|
|
|
}
|
|
|
|
|
|
|
|
QPushButton[text*="生成报告"]:pressed {
|
|
|
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
|
|
stop: 0 #4c2a85, stop: 1 #3d2175);
|
|
|
|
border-color: #3d2175;
|
|
|
|
}
|
|
|
|
|
|
|
|
QPushButton[text*="生成报告"]:disabled {
|
|
|
|
background: #6c757d;
|
|
|
|
border-color: #6c757d;
|
|
|
|
color: #adb5bd;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ==================== 标签 ==================== */
|
|
|
|
QLabel {
|
|
|
|
color: #2c3e50;
|
|
|
|
background: transparent;
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
QLabel[text="规程分类"], QLabel[text="规程列表"], QLabel[text="测试步骤:"] {
|
|
|
|
font-size: 11pt;
|
|
|
|
font-weight: bold;
|
|
|
|
color: #3498db;
|
|
|
|
padding: 5px 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ==================== 表格视图 ==================== */
|
|
|
|
QTableView {
|
|
|
|
background-color: #ffffff;
|
|
|
|
alternate-background-color: #f8f9fa;
|
|
|
|
gridline-color: #d5dbdb;
|
|
|
|
border: 1px solid #bdc3c7;
|
|
|
|
border-radius: 8px;
|
|
|
|
selection-background-color: #3498db;
|
|
|
|
selection-color: #ffffff;
|
|
|
|
}
|
|
|
|
|
|
|
|
QTableWidget {
|
|
|
|
background-color: #ffffff;
|
|
|
|
alternate-background-color: #f8f9fa;
|
|
|
|
gridline-color: #d5dbdb;
|
|
|
|
border: 1px solid #bdc3c7;
|
|
|
|
border-radius: 8px;
|
|
|
|
selection-background-color: #3498db;
|
|
|
|
selection-color: #ffffff;
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
QTableWidget::item {
|
|
|
|
padding: 8px;
|
|
|
|
border: none;
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
QTableWidget::item:selected {
|
|
|
|
background-color: #3498db;
|
|
|
|
color: #ffffff;
|
|
|
|
}
|
|
|
|
|
|
|
|
QTableWidget::item:hover {
|
|
|
|
background-color: #e8f4fd;
|
|
|
|
}
|
|
|
|
|
|
|
|
QHeaderView::section {
|
|
|
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
|
|
stop: 0 #ffffff, stop: 1 #ecf0f1);
|
|
|
|
color: #2c3e50;
|
|
|
|
padding: 12px 8px;
|
|
|
|
border: none;
|
|
|
|
border-right: 1px solid #bdc3c7;
|
|
|
|
border-bottom: 2px solid #3498db;
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: 10pt;
|
|
|
|
min-height: 45px;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
QHeaderView::section:first {
|
|
|
|
border-top-left-radius: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
QHeaderView::section:last {
|
|
|
|
border-top-right-radius: 8px;
|
|
|
|
border-right: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
QHeaderView::section:hover {
|
|
|
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
|
|
stop: 0 #e8f4fd, stop: 1 #d6eaff);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 规程编辑器表格特殊样式 */
|
|
|
|
QTableWidget#stepsTable {
|
|
|
|
background-color: #ffffff;
|
|
|
|
border: 2px solid #bdc3c7;
|
|
|
|
border-radius: 8px;
|
|
|
|
gridline-color: #d5dbdb;
|
|
|
|
}
|
|
|
|
|
|
|
|
QTableWidget#stepsTable::item {
|
|
|
|
padding: 10px 8px;
|
|
|
|
border: none;
|
|
|
|
background-color: transparent;
|
|
|
|
font-size: 9pt;
|
|
|
|
}
|
|
|
|
|
|
|
|
QTableWidget#stepsTable::item:selected {
|
|
|
|
background-color: #3498db;
|
|
|
|
color: #ffffff;
|
|
|
|
}
|
|
|
|
|
|
|
|
QTableWidget#stepsTable::item:hover {
|
|
|
|
background-color: #e8f4fd;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 主步骤样式 */
|
|
|
|
QTableWidget#stepsTable::item[main_step="true"] {
|
|
|
|
background-color: #dcdcdc;
|
|
|
|
font-weight: bold;
|
|
|
|
color: #2c3e50;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 子步骤样式 */
|
|
|
|
QTableWidget#stepsTable::item[sub_step="true"] {
|
|
|
|
background-color: #f8f9fa;
|
|
|
|
color: #2c3e50;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 表格行高设置 */
|
|
|
|
QTableWidget#stepsTable {
|
|
|
|
gridline-color: #d5dbdb;
|
|
|
|
alternate-background-color: #f8f9fa;
|
|
|
|
}
|
|
|
|
|
|
|
|
QTableWidget#stepsTable::item {
|
|
|
|
min-height: 35px;
|
|
|
|
padding: 8px 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ==================== 列表控件 ==================== */
|
|
|
|
QListWidget {
|
|
|
|
background-color: #ffffff;
|
|
|
|
border: 1px solid #bdc3c7;
|
|
|
|
border-radius: 8px;
|
|
|
|
padding: 5px;
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
QListWidget::item {
|
|
|
|
background-color: transparent;
|
|
|
|
border: none;
|
|
|
|
border-radius: 4px;
|
|
|
|
padding: 10px 8px;
|
|
|
|
margin: 2px;
|
|
|
|
color: #2c3e50;
|
|
|
|
}
|
|
|
|
|
|
|
|
QListWidget::item:hover {
|
|
|
|
background-color: #e8f4fd;
|
|
|
|
border: 1px solid #3498db;
|
|
|
|
}
|
|
|
|
|
|
|
|
QListWidget::item:selected {
|
|
|
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
|
|
stop: 0 #3498db, stop: 1 #2980b9);
|
|
|
|
color: #ffffff;
|
|
|
|
border: 1px solid #5dade2;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ==================== 选项卡 ==================== */
|
|
|
|
QTabWidget::pane {
|
|
|
|
border: 1px solid #bdc3c7;
|
|
|
|
border-radius: 8px;
|
|
|
|
background-color: #ffffff;
|
|
|
|
top: -1px;
|
|
|
|
}
|
|
|
|
|
|
|
|
QTabBar::tab {
|
|
|
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
|
|
stop: 0 #ffffff, stop: 1 #ecf0f1);
|
|
|
|
border: 1px solid #bdc3c7;
|
|
|
|
padding: 10px 20px;
|
|
|
|
margin-right: 2px;
|
|
|
|
border-top-left-radius: 8px;
|
|
|
|
border-top-right-radius: 8px;
|
|
|
|
color: #34495e;
|
|
|
|
}
|
|
|
|
|
|
|
|
QTabBar::tab:selected {
|
|
|
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
|
|
stop: 0 #3498db, stop: 1 #2980b9);
|
|
|
|
color: #ffffff;
|
|
|
|
border-bottom-color: #ffffff;
|
|
|
|
}
|
|
|
|
|
|
|
|
QTabBar::tab:hover:!selected {
|
|
|
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
|
|
stop: 0 #e8f4fd, stop: 1 #d6eaff);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ==================== 输入控件 ==================== */
|
|
|
|
QLineEdit {
|
|
|
|
background-color: #ffffff;
|
|
|
|
border: 2px solid #bdc3c7;
|
|
|
|
border-radius: 6px;
|
|
|
|
padding: 8px 12px;
|
|
|
|
color: #2c3e50;
|
|
|
|
font-size: 9pt;
|
|
|
|
}
|
|
|
|
|
|
|
|
QLineEdit:focus {
|
|
|
|
border: 2px solid #3498db;
|
|
|
|
background-color: #fdfdfe;
|
|
|
|
}
|
|
|
|
|
|
|
|
QLineEdit:hover {
|
|
|
|
border: 2px solid #3498db;
|
|
|
|
}
|
|
|
|
|
|
|
|
QSpinBox {
|
|
|
|
background-color: #ffffff;
|
|
|
|
border: 2px solid #bdc3c7;
|
|
|
|
border-radius: 6px;
|
|
|
|
padding: 8px;
|
|
|
|
color: #2c3e50;
|
|
|
|
min-width: 60px;
|
|
|
|
}
|
|
|
|
|
|
|
|
QSpinBox:focus {
|
|
|
|
border: 2px solid #3498db;
|
|
|
|
background-color: #fdfdfe;
|
|
|
|
}
|
|
|
|
|
|
|
|
QSpinBox::up-button, QSpinBox::down-button {
|
|
|
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
|
|
stop: 0 #ffffff, stop: 1 #ecf0f1);
|
|
|
|
border: 1px solid #bdc3c7;
|
|
|
|
width: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
QSpinBox::up-button:hover, QSpinBox::down-button:hover {
|
|
|
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
|
|
stop: 0 #e8f4fd, stop: 1 #d6eaff);
|
|
|
|
}
|
|
|
|
|
|
|
|
QSpinBox::up-arrow {
|
|
|
|
image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAGCAYAAAD37n+BAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAAdgAAAHYBTnsmCAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAABHSURBVBiVY/z//z8DJYCJgUIwqmFUw6gGcjWQ5QdqaKBYA7ma/lOggWwN5PqBGhoo1kCuJnI1/KdAA9ka/lOggVwN5PoBAJZzBTcQ48y8AAAAAElFTkSuQmCC);
|
|
|
|
width: 8px;
|
|
|
|
height: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
QSpinBox::down-arrow {
|
|
|
|
image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAGCAYAAAD37n+BAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAAdgAAAHYBTnsmCAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXblLm9yZ5vuPBoAAABHSURBVBiVY2D4/58BFWBioBCMahgYDf8p0EC2hv8UaCBbA7ma/lOggWwN5Gqipwayff+fAg1ka/hPgQayNZCriboGAJd7BTc3gZfyAAAAAElFTkSuQmCC);
|
|
|
|
width: 8px;
|
|
|
|
height: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ==================== 复选框 ==================== */
|
|
|
|
QCheckBox {
|
|
|
|
color: #2c3e50;
|
|
|
|
spacing: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
QCheckBox::indicator {
|
|
|
|
width: 18px;
|
|
|
|
height: 18px;
|
|
|
|
border: 2px solid #bdc3c7;
|
|
|
|
border-radius: 3px;
|
|
|
|
background-color: #ffffff;
|
|
|
|
}
|
|
|
|
|
|
|
|
QCheckBox::indicator:hover {
|
|
|
|
border: 2px solid #3498db;
|
|
|
|
background-color: #e8f4fd;
|
|
|
|
}
|
|
|
|
|
|
|
|
QCheckBox::indicator:checked {
|
|
|
|
background-color: #3498db;
|
|
|
|
border: 2px solid #2980b9;
|
|
|
|
image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAJCAYAAAAGuM1UAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAAdgAAAHYBTnsmCAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXblLm9yZ5vuPBoAAABmSURBVBiVjZExDsIwEAT3JFpKSoo8gCfwCF7ACyipa3oCb+ANvIEn8AaegJYqLWnSRMmy1/YkFhftzNw9jUajUQMwBTaStpJOkmZm9jSzB/A0sy2wljS193O6nZmdgR/wBhYRcfsDGEwlvgBP2TAAAAAASUVORK5CYII=);
|
|
|
|
}
|
|
|
|
|
|
|
|
QCheckBox::indicator:checked:hover {
|
|
|
|
background-color: #5dade2;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ==================== 组合框 ==================== */
|
|
|
|
QComboBox {
|
|
|
|
background-color: #ffffff;
|
|
|
|
border: 2px solid #bdc3c7;
|
|
|
|
border-radius: 6px;
|
|
|
|
padding: 8px 12px;
|
|
|
|
color: #2c3e50;
|
|
|
|
min-width: 100px;
|
|
|
|
}
|
|
|
|
|
|
|
|
QComboBox:focus {
|
|
|
|
border: 2px solid #3498db;
|
|
|
|
background-color: #fdfdfe;
|
|
|
|
}
|
|
|
|
|
|
|
|
QComboBox::drop-down {
|
|
|
|
border: none;
|
|
|
|
width: 30px;
|
|
|
|
}
|
|
|
|
|
|
|
|
QComboBox::down-arrow {
|
|
|
|
image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAGCAYAAAD37n+BAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAAdgAAAHYBTnsmCAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXblLm9yZ5vuPBoAAABHSURBVBiVY2D4/58BFWBioBCMahgYDf8p0EC2hv8UaCBbA7ma/lOggWwN5Gqipwayff+fAg1ka/hPgQayNZCriboGAJd7BTc3gZfyAAAAAElFTkSuQmCC);
|
|
|
|
width: 12px;
|
|
|
|
height: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
QComboBox QAbstractItemView {
|
|
|
|
background-color: #ffffff;
|
|
|
|
border: 1px solid #bdc3c7;
|
|
|
|
border-radius: 6px;
|
|
|
|
color: #2c3e50;
|
|
|
|
selection-background-color: #3498db;
|
|
|
|
padding: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
QComboBox QAbstractItemView::item {
|
|
|
|
height: 30px;
|
|
|
|
padding: 6px 12px;
|
|
|
|
border: none;
|
|
|
|
border-radius: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
QComboBox QAbstractItemView::item:hover {
|
|
|
|
background-color: #e8f4fd;
|
|
|
|
}
|
|
|
|
|
|
|
|
QComboBox QAbstractItemView::item:selected {
|
|
|
|
background-color: #3498db;
|
|
|
|
color: #ffffff;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ==================== 对话框 ==================== */
|
|
|
|
QDialog {
|
|
|
|
background-color: #ffffff;
|
|
|
|
border: 1px solid #bdc3c7;
|
|
|
|
border-radius: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
QDialogButtonBox QPushButton {
|
|
|
|
min-width: 100px;
|
|
|
|
padding: 10px 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ==================== 消息框 ==================== */
|
|
|
|
QMessageBox {
|
|
|
|
background-color: #ffffff;
|
|
|
|
color: #2c3e50;
|
|
|
|
border-radius: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
QMessageBox QLabel {
|
|
|
|
color: #2c3e50;
|
|
|
|
font-size: 10pt;
|
|
|
|
}
|
|
|
|
|
|
|
|
QMessageBox QPushButton {
|
|
|
|
min-width: 80px;
|
|
|
|
padding: 8px 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ==================== 表单布局 ==================== */
|
|
|
|
QFormLayout QLabel {
|
|
|
|
font-weight: bold;
|
|
|
|
color: #3498db;
|
|
|
|
min-width: 100px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ==================== 滚动条 ==================== */
|
|
|
|
QScrollBar:vertical {
|
|
|
|
background-color: #f8f9fa;
|
|
|
|
width: 12px;
|
|
|
|
border-radius: 6px;
|
|
|
|
margin: 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
QScrollBar::handle:vertical {
|
|
|
|
background: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0,
|
|
|
|
stop: 0 #d5dbdb, stop: 1 #bdc3c7);
|
|
|
|
border-radius: 6px;
|
|
|
|
min-height: 30px;
|
|
|
|
}
|
|
|
|
|
|
|
|
QScrollBar::handle:vertical:hover {
|
|
|
|
background: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0,
|
|
|
|
stop: 0 #3498db, stop: 1 #2980b9);
|
|
|
|
}
|
|
|
|
|
|
|
|
QScrollBar::handle:vertical:pressed {
|
|
|
|
background: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0,
|
|
|
|
stop: 0 #2980b9, stop: 1 #21618c);
|
|
|
|
}
|
|
|
|
|
|
|
|
QScrollBar::add-line:vertical, QScrollBar::sub-line:vertical {
|
|
|
|
height: 0px;
|
|
|
|
background: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
QScrollBar:horizontal {
|
|
|
|
background-color: #f8f9fa;
|
|
|
|
height: 12px;
|
|
|
|
border-radius: 6px;
|
|
|
|
margin: 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
QScrollBar::handle:horizontal {
|
|
|
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
|
|
stop: 0 #d5dbdb, stop: 1 #bdc3c7);
|
|
|
|
border-radius: 6px;
|
|
|
|
min-width: 30px;
|
|
|
|
}
|
|
|
|
|
|
|
|
QScrollBar::handle:horizontal:hover {
|
|
|
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
|
|
stop: 0 #3498db, stop: 1 #2980b9);
|
|
|
|
}
|
|
|
|
|
|
|
|
QScrollBar::handle:horizontal:pressed {
|
|
|
|
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
|
|
|
|
stop: 0 #2980b9, stop: 1 #21618c);
|
|
|
|
}
|
|
|
|
|
|
|
|
QScrollBar::add-line:horizontal, QScrollBar::sub-line:horizontal {
|
|
|
|
width: 0px;
|
|
|
|
background: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ==================== 菜单 ==================== */
|
|
|
|
QMenu {
|
|
|
|
background-color: #ffffff;
|
|
|
|
border: 1px solid #bdc3c7;
|
|
|
|
border-radius: 8px;
|
|
|
|
padding: 4px;
|
|
|
|
color: #2c3e50;
|
|
|
|
}
|
|
|
|
|
|
|
|
QMenu::item {
|
|
|
|
background-color: transparent;
|
|
|
|
padding: 8px 16px;
|
|
|
|
border-radius: 4px;
|
|
|
|
margin: 1px;
|
|
|
|
}
|
|
|
|
|
|
|
|
QMenu::item:selected {
|
|
|
|
background-color: #3498db;
|
|
|
|
color: #ffffff;
|
|
|
|
}
|
|
|
|
|
|
|
|
QMenu::item:disabled {
|
|
|
|
color: #95a5a6;
|
|
|
|
}
|
|
|
|
|
|
|
|
QMenu::separator {
|
|
|
|
height: 1px;
|
|
|
|
background-color: #d5dbdb;
|
|
|
|
margin: 4px 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ==================== 进度条 ==================== */
|
|
|
|
QProgressBar {
|
|
|
|
background-color: #ffffff;
|
|
|
|
border: 1px solid #bdc3c7;
|
|
|
|
border-radius: 8px;
|
|
|
|
text-align: center;
|
|
|
|
color: #2c3e50;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
QProgressBar::chunk {
|
|
|
|
background: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0,
|
|
|
|
stop: 0 #3498db, stop: 1 #2980b9);
|
|
|
|
border-radius: 7px;
|
|
|
|
margin: 1px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ==================== 工具提示 ==================== */
|
|
|
|
QToolTip {
|
|
|
|
background-color: #ffffff;
|
|
|
|
color: #2c3e50;
|
|
|
|
border: 1px solid #3498db;
|
|
|
|
border-radius: 6px;
|
|
|
|
padding: 8px;
|
|
|
|
font-size: 9pt;
|
|
|
|
opacity: 240;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ==================== 分割器 ==================== */
|
|
|
|
QSplitter::handle {
|
|
|
|
background-color: #d5dbdb;
|
|
|
|
}
|
|
|
|
|
|
|
|
QSplitter::handle:horizontal {
|
|
|
|
width: 3px;
|
|
|
|
border-radius: 1px;
|
|
|
|
}
|
|
|
|
|
|
|
|
QSplitter::handle:vertical {
|
|
|
|
height: 3px;
|
|
|
|
border-radius: 1px;
|
|
|
|
}
|
|
|
|
|
|
|
|
QSplitter::handle:hover {
|
|
|
|
background-color: #3498db;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ==================== 特殊样式 ==================== */
|
|
|
|
/* 成功状态的行 */
|
|
|
|
QTableView::item[success="true"] {
|
|
|
|
background-color: rgba(46, 204, 113, 0.1);
|
|
|
|
color: #27ae60;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 失败状态的行 */
|
|
|
|
QTableView::item[success="false"] {
|
|
|
|
background-color: rgba(231, 76, 60, 0.1);
|
|
|
|
color: #e74c3c;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 主步骤样式 */
|
|
|
|
QTableView::item[main_step="true"] {
|
|
|
|
background-color: rgba(52, 152, 219, 0.1);
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 状态指示器 */
|
|
|
|
.status-success {
|
|
|
|
color: #27ae60;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
.status-error {
|
|
|
|
color: #e74c3c;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
.status-warning {
|
|
|
|
color: #f39c12;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
.status-info {
|
|
|
|
color: #3498db;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ==================== 动画效果 ==================== */
|
|
|
|
QPushButton {
|
|
|
|
}
|
|
|
|
|
|
|
|
QToolButton {
|
|
|
|
}
|
|
|
|
|
|
|
|
QLineEdit {
|
|
|
|
}
|
|
|
|
|
|
|
|
QListWidget::item {
|
|
|
|
}
|
|
|
|
|
|
|
|
QTableView::item {
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ==================== 规程编辑器样式 ==================== */
|
|
|
|
/* 标题样式 */
|
|
|
|
QLabel[text="规程编辑器"] {
|
|
|
|
font-size: 16px;
|
|
|
|
font-weight: bold;
|
|
|
|
color: #2c3e50;
|
|
|
|
padding: 10px;
|
|
|
|
background-color: #ecf0f1;
|
|
|
|
border-radius: 5px;
|
|
|
|
margin: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 分组容器样式 */
|
|
|
|
QWidget[class="info_group"] {
|
|
|
|
background-color: #f8f9fa;
|
|
|
|
border: 1px solid #dee2e6;
|
|
|
|
border-radius: 5px;
|
|
|
|
padding: 10px;
|
|
|
|
margin: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
QWidget[class="steps_group"] {
|
|
|
|
background-color: #f8f9fa;
|
|
|
|
border: 1px solid #dee2e6;
|
|
|
|
border-radius: 5px;
|
|
|
|
padding: 10px;
|
|
|
|
margin: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 分组标题样式 */
|
|
|
|
QLabel[text="基本信息"], QLabel[text="步骤列表"] {
|
|
|
|
font-weight: bold;
|
|
|
|
color: #3498db;
|
|
|
|
margin-bottom: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 添加步骤按钮样式 */
|
|
|
|
QPushButton[text="添加步骤"] {
|
|
|
|
background-color: #28a745;
|
|
|
|
color: white;
|
|
|
|
border: none;
|
|
|
|
padding: 5px 10px;
|
|
|
|
border-radius: 3px;
|
|
|
|
font-size: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
QPushButton[text="添加步骤"]:hover {
|
|
|
|
background-color: #218838;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 删除步骤按钮样式 */
|
|
|
|
QPushButton[text="删除步骤"] {
|
|
|
|
background-color: #dc3545;
|
|
|
|
color: white;
|
|
|
|
border: none;
|
|
|
|
padding: 5px 10px;
|
|
|
|
border-radius: 3px;
|
|
|
|
font-size: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
QPushButton[text="删除步骤"]:hover {
|
|
|
|
background-color: #c82333;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 保存规程按钮样式 */
|
|
|
|
QPushButton[text="保存规程"] {
|
|
|
|
background-color: #007bff;
|
|
|
|
color: white;
|
|
|
|
border: none;
|
|
|
|
padding: 10px 20px;
|
|
|
|
border-radius: 5px;
|
|
|
|
font-size: 14px;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
QPushButton[text="保存规程"]:hover {
|
|
|
|
background-color: #0056b3;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 取消按钮样式 */
|
|
|
|
QPushButton[text="❌ 取消"] {
|
|
|
|
background-color: #6c757d;
|
|
|
|
color: white;
|
|
|
|
border: none;
|
|
|
|
padding: 10px 20px;
|
|
|
|
border-radius: 5px;
|
|
|
|
font-size: 14px;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
QPushButton[text="❌ 取消"]:hover {
|
|
|
|
background-color: #5a6268;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ==================== 规程执行界面样式 ==================== */
|
|
|
|
/* 规程信息容器 */
|
|
|
|
QWidget#procedureInfoContainer {
|
|
|
|
background-color: #ffffff;
|
|
|
|
border: 2px solid #dee2e6;
|
|
|
|
border-radius: 10px;
|
|
|
|
padding: 20px;
|
|
|
|
margin: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 信息分组组件 */
|
|
|
|
QWidget#infoGroupWidget {
|
|
|
|
background-color: #f8f9fa;
|
|
|
|
border: 1px solid #dee2e6;
|
|
|
|
border-radius: 8px;
|
|
|
|
padding: 15px;
|
|
|
|
margin: 5px;
|
|
|
|
min-width: 200px;
|
|
|
|
min-height: 80px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 规程名称分组 */
|
|
|
|
QWidget#procedureNameGroup {
|
|
|
|
border-color: #343a40;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 规程编号分组 */
|
|
|
|
QWidget#procedureNumberGroup {
|
|
|
|
border-color: #343a40;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 规程类型分组 */
|
|
|
|
QWidget#procedureTypeGroup {
|
|
|
|
border-color: #343a40;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 测试用例分组 */
|
|
|
|
QWidget#testCaseGroup {
|
|
|
|
border-color: #343a40;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 用例编号分组 */
|
|
|
|
QWidget#caseNumberGroup {
|
|
|
|
border-color: #343a40;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 工况描述分组 */
|
|
|
|
QWidget#conditionDescriptionGroup {
|
|
|
|
border-color: #343a40;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 信息标签样式 */
|
|
|
|
QLabel#infoGroupLabel {
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: 14px;
|
|
|
|
color: #212529;
|
|
|
|
margin-bottom: 8px;
|
|
|
|
padding: 5px 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 规程名称标签 */
|
|
|
|
QLabel#procedureNameLabel {
|
|
|
|
color: #212529;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 规程编号标签 */
|
|
|
|
QLabel#procedureNumberLabel {
|
|
|
|
color: #212529;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 规程类型标签 */
|
|
|
|
QLabel#procedureTypeLabel {
|
|
|
|
color: #212529;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 测试用例标签 */
|
|
|
|
QLabel#testCaseLabel {
|
|
|
|
color: #212529;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 用例编号标签 */
|
|
|
|
QLabel#caseNumberLabel {
|
|
|
|
color: #212529;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 工况描述标签 */
|
|
|
|
QLabel#conditionDescriptionLabel {
|
|
|
|
color: #212529;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 信息值样式 */
|
|
|
|
QLabel#infoGroupValue {
|
|
|
|
color: #212529;
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: 16px;
|
|
|
|
padding: 8px;
|
|
|
|
background-color: #ffffff;
|
|
|
|
border-radius: 6px;
|
|
|
|
border: 1px solid #dee2e6;
|
|
|
|
min-height: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 工况描述值样式 */
|
|
|
|
QLabel#descriptionValue {
|
|
|
|
color: #495057;
|
|
|
|
font-size: 14px;
|
|
|
|
padding: 10px;
|
|
|
|
background-color: #ffffff;
|
|
|
|
border-radius: 6px;
|
|
|
|
border: 1px solid #dee2e6;
|
|
|
|
line-height: 1.4;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 状态标签样式 */
|
|
|
|
QLabel#statusLabel {
|
|
|
|
color: #212529;
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 倒计时标签样式 */
|
|
|
|
QLabel#countdownLabel {
|
|
|
|
color: #212529;
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 倒计时标签状态样式 */
|
|
|
|
QLabel#countdownLabel[timeRemaining="low"] {
|
|
|
|
color: #dc3545;
|
|
|
|
}
|
|
|
|
|
|
|
|
QLabel#countdownLabel[timeRemaining="medium"] {
|
|
|
|
color: #fd7e14;
|
|
|
|
}
|
|
|
|
|
|
|
|
QLabel#countdownLabel[timeRemaining="high"] {
|
|
|
|
color: #212529;
|
|
|
|
}
|
|
|
|
|
|
|
|
QLabel#countdownLabel[timeRemaining="completed"] {
|
|
|
|
color: #28a745;
|
|
|
|
}
|