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 {
|
2021-02-15 10:44:48 +00:00
|
|
|
id: scrollIndicator
|
2019-08-28 07:54:27 +00:00
|
|
|
|
2021-02-15 10:44:48 +00:00
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
2019-08-28 07:54:27 +00:00
|
|
|
|
|
|
|
|
z: 2
|
|
|
|
|
opacity: 0
|
2021-03-26 16:21:30 +00:00
|
|
|
svg: PlasmaCore.Svg {
|
|
|
|
|
imagePath: "widgets/arrows"
|
|
|
|
|
colorGroup: PlasmaCore.Theme.ComplementaryColorGroup
|
|
|
|
|
}
|
2021-02-15 10:44:48 +00:00
|
|
|
elementId: "left-arrow"
|
2019-08-28 07:54:27 +00:00
|
|
|
width: units.iconSizes.large
|
|
|
|
|
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 {
|
|
|
|
|
duration: units.longDuration * 2
|
|
|
|
|
easing.type: Easing.InOutQuad
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|