Squashed commit of the following:
commit 319abafb0d
Author: Uwe Rathmann <Uwe.Rathmann@tigertal.de>
Date: Tue May 21 16:08:40 2024 +0200
bad shadowColor check fixed
This commit is contained in:
parent
aba7656d2a
commit
16c9ea2161
|
@ -130,8 +130,9 @@ void QskArcNode::setArcData( const QRectF& rect, const QskArcMetrics& arcMetrics
|
|||
}
|
||||
|
||||
const auto isFillNodeVisible = gradient.isVisible() && !metricsArc.isNull();
|
||||
const auto isStrokeNodeVisible = borderWidth > 0.0 && borderColor.alpha() > 0;
|
||||
const auto isShadowNodeVisible = shadowColor.alpha() > 0.0 && isFillNodeVisible;
|
||||
const auto isStrokeNodeVisible = ( borderWidth > 0.0 ) && ( borderColor.alpha() > 0 );
|
||||
const auto isShadowNodeVisible = isFillNodeVisible &&
|
||||
shadowColor.isValid() && ( shadowColor.alpha() > 0.0 );
|
||||
|
||||
const auto path = metricsArc.painterPath( arcRect );
|
||||
|
||||
|
|
Loading…
Reference in New Issue