respect the marginHint for graphic subcontrols

This commit is contained in:
Uwe Rathmann 2024-12-12 17:10:16 +01:00
parent 16ca8e66f3
commit a6992c2f08

View File

@ -730,7 +730,9 @@ QSGNode* QskSkinlet::updateGraphicNode(
const QskGraphic& graphic, QskAspect::Subcontrol subControl,
Qt::Orientations mirrored ) const
{
const auto rect = qskSubControlRect( this, skinnable, subControl );
auto rect = qskSubControlRect( this, skinnable, subControl );
rect = rect.marginsRemoved( skinnable->marginHint( subControl ) );
const auto alignment = skinnable->alignmentHint( subControl, Qt::AlignCenter );
const auto colorFilter = skinnable->effectiveGraphicFilter( subControl );