mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
warnings--
This commit is contained in:
parent
492a3e7dae
commit
fd2531d19a
3 changed files with 5 additions and 6 deletions
|
|
@ -33,7 +33,7 @@ import org.kde.phone.homescreen 1.0
|
|||
ContainmentLayoutManager.ItemContainer {
|
||||
id: delegate
|
||||
|
||||
z: dragging ? 1 : 0
|
||||
z: dragActive ? 1 : 0
|
||||
|
||||
property var modelData: typeof model !== "undefined" ? model : null
|
||||
|
||||
|
|
@ -45,7 +45,7 @@ ContainmentLayoutManager.ItemContainer {
|
|||
rightPadding: units.smallSpacing * 2
|
||||
bottomPadding: units.smallSpacing * 2
|
||||
|
||||
opacity: dragging ? 0.4 : 1
|
||||
opacity: dragActive ? 0.4 : 1
|
||||
|
||||
key: model.ApplicationStorageIdRole
|
||||
property real dragCenterX
|
||||
|
|
@ -113,7 +113,6 @@ ContainmentLayoutManager.ItemContainer {
|
|||
Layout.preferredHeight: Layout.minimumHeight
|
||||
|
||||
source: modelData ? modelData.ApplicationIconRole : ""
|
||||
scale: root.reorderingApps && dragDelegate && !dragging ? 0.6 : 1
|
||||
Behavior on scale {
|
||||
NumberAnimation {
|
||||
duration: units.longDuration
|
||||
|
|
|
|||
|
|
@ -32,9 +32,6 @@ import org.kde.phone.homescreen 1.0
|
|||
LauncherContainer {
|
||||
id: root
|
||||
|
||||
property bool reorderingApps: false
|
||||
|
||||
|
||||
readonly property int cellWidth: root.flow.width / Math.floor(root.flow.width / ((availableCellHeight - reservedSpaceForLabel) + units.smallSpacing*4))
|
||||
readonly property int cellHeight: availableCellHeight
|
||||
|
||||
|
|
|
|||
|
|
@ -256,6 +256,9 @@ Item {
|
|||
id: appletContainer
|
||||
configOverlayComponent: ConfigOverlay {}
|
||||
|
||||
onEditModeChanged: {
|
||||
launcherDragManager.active = editMode;
|
||||
}
|
||||
onDragActiveChanged: {
|
||||
launcherDragManager.active = dragActive;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue