fix(ui): 下拉框弹窗 — 干净填充选中 + 去边框/圆角伪影
QComboBox 弹窗当前/选中项原来显示一个细边框方块(Fusion 默认 + 缺 ::item 规则)。 补 QComboBox QAbstractItemView::item 规则: 统一行高/内边距、去边框、选中=浅蓝填充+强调色文字; 去掉 view 的 border-radius(防圆角弹窗露直角)。改一处(单一 QSS)即生效。
This commit is contained in:
parent
9010b20b57
commit
a6a3979b93
|
|
@ -303,10 +303,18 @@ QComboBox::drop-down {
|
||||||
QComboBox QAbstractItemView {
|
QComboBox QAbstractItemView {
|
||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
border: 1px solid #D5DBE5;
|
border: 1px solid #D5DBE5;
|
||||||
border-radius: 6px;
|
|
||||||
selection-background-color: #DCE9F8;
|
|
||||||
selection-color: #1B3D67;
|
|
||||||
outline: none;
|
outline: none;
|
||||||
|
padding: 2px;
|
||||||
|
}
|
||||||
|
QComboBox QAbstractItemView::item {
|
||||||
|
border: none;
|
||||||
|
padding: 6px 10px;
|
||||||
|
min-height: 20px;
|
||||||
|
color: #1F2A3D;
|
||||||
|
}
|
||||||
|
QComboBox QAbstractItemView::item:selected {
|
||||||
|
background: #EAF1FB;
|
||||||
|
color: #2D6CB5;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── 分组框(按需出现时也与主题一致)──────────────────────── */
|
/* ── 分组框(按需出现时也与主题一致)──────────────────────── */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue