Replace pull menu with header icon; more dialogs
This commit is contained in:
parent
96cbdd4b64
commit
debc6519be
17 changed files with 121 additions and 201 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue