|
|
|
@ -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
|
|
|
|
|