mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
qml mockups usable with qmlscene, non functional but to be used purely for discussion about workflow
23 lines
583 B
QML
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"
|
|
}
|
|
}
|