shift-shell/prototypes/cards2/Card.qml
Marco Martin e0b9dc2142 a couple of prototypes for the homescreen
qml mockups usable with qmlscene, non functional
but to be used purely for discussion about workflow
2015-02-19 17:24:49 +01:00

23 lines
583 B
QML

import QtQuick 2.1
Rectangle {
id: cardRoot
color: "red"
width: root.width
height: root.height
y: Math.max(Math.min((height - root.cardMargins * (parent.children.length - step)), (-root.contentY + height * step)),
root.cardMargins*step)
property int step: 0
property bool current: -root.contentY + cardRoot.height * step == 0
Image {
anchors {
left: parent.left
right: parent.right
bottom: parent.top
}
opacity: (root.cardMargins/20)*0.4
source: "top-shadow.png"
}
}