shift-shell/components/mobilehomescreencomponents/qml/FavoriteStrip.qml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
966 B
QML
Raw Normal View History

2019-08-09 11:39:37 +00:00
/*
2021-03-01 20:03:25 +00:00
* SPDX-FileCopyrightText: 2019 Marco Martin <mart@kde.org>
2019-08-09 11:39:37 +00:00
*
2021-03-01 20:03:25 +00:00
* SPDX-License-Identifier: GPL-2.0-or-later
2019-08-09 11:39:37 +00:00
*/
import QtQuick 2.4
import QtQuick.Layouts 1.1
import QtQuick.Controls 2.3 as Controls
import org.kde.plasma.plasmoid 2.0
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.components 2.0 as PlasmaComponents
import org.kde.kquickcontrolsaddons 2.0
2019-08-16 13:50:37 +00:00
LauncherContainer {
2019-08-09 11:39:37 +00:00
id: root
readonly property int count: flow.width / cellWidth
2019-08-15 11:19:16 +00:00
2019-08-16 13:50:37 +00:00
flow.flow: Flow.TopToBottom
2019-08-15 11:19:16 +00:00
height: visible ? cellHeight : 0
2019-08-22 11:14:28 +00:00
frame.implicitWidth: cellWidth * Math.max(1, flow.children.length) + frame.leftPadding + frame.rightPadding
Behavior on height {
NumberAnimation {
duration: units.longDuration
easing.type: Easing.InOutQuad
}
}
Behavior on opacity {
OpacityAnimator {
duration: units.longDuration * 4
easing.type: Easing.InOutQuad
}
}
2019-08-09 11:39:37 +00:00
}