1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-10 04:58:16 +03:00

rename ParabolicArea to ParabolicEventsArea

--in order to distinguish it from future ParabolicItem
which will be part of Ability Item
This commit is contained in:
Michail Vourlakos 2021-01-30 09:53:06 +02:00
parent 83a83075bd
commit ba94be4612
3 changed files with 8 additions and 14 deletions

View File

@ -667,13 +667,7 @@ Item {
onRunningChanged: {
if(!running){
if (parabolicAreaLoader.active) {
var halfZoom = 1 + ((taskItem.abilities.parabolic.factor.zoom - 1) / 2);
parabolicAreaLoader.item.calculateParabolicScales(taskItem.abilities.metrics.totals.thickness/2);
}
taskItem.animationEnded();
// root.animations--;
}
}
}

View File

@ -591,12 +591,12 @@ Item {
}// Flow with hidden spacers inside
Loader {
id: parabolicAreaLoader
id: parabolicEventsAreaLoader
active: taskItem.abilities.parabolic.isEnabled
width: root.isHorizontal ? taskItem.width : taskItem.abilities.metrics.mask.thickness.zoomedForItems
height: root.isHorizontal ? taskItem.abilities.metrics.mask.thickness.zoomedForItems : taskItem.height
z:10000
sourceComponent: ParabolicArea{}
sourceComponent: ParabolicEventsArea{}
states:[
State{
@ -604,7 +604,7 @@ Item {
when: plasmoid.location === PlasmaCore.Types.TopEdge
AnchorChanges{
target: parabolicAreaLoader
target: parabolicEventsAreaLoader
anchors.horizontalCenter: parent.horizontalCenter; anchors.verticalCenter: undefined;
anchors.right: undefined; anchors.left: undefined; anchors.top: parent.top; anchors.bottom: undefined;
}
@ -614,7 +614,7 @@ Item {
when: plasmoid.location === PlasmaCore.Types.LeftEdge
AnchorChanges{
target: parabolicAreaLoader
target: parabolicEventsAreaLoader
anchors.horizontalCenter: undefined; anchors.verticalCenter: parent.verticalCenter;
anchors.right: undefined; anchors.left: parent.left; anchors.top: undefined; anchors.bottom: undefined;
}
@ -624,7 +624,7 @@ Item {
when: plasmoid.location === PlasmaCore.Types.RightEdge
AnchorChanges{
target: parabolicAreaLoader
target: parabolicEventsAreaLoader
anchors.horizontalCenter: undefined; anchors.verticalCenter: parent.verticalCenter;
anchors.right: parent.right; anchors.left: undefined; anchors.top: undefined; anchors.bottom: undefined;
}
@ -634,7 +634,7 @@ Item {
when: plasmoid.location === PlasmaCore.Types.BottomEdge
AnchorChanges{
target: parabolicAreaLoader
target: parabolicEventsAreaLoader
anchors.horizontalCenter: parent.horizontalCenter; anchors.verticalCenter: undefined;
anchors.right: undefined; anchors.left: undefined; anchors.top: undefined; anchors.bottom: parent.bottom;
}
@ -969,8 +969,8 @@ Item {
mimicParabolicScale = taskItem.abilities.parabolic.factor.zoom;
}
if (parabolicAreaLoader.active) {
parabolicAreaLoader.item.calculateParabolicScales(icList.currentSpot);
if (parabolicEventsAreaLoader.active) {
parabolicEventsAreaLoader.item.calculateParabolicScales(icList.currentSpot);
}
}
}