217 lines
3.8 KiB
Plaintext
217 lines
3.8 KiB
Plaintext
|
|
/* 应用程序样式表 */
|
|||
|
|
|
|||
|
|
/* 主窗口样式 */
|
|||
|
|
QMainWindow {
|
|||
|
|
background-color: #f0f0f0;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/* 导航栏按钮样式 */
|
|||
|
|
QPushButton#nav-button {
|
|||
|
|
background-color: #ffffff;
|
|||
|
|
color: #000000;
|
|||
|
|
border: 1px solid #cccccc;
|
|||
|
|
padding: 10px 20px;
|
|||
|
|
margin: 2px;
|
|||
|
|
border-radius: 5px;
|
|||
|
|
font-weight: bold;
|
|||
|
|
font-size: 14px;
|
|||
|
|
min-width: 100px;
|
|||
|
|
width: 140px;
|
|||
|
|
height:50px;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
QPushButton#nav-button:hover {
|
|||
|
|
background-color: #e8f4f8;
|
|||
|
|
border-color: #3498db;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
QPushButton#nav-button:checked {
|
|||
|
|
background-color: #3498db;
|
|||
|
|
color: white;
|
|||
|
|
border-color: #3498db;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/* 关闭按钮样式 */
|
|||
|
|
QPushButton#close-button {
|
|||
|
|
background-color: #e74c3c;
|
|||
|
|
color: white;
|
|||
|
|
border: none;
|
|||
|
|
border-radius: 5px;
|
|||
|
|
font-size: 20px;
|
|||
|
|
font-weight: bold;
|
|||
|
|
width: 40px;
|
|||
|
|
height:50px;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
QPushButton#close-button:hover {
|
|||
|
|
background-color: #c0392b;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/* 标题标签样式 */
|
|||
|
|
QLabel#title {
|
|||
|
|
font-size: 24px;
|
|||
|
|
font-weight: bold;
|
|||
|
|
color: #2c3e50;
|
|||
|
|
margin: 10px 0;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/* 分组框样式 */
|
|||
|
|
QGroupBox {
|
|||
|
|
font-weight: bold;
|
|||
|
|
border: 1px solid #cccccc;
|
|||
|
|
border-radius: 4px;
|
|||
|
|
margin-top: 1ex;
|
|||
|
|
padding-top: 10px;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
QGroupBox::title {
|
|||
|
|
subcontrol-origin: margin;
|
|||
|
|
subcontrol-position: top center;
|
|||
|
|
padding: 0 5px;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/* 列表面板样式 */
|
|||
|
|
QTableView {
|
|||
|
|
alternate-background-color: #f8f9fa;
|
|||
|
|
selection-background-color: #3498db;
|
|||
|
|
selection-color: white;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/* 输入框样式 */
|
|||
|
|
QLineEdit, QTextEdit, QComboBox {
|
|||
|
|
padding: 5px;
|
|||
|
|
border: 1px solid #cccccc;
|
|||
|
|
border-radius: 4px;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
QLineEdit:focus, QComboBox:focus {
|
|||
|
|
border-color: #3498db;
|
|||
|
|
border-width: 2px;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/* 按钮样式 */
|
|||
|
|
QPushButton {
|
|||
|
|
background-color: #3498db;
|
|||
|
|
color: white;
|
|||
|
|
border: none;
|
|||
|
|
padding: 8px 16px;
|
|||
|
|
border-radius: 4px;
|
|||
|
|
font-weight: bold;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
QPushButton:hover {
|
|||
|
|
background-color: #2980b9;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
QPushButton:pressed {
|
|||
|
|
background-color: #21618c;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
QPushButton:disabled {
|
|||
|
|
background-color: #bdc3c7;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/* 复选框样式 */
|
|||
|
|
QCheckBox {
|
|||
|
|
spacing: 5px;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
QCheckBox::indicator {
|
|||
|
|
width: 18px;
|
|||
|
|
height: 18px;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
QCheckBox::indicator:unchecked {
|
|||
|
|
border: 1px solid #cccccc;
|
|||
|
|
background-color: white;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
QCheckBox::indicator:checked {
|
|||
|
|
border: 1px solid #3498db;
|
|||
|
|
background-color: #3498db;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/* 状态栏样式 */
|
|||
|
|
QStatusBar {
|
|||
|
|
background-color: #ecf0f1;
|
|||
|
|
border-top: 1px solid #cccccc;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/* 试验监控视图样式 */
|
|||
|
|
QTabWidget#monitor-tabs {
|
|||
|
|
background-color: #f5f5f5;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
QTabWidget#monitor-tabs::pane {
|
|||
|
|
border: none;
|
|||
|
|
background-color: #ffffff;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
QTabWidget#monitor-tabs QTabBar::tab {
|
|||
|
|
background-color: #e0e0e0;
|
|||
|
|
color: #333333;
|
|||
|
|
padding: 10px 30px;
|
|||
|
|
margin-right: 2px;
|
|||
|
|
border: none;
|
|||
|
|
font-size: 14px;
|
|||
|
|
font-weight: bold;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
QTabWidget#monitor-tabs QTabBar::tab:selected {
|
|||
|
|
background-color: #3498db;
|
|||
|
|
color: white;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
QTabWidget#monitor-tabs QTabBar::tab:hover {
|
|||
|
|
background-color: #5dade2;
|
|||
|
|
color: white;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
QLabel#device-info-title {
|
|||
|
|
background-color: #ecf0f1;
|
|||
|
|
color: #2c3e50;
|
|||
|
|
padding: 10px;
|
|||
|
|
border-radius: 6px;
|
|||
|
|
border: 1px solid #bdc3c7;
|
|||
|
|
font-size: 13px;
|
|||
|
|
font-weight: bold;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
QGroupBox#channel-monitor {
|
|||
|
|
border: 2px solid #cccccc;
|
|||
|
|
border-radius: 8px;
|
|||
|
|
margin-top: 10px;
|
|||
|
|
padding: 20px;
|
|||
|
|
background-color: #fafafa;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
QLabel#channel-title {
|
|||
|
|
color: #2c3e50;
|
|||
|
|
font-size: 18px;
|
|||
|
|
font-weight: bold;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
QLabel#status-info {
|
|||
|
|
color: #27ae60;
|
|||
|
|
font-size: 16px;
|
|||
|
|
padding: 20px;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
QPushButton#monitor-action-btn {
|
|||
|
|
background-color: #3498db;
|
|||
|
|
color: white;
|
|||
|
|
border: none;
|
|||
|
|
padding: 12px 30px;
|
|||
|
|
border-radius: 6px;
|
|||
|
|
font-size: 14px;
|
|||
|
|
font-weight: bold;
|
|||
|
|
min-width: 120px;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
QPushButton#monitor-action-btn:hover {
|
|||
|
|
background-color: #2980b9;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
QPushButton#monitor-action-btn:pressed {
|
|||
|
|
background-color: #21618c;
|
|||
|
|
}
|