Port away from Qt5Compat.GraphicalEffects

This commit is contained in:
Volker Krause 2024-04-03 18:28:01 +02:00 committed by Albert Astals Cid
parent c9b1badea2
commit 8bc7d0acd6
2 changed files with 5 additions and 9 deletions

View File

@ -7,7 +7,6 @@
import QtQuick 2.15
import QtQuick.Layouts 1.15
import QtQuick.Controls 2.15 as QQC2
import Qt5Compat.GraphicalEffects
import org.kde.okular 2.0 as Okular
import org.kde.kirigami 2.17 as Kirigami

View File

@ -4,8 +4,7 @@
SPDX-License-Identifier: GPL-2.0-or-later
*/
import QtQuick 2.15
import Qt5Compat.GraphicalEffects
import QtQuick
import org.kde.okular 2.0
import org.kde.kirigami 2.17 as Kirigami
@ -42,16 +41,15 @@ Item {
z: -1
color: "white"
LinearGradient {
Rectangle {
width: Kirigami.Units.gridUnit
anchors {
right: parent.left
top: parent.top
bottom: parent.bottom
}
start: Qt.point(0, 0)
end: Qt.point(Kirigami.Units.gridUnit, 0)
gradient: Gradient {
orientation: Gradient.Horizontal
GradientStop {
position: 0.0
color: "transparent"
@ -67,16 +65,15 @@ Item {
}
}
LinearGradient {
Rectangle {
width: Kirigami.Units.gridUnit
anchors {
left: parent.right
top: parent.top
bottom: parent.bottom
}
start: Qt.point(0, 0)
end: Qt.point(Kirigami.Units.gridUnit, 0)
gradient: Gradient {
orientation: Gradient.Horizontal
GradientStop {
position: 0.0
color: Qt.rgba(0, 0, 0, 0.2)