summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Martin <notmart@gmail.com>2015-08-03 16:25:28 (GMT)
committerMarco Martin <notmart@gmail.com>2015-08-03 16:25:28 (GMT)
commit2d21f8a6b5bfcded99c9af273d1de2df7568225a (patch)
tree1faefceec845723e60d331d5faf9588f433e3815
parent511054c4232873705ca8430148de6aed42add8e8 (diff)
restore page shadows
-rw-r--r--active/app/package/contents/ui/FullScreenDelegate.qml48
1 files changed, 44 insertions, 4 deletions
diff --git a/active/app/package/contents/ui/FullScreenDelegate.qml b/active/app/package/contents/ui/FullScreenDelegate.qml
index 504e039..832ca3b 100644
--- a/active/app/package/contents/ui/FullScreenDelegate.qml
+++ b/active/app/package/contents/ui/FullScreenDelegate.qml
@@ -18,6 +18,7 @@
*/
import QtQuick 2.1
+import QtGraphicalEffects 1.0
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.extras 2.0 as PlasmaExtra
import org.kde.plasma.components 2.0 as PlasmaComponents
@@ -81,15 +82,54 @@ MouseEventListener {
width: mainPage.width
color: "white"
- Image {
- source: "image://appbackgrounds/shadow-left"
- fillMode: Image.TileVertically
- opacity: 0.5
+ LinearGradient {
+ width: units.gridUnit/2
anchors {
right: parent.left
top: parent.top
bottom: parent.bottom
}
+ start: Qt.point(0, 0)
+ end: Qt.point(units.gridUnit/2, 0)
+ gradient: Gradient {
+ GradientStop {
+ position: 0.0
+ color: "transparent"
+ }
+ GradientStop {
+ position: 0.7
+ color: Qt.rgba(0, 0, 0, 0.08)
+ }
+ GradientStop {
+ position: 1.0
+ color: Qt.rgba(0, 0, 0, 0.2)
+ }
+ }
+ }
+
+ LinearGradient {
+ width: units.gridUnit/2
+ anchors {
+ left: parent.right
+ top: parent.top
+ bottom: parent.bottom
+ }
+ start: Qt.point(0, 0)
+ end: Qt.point(units.gridUnit/2, 0)
+ gradient: Gradient {
+ GradientStop {
+ position: 0.0
+ color: Qt.rgba(0, 0, 0, 0.2)
+ }
+ GradientStop {
+ position: 0.3
+ color: Qt.rgba(0, 0, 0, 0.08)
+ }
+ GradientStop {
+ position: 1.0
+ color: "transparent"
+ }
+ }
}
Image {
source: "image://appbackgrounds/shadow-right"