mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-27 14:33:08 +00:00
qml mockups usable with qmlscene, non functional but to be used purely for discussion about workflow
23 lines
591 B
QML
23 lines
591 B
QML
|
|
import QtQuick 2.1
|
|
|
|
Rectangle {
|
|
id: cardRoot
|
|
color: "red"
|
|
width: parent.width
|
|
height: parent.height
|
|
y: Math.max(Math.min((height - root.cardMargins * (parent.children.length - step)), (root.scrollValue + height * step)),
|
|
root.cardMargins*step)
|
|
property int step: 0
|
|
property bool current: root.scrollValue + 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"
|
|
}
|
|
}
|