完善耐久采集

This commit is contained in:
2025-04-07 10:38:59 +08:00
parent 671db5b1db
commit 6e547ca6a3
16 changed files with 341 additions and 387 deletions

View File

@ -48,3 +48,42 @@ QPushButton[objectName^="btn"]:pressed {
/* ------------------------------------------- QStatusBar -------------------------------------------*/
QStatusBar::item { border: 0px; }
/* ------------------------------------------- QSlider -------------------------------------------*/
QSlider {
min-height: 40px; /* 控制滑块控件最小高度 */
background: transparent;
}
/* ===== 滑条轨道 ===== */
QSlider::groove:horizontal {
background: #E0E0E0;
height: 8px; /* 轨道高度 */
border-radius: 4px;
}
/* ===== 已滑过的轨道部分 ===== */
QSlider::sub-page:horizontal {
background: #2196F3; /* 进度颜色 */
border-radius: 4px;
}
/* ===== 滑块手柄 ===== */
QSlider::handle:horizontal {
background: #FFFFFF;
border: 2px solid #2196F3;
width: 10px; /* 滑块宽度 */
height: 20px; /* 滑块高度 */
margin: -8px 0; /* 调整滑块在轨道上的位置 */
border-radius: 5px;
}
/* ===== 悬停/按下状态 ===== */
QSlider::handle:horizontal:hover {
background: #E3F2FD;
}
QSlider::handle:horizontal:pressed {
background: #BBDEFB;
}