shift-shell/components/mobilehomescreencomponents/qml/private/ScrollIndicator.qml

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

41 lines
939 B
QML
Raw Normal View History

2019-08-28 07:54:27 +00:00
/*
2021-03-01 20:03:25 +00:00
* SPDX-FileCopyrightText: 2015 Marco Martin <mart@kde.org>
2019-08-28 07:54:27 +00:00
*
2021-03-01 20:03:25 +00:00
* SPDX-License-Identifier: GPL-2.0-or-later
2019-08-28 07:54:27 +00:00
*/
import QtQuick 2.4
import QtGraphicalEffects 1.6
import org.kde.plasma.core 2.0 as PlasmaCore
PlasmaCore.SvgItem {
id: scrollIndicator
2019-08-28 07:54:27 +00:00
anchors.verticalCenter: parent.verticalCenter
2019-08-28 07:54:27 +00:00
z: 2
opacity: 0
svg: PlasmaCore.Svg {
imagePath: "widgets/arrows"
colorGroup: PlasmaCore.Theme.ComplementaryColorGroup
}
elementId: "left-arrow"
2021-09-13 16:40:56 +00:00
width: PlasmaCore.Units.iconSizes.large
2019-08-28 07:54:27 +00:00
height: width
layer.enabled: true
layer.effect: DropShadow {
2020-02-12 08:57:40 +00:00
cached: true
2019-08-28 07:54:27 +00:00
horizontalOffset: 0
verticalOffset: 2
radius: 8.0
samples: 16
color: Qt.rgba(0, 0, 0, 0.8)
}
Behavior on opacity {
OpacityAnimator {
2021-09-13 16:40:56 +00:00
duration: PlasmaCore.Units.longDuration * 2
2019-08-28 07:54:27 +00:00
easing.type: Easing.InOutQuad
}
}
}