[ui] Fix source fields' virtual field comment widget on dark themes

This commit is contained in:
Mathieu Pellerin 2023-08-05 10:56:17 +07:00 committed by Nyall Dawson
parent 3e774edcb6
commit 1552ae111b

View File

@ -224,7 +224,7 @@ void QgsSourceFieldsProperties::setRow( int row, int idx, const QgsField &field
expressionWidget->layout()->setContentsMargins( 0, 0, 0, 0 ); expressionWidget->layout()->setContentsMargins( 0, 0, 0, 0 );
expressionWidget->layout()->addWidget( editExpressionButton ); expressionWidget->layout()->addWidget( editExpressionButton );
expressionWidget->layout()->addWidget( new QLabel( mLayer->expressionField( idx ) ) ); expressionWidget->layout()->addWidget( new QLabel( mLayer->expressionField( idx ) ) );
expressionWidget->setStyleSheet( "background-color: rgb( 200, 200, 255 )" ); expressionWidget->setStyleSheet( "*[class~=\"QWidget\"] { background-color: rgba( 103, 0, 243, 0.12 ); } QToolButton { background-color: rgba( 203, 100, 243, 0.6 ); }" );
mFieldsList->setCellWidget( row, AttrCommentCol, expressionWidget ); mFieldsList->setCellWidget( row, AttrCommentCol, expressionWidget );
} }
else else