Replace pull menu with header icon; more dialogs

This commit is contained in:
Thomas Perl 2014-03-15 20:06:48 +01:00
parent 96cbdd4b64
commit debc6519be
17 changed files with 121 additions and 201 deletions

View file

@ -27,15 +27,9 @@ Rectangle {
color: Constants.colors.page
default property alias children: dragging.children
property alias hasPull: dragging.hasPull
property alias canClose: dragging.canClose
property real pullPhase: (x >= 0) ? 0 : (-x / (width / 4))
property bool isDialog: false
function unPull() {
stacking.fadeInAgain();
}
function closePage() {
stacking.startFadeOut();
}
@ -52,19 +46,6 @@ Rectangle {
stacking: stacking
}
Rectangle {
color: Constants.colors.page
anchors.fill: parent
opacity: page.pullPhase * 0.9
MouseArea {
enabled: parent.opacity > 0
anchors.fill: parent
onClicked: page.unPull();
}
}
Image {
anchors {
right: parent.left