This commit is contained in:
Black Hat
2018-09-22 12:36:10 +08:00
parent 7cda6ac325
commit 04d4854352
2 changed files with 31 additions and 53 deletions

View File

@@ -37,7 +37,7 @@ Page {
spacing: 8
SwipeDelegate {
ItemDelegate {
width: accountSettingsListView.width
height: 64
@@ -67,23 +67,6 @@ Page {
}
}
swipe.right: Rectangle {
width: parent.height
height: parent.height
anchors.right: parent.right
color: Material.accent
MaterialIcon {
anchors.fill: parent
icon: "\ue879"
color: "white"
}
SwipeDelegate.onClicked: spectralController.logout(connection)
}
onClicked: expanded = !expanded
}
@@ -164,6 +147,15 @@ Page {
}
}
Button {
Layout.fillWidth: true
highlighted: true
text: "Logout"
onClicked: spectralController.logout(connection)
}
Behavior on height {
PropertyAnimation { easing.type: Easing.InOutCubic; duration: 200 }
}