restore slide-out remove window animation

--update it to Kirigami.Icon infrastructure
work/spdx
Michail Vourlakos 4 years ago
parent 08118d531c
commit 4be537d24d

@ -80,9 +80,6 @@ Item {
id: taskIconItem
anchors.fill: parent
//roundToIconSize: false
//! Trying to provide crisp icons for regular and zoomed size and smooth appearance in-between
//! bug:432477
//smooth: size !== taskItem.abilities.metrics.iconSize && size !== (taskItem.abilities.metrics.iconSize*taskItem.abilities.parabolic.zoom)
source: decoration
visible: !badgesLoader.active

@ -24,6 +24,8 @@ import QtGraphicalEffects 1.0
import org.kde.plasma.plasmoid 2.0
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.kirigami 2.0 as Kirigami
import org.kde.latte.core 0.2 as LatteCore
/////Removing a Window from a group////
@ -62,10 +64,26 @@ Item{
id: removeTask
width: taskIcon.width
height: taskIcon.height
visible: false
LatteCore.IconItem{
//! Shadow
Loader{
id: tempTaskShadow
anchors.fill: tempRemoveIcon
active: taskItem.abilities.myView.itemShadow.isEnabled && graphicsSystem.isAccelerated
sourceComponent: DropShadow{
anchors.fill: parent
color: "#ff080808"
fast: true
samples: 2 * radius
source: tempRemoveIcon
radius: taskItem.abilities.myView.itemShadow.size
verticalOffset: 2
}
}
Kirigami.Icon{
id: tempRemoveIcon
anchors.rightMargin: root.location === PlasmaCore.Types.LeftEdge ? taskItem.abilities.metrics.margin.thickness : 0
anchors.leftMargin: root.location === PlasmaCore.Types.RightEdge ? taskItem.abilities.metrics.margin.thickness : 0
@ -81,26 +99,11 @@ Item{
width: taskIconItem.width
height: width
visible: taskItem.abilities.myView.itemShadow.isEnabled ? false : true
source: taskIconItem.lastValidSourceName
source: taskIconItem.source
}
Loader{
id: tempTaskShadow
anchors.fill: tempRemoveIcon
active: taskItem.abilities.myView.itemShadow.isEnabled && graphicsSystem.isAccelerated
sourceComponent: DropShadow{
anchors.fill: parent
color: "#ff080808"
fast: true
samples: 2 * radius
source: tempRemoveIcon
radius: taskItem.abilities.myView.itemShadow.size
verticalOffset: 2
}
}
Colorize{
source: tempRemoveIcon

Loading…
Cancel
Save