mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
Move most of the homescreen pieces in a QML import that can be reused making it easier to do alternative homescreens
40 lines
917 B
QML
40 lines
917 B
QML
/*
|
|
* SPDX-FileCopyrightText: 2015 Marco Martin <mart@kde.org>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
import QtQuick 2.4
|
|
import QtGraphicalEffects 1.6
|
|
import org.kde.plasma.core 2.0 as PlasmaCore
|
|
|
|
PlasmaCore.SvgItem {
|
|
id: scrollIndicator
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
|
|
z: 2
|
|
opacity: 0
|
|
svg: PlasmaCore.Svg {
|
|
imagePath: "widgets/arrows"
|
|
colorGroup: PlasmaCore.Theme.ComplementaryColorGroup
|
|
}
|
|
elementId: "left-arrow"
|
|
width: units.iconSizes.large
|
|
height: width
|
|
layer.enabled: true
|
|
layer.effect: DropShadow {
|
|
cached: true
|
|
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
|
|
}
|
|
}
|
|
}
|