refactor:优化事件查看对话框UI效果

This commit is contained in:
duanshengchao 2025-11-25 14:37:17 +08:00
parent a01d290469
commit ff521471c4
2 changed files with 13 additions and 2 deletions

View File

@ -118,6 +118,9 @@ void AlarmEventMainDialog::onSyncDataStatus(const PaginationInfo& paginationInfo
void AlarmEventMainDialog::onLoadDataError(const QString& error) void AlarmEventMainDialog::onLoadDataError(const QString& error)
{ {
if(!this->isVisible())
return;
showTransparentMask(); showTransparentMask();
showMessageDialog(type_warning, QString("错误"), QString("加载数据失败(%1)").arg(error)); showMessageDialog(type_warning, QString("错误"), QString("加载数据失败(%1)").arg(error));
} }

View File

@ -123,17 +123,25 @@ border-image: url(:/images/down-arrow.png);
} }
QComboBox QAbstractItemView QComboBox QAbstractItemView
{ {
font: 11pt "黑体";
color: rgb(230, 230, 230);
background-color:rgb(35,35,35);
outline: 0px; /*去除选中虚线框 */ outline: 0px; /*去除选中虚线框 */
border:0px; border:0px;
background-color:rgba(25,25,25,220); }
QComboBox QAbstractItemView::item
{
padding-top: 2px;
padding-bottom:2px;
} }
QComboBox QAbstractItemView::item:hover QComboBox QAbstractItemView::item:hover
{ {
padding-top: 2px;
padding-bottom:2px;
background-color: rgb(43, 102, 158); background-color: rgb(43, 102, 158);
} }
QComboBox QAbstractItemView::item:selected QComboBox QAbstractItemView::item:selected
{ {
color: rgb(250, 250, 250);
background-color: rgba(43, 102, 158, 80); background-color: rgba(43, 102, 158, 80);
}</string> }</string>
</property> </property>