2021-10-18 18:56:37 +00:00
|
|
|
/*
|
|
|
|
|
* SPDX-FileCopyrightText: 2021 Marco Martin <mart@kde.org>
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
import QtQuick 2.15
|
2023-07-25 01:13:52 +00:00
|
|
|
import org.kde.kirigami 2.20 as Kirigami
|
2021-10-18 18:56:37 +00:00
|
|
|
|
|
|
|
|
Item {
|
|
|
|
|
Behavior on opacity {
|
|
|
|
|
OpacityAnimator {
|
2023-07-25 01:13:52 +00:00
|
|
|
duration: Kirigami.Units.longDuration * 2
|
2021-10-18 18:56:37 +00:00
|
|
|
easing.type: Easing.InOutQuad
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
|
anchors {
|
|
|
|
|
left: parent.left
|
|
|
|
|
right: parent.right
|
|
|
|
|
bottom: parent.bottom
|
2023-07-25 01:13:52 +00:00
|
|
|
leftMargin: Kirigami.Units.gridUnit + root.leftPadding
|
|
|
|
|
rightMargin: Kirigami.Units.gridUnit + root.rightPadding
|
2021-10-18 18:56:37 +00:00
|
|
|
}
|
|
|
|
|
height: 1
|
|
|
|
|
gradient: Gradient {
|
|
|
|
|
orientation: Gradient.Horizontal
|
|
|
|
|
GradientStop { position: 0.0; color: Qt.rgba(1, 1, 1, 0) }
|
|
|
|
|
GradientStop { position: 0.15; color: Qt.rgba(1, 1, 1, 0.5) }
|
|
|
|
|
GradientStop { position: 0.5; color: Qt.rgba(1, 1, 1, 1) }
|
|
|
|
|
GradientStop { position: 0.85; color: Qt.rgba(1, 1, 1, 0.5) }
|
|
|
|
|
GradientStop { position: 1.0; color: Qt.rgba(1, 1, 1, 0) }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|