Is it possible to know when a PlasmaCore IconItem is ready?
Michail Vourlakos
mvourlakos at gmail.com
Thu Jul 28 21:40:41 UTC 2016
>
>> for DropShadow and the animation for hover to add it
>> in the PlasmaCore.IconItem right?
>>
>
> I'd put the animation in the DropShadow itself and scale that.
>
> I bet changing the size of a ShaderEffectSource triggers a re-render, and
> that's why you see the performance hit.
>
> Currently you're changing the iconImageBuffer but the QSGTextureProvider it
> created will just remain static.
>
the following code drops my performance to half comparing to the
Images solution,
do I miss something? :
DropShadow {
id:shadowImageNoActive
width: 64
height: 64
scale: wrapper.scale * wrapper.appearScale
anchors.centerIn: parent
radius: 7.0
samples: 10
color: "#90080808"
source: ShaderEffectSource {
id:effectSource
width: iconImage.width
height: iconImage.height
sourceItem: iconImage
hideSource: true
live: false
}
PlasmaCore.IconItem {
id: iconImage
width:64
height:64
anchors.centerIn: parent
active: true
enabled: true
usesPlasmaTheme: false
source: decoration
}
}
More information about the Plasma-devel
mailing list