shift-shell/containments/homescreens/folio/package/contents/ui/private/ScrollIndicator.qml
Marco Martin d719f407dd Port away from using colorGroup property directly in svg items
SvgItem and FrameSvgItem automatically follow the colorSet of
Kirigami.Theme and to set a custom one the usual inherit api is used

https://invent.kde.org/frameworks/ksvg/-/merge_requests/22 removes those properties
2023-09-05 16:18:47 +00:00

42 lines
957 B
QML

/*
* SPDX-FileCopyrightText: 2015 Marco Martin <mart@kde.org>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
import QtQuick 2.4
import Qt5Compat.GraphicalEffects
import org.kde.ksvg 1.0 as KSvg
import org.kde.kirigami 2.20 as Kirigami
KSvg.SvgItem {
id: scrollIndicator
anchors.verticalCenter: parent.verticalCenter
z: 2
opacity: 0
Kirigami.Theme.colorSet: Kirigami.Theme.Complementary
Kirigami.Theme.inherit: false
imagePath: "widgets/arrows"
elementId: "left-arrow"
width: Kirigami.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: Kirigami.Units.longDuration * 2
easing.type: Easing.InOutQuad
}
}
}