Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion panels/dock/OverflowContainer.qml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
// SPDX-FileCopyrightText: 2023-2026 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: GPL-3.0-or-later

Expand All @@ -16,6 +16,9 @@ Item {
property alias remove: listView.remove
property alias move: listView.move
property alias displaced: listView.displaced
property alias addDisplaced: listView.addDisplaced
property alias removeDisplaced: listView.removeDisplaced
property alias moveDisplaced: listView.moveDisplaced
ListView {
id: listView
anchors.fill: parent
Expand Down
52 changes: 49 additions & 3 deletions panels/dock/taskmanager/package/TaskManager.qml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
// SPDX-FileCopyrightText: 2023-2026 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: GPL-3.0-or-later

Expand Down Expand Up @@ -68,6 +68,14 @@ ContainmentItem {
remainingSpace: taskmanager.remainingSpacesForSplitWindow
font.family: D.DTK.fontManager.t6.family
font.pixelSize: Math.max(10, Math.min(20, Math.round(textCalculator.iconSize * 0.35)))
onOptimalSingleTextWidthChanged: {
appContainer.addDisplaced = null
appContainer.removeDisplaced = null
Qt.callLater(function() {
appContainer.addDisplaced = addDisplacedTransition
appContainer.removeDisplaced = removeDisplacedTransition
})
}
}

OverflowContainer {
Expand All @@ -83,7 +91,7 @@ ContainmentItem {
duration: 200
}
}
displaced: Transition {
moveDisplaced: Transition {
NumberAnimation {
properties: "x,y"
easing.type: Easing.OutQuad
Expand All @@ -99,7 +107,45 @@ ContainmentItem {
duration: 200
}
}
move: displaced
addDisplaced: Transition {
id: addDisplacedTransition
NumberAnimation {
properties: "x,y"
easing.type: Easing.OutQuad
}
NumberAnimation {
properties: "scale"
from: 0
to: 1
duration: 200
}
NumberAnimation {
properties: "opacity"
from: 0
to: 1
duration: 200
}
}
removeDisplaced: Transition {
id: removeDisplacedTransition
NumberAnimation {
properties: "x,y"
easing.type: Easing.OutQuad
}
NumberAnimation {
properties: "scale"
from: 0
to: 1
duration: 200
}
NumberAnimation {
properties: "opacity"
from: 0
to: 1
duration: 200
}
}
move: moveDisplaced
model: DelegateModel {
id: visualModel
model: taskmanager.Applet.dataModel
Expand Down
Loading