1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-09-14 22:42:34 +02:00

Replace old Qt5Compat with build in Rectangle

This commit is contained in:
Elias Steurer 2023-02-18 14:10:08 +01:00
parent e96b3fd35b
commit 231ee32488
11 changed files with 28 additions and 71 deletions

View File

@ -112,11 +112,9 @@ Item {
}
}
LinearGradient {
Rectangle {
height: 6
z: 99
start: Qt.point(0, 0)
end: Qt.point(0, 6)
anchors {
top: navWrapper.bottom

View File

@ -112,11 +112,8 @@ Item {
}
}
LinearGradient {
Rectangle {
anchors.fill: parent
start: Qt.point(0, 0)
end: Qt.point(0, parent.height)
gradient: Gradient {
GradientStop {
position: 1

View File

@ -33,20 +33,17 @@ Item {
fillMode: Image.PreserveAspectCrop
}
LinearGradient {
Rectangle {
anchors.fill: parent
end: Qt.point(0, 0)
start: Qt.point(0, parent.height * 0.66)
gradient: Gradient {
GradientStop {
position: 0
position: 0.66
color: "#DD000000"
}
GradientStop {
position: 1
color: "#00000000"
position: 0
color: "transparent"
}
}
}

View File

@ -164,26 +164,20 @@ Item {
anchors.fill: parent
}
LinearGradient {
Rectangle {
id: shadow
cached: true
anchors.fill: parent
start: Qt.point(0, height)
end: Qt.point(0, 0)
gradient: Gradient {
GradientStop {
id: gradientStop0
position: 0
position: 1
color: "#DD000000"
}
GradientStop {
id: gradientStop1
position: 1
position: 0
color: "#00000000"
}
}

View File

@ -157,26 +157,19 @@ Item {
anchors.fill: parent
}
LinearGradient {
Rectangle {
id: shadow
cached: true
anchors.fill: parent
start: Qt.point(0, height)
end: Qt.point(0, 0)
gradient: Gradient {
GradientStop {
id: gradientStop0
position: 0
position: 1
color: "#DD000000"
}
GradientStop {
id: gradientStop1
position: 1
position: 0
color: "#00000000"
}
}

View File

@ -157,26 +157,20 @@ Item {
anchors.fill: parent
}
LinearGradient {
Rectangle {
id: shadow
cached: true
anchors.fill: parent
start: Qt.point(0, height)
end: Qt.point(0, 0)
gradient: Gradient {
GradientStop {
id: gradientStop0
position: 0
position: 1
color: "#DD000000"
}
GradientStop {
id: gradientStop1
position: 1
position: 0
color: "#00000000"
}
}

View File

@ -112,17 +112,14 @@ Item {
left: parent.left
}
LinearGradient {
Rectangle {
anchors.fill: parent
start: Qt.point(0, 0)
end: Qt.point(400, 0)
gradient: Gradient {
GradientStop {
position: 0
color: "transparent"
}
GradientStop {
position: 0.1
color: "#AAffffff"
@ -179,13 +176,9 @@ Item {
visible: enabled
}
LinearGradient {
Rectangle {
id: tabShadow
height: 50
cached: true
start: Qt.point(0, 50)
end: Qt.point(0, 0)
height: 70
anchors {
bottom: parent.bottom
@ -195,12 +188,12 @@ Item {
gradient: Gradient {
GradientStop {
position: 0
position: 1
color: "#EE000000"
}
GradientStop {
position: 1
position: 0
color: "#00000000"
}
}

View File

@ -55,7 +55,7 @@ Rectangle {
left: parent.left
}
LinearGradient {
Rectangle {
id: gradient
anchors.fill: parent

View File

@ -90,11 +90,8 @@ Drawer {
anchors.fill: parent
}
LinearGradient {
Rectangle {
height: 50
cached: true
start: Qt.point(0, 50)
end: Qt.point(0, 0)
anchors {
bottom: parent.bottom
@ -104,12 +101,12 @@ Drawer {
gradient: Gradient {
GradientStop {
position: 0
position: 1
color: "#EE000000"
}
GradientStop {
position: 1
position: 0
color: "#00000000"
}
}

View File

@ -149,14 +149,11 @@ Item {
sourceImageGIF: root.additionalPreviewUrl
}
LinearGradient {
Rectangle {
id: shadow
height: 80
opacity: 0
cached: true
start: Qt.point(0, 80)
end: Qt.point(0, 0)
anchors {
bottom: parent.bottom
@ -166,12 +163,12 @@ Item {
gradient: Gradient {
GradientStop {
position: 0
position: 1
color: "#CC000000"
}
GradientStop {
position: 1
position: 0
color: "#00000000"
}
}

View File

@ -403,15 +403,12 @@ Page {
bottom: parent.bottom
}
LinearGradient {
Rectangle {
id: gradient
height: parent.height
cached: true
opacity: 0
anchors.fill: parent
start: Qt.point(0, height)
end: Qt.point(0, 0)
gradient: Gradient {
GradientStop {