UI优化:Step9单选框样式美化(选中态蓝色实心圆点+悬停效果)
This commit is contained in:
@ -109,6 +109,37 @@ class Step9Panel(QWidget):
|
||||
mode_row.addStretch()
|
||||
layout.addLayout(mode_row)
|
||||
|
||||
# ---------- RadioButton 美化样式(选中状态更醒目) ----------
|
||||
radio_style = """
|
||||
QRadioButton {
|
||||
font-size: 14px;
|
||||
spacing: 8px;
|
||||
color: #333333;
|
||||
}
|
||||
QRadioButton::indicator {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
border: 2px solid #999999;
|
||||
border-radius: 9px;
|
||||
background-color: white;
|
||||
}
|
||||
QRadioButton::indicator:checked {
|
||||
border: 2px solid #0078d4;
|
||||
background-color: qradialgradient(
|
||||
cx:0.5, cy:0.5, radius:0.5,
|
||||
fx:0.5, fy:0.5,
|
||||
stop:0 #0078d4,
|
||||
stop:0.6 white,
|
||||
stop:1.0 white
|
||||
);
|
||||
}
|
||||
QRadioButton::indicator:hover {
|
||||
border: 2px solid #005a9e;
|
||||
}
|
||||
"""
|
||||
self.mode_single_rb.setStyleSheet(radio_style)
|
||||
self.mode_folder_rb.setStyleSheet(radio_style)
|
||||
|
||||
self.prediction_csv_file = FileSelectWidget(
|
||||
"预测结果CSV:",
|
||||
"CSV Files (*.csv);;All Files (*.*)"
|
||||
|
||||
Reference in New Issue
Block a user