handling of background node improved

This commit is contained in:
Uwe Rathmann 2024-09-17 17:52:52 +02:00
parent 6c391b831d
commit 46e5630f48

View File

@ -369,12 +369,11 @@ QSGNode* QskSkinlet::updateBackgroundNode(
return nullptr;
const auto gradient = control->background();
if ( !gradient.isValid() )
if ( !gradient.isVisible() )
return nullptr;
auto rectNode = QskSGNode::ensureNode< QskBoxRectangleNode >( node );
rectNode->updateFilling( rect, QskBoxShapeMetrics(),
QskBoxBorderMetrics(), gradient );
rectNode->updateFilling( rect, gradient );
return rectNode;
}