qml swap send and receive buttons, move menu button to bottom button group
This commit is contained in:
@@ -160,11 +160,13 @@ Item {
|
|||||||
spacing: 0
|
spacing: 0
|
||||||
|
|
||||||
FlatButton {
|
FlatButton {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: false
|
||||||
Layout.preferredWidth: 1
|
Layout.preferredWidth: implicitHeight
|
||||||
icon.source: '../../icons/tab_send.png'
|
text: qsTr('≡')
|
||||||
text: qsTr('Send')
|
onClicked: {
|
||||||
onClicked: openSendDialog()
|
mainView.menu.open()
|
||||||
|
mainView.menu.y = mainView.height - mainView.menu.height
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Rectangle {
|
Rectangle {
|
||||||
Layout.fillWidth: false
|
Layout.fillWidth: false
|
||||||
@@ -183,6 +185,20 @@ Item {
|
|||||||
dialog.open()
|
dialog.open()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Rectangle {
|
||||||
|
Layout.fillWidth: false
|
||||||
|
Layout.preferredWidth: 2
|
||||||
|
Layout.preferredHeight: parent.height * 2/3
|
||||||
|
Layout.alignment: Qt.AlignVCenter
|
||||||
|
color: constants.darkerBackground
|
||||||
|
}
|
||||||
|
FlatButton {
|
||||||
|
Layout.fillWidth: true
|
||||||
|
Layout.preferredWidth: 1
|
||||||
|
icon.source: '../../icons/tab_send.png'
|
||||||
|
text: qsTr('Send')
|
||||||
|
onClicked: openSendDialog()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -36,32 +36,25 @@ ApplicationWindow
|
|||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
spacing: 0
|
spacing: 0
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
height: toolbar.height
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: toolbarTopLayout
|
id: toolbarTopLayout
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.rightMargin: constants.paddingMedium
|
Layout.rightMargin: constants.paddingMedium
|
||||||
|
Layout.alignment: Qt.AlignVCenter
|
||||||
|
|
||||||
ToolButton {
|
Item {
|
||||||
id: menuButton
|
Layout.preferredWidth: constants.paddingXLarge
|
||||||
enabled: stack.currentItem && stack.currentItem.menu
|
Layout.preferredHeight: 1
|
||||||
? stack.currentItem.menu.count > 0
|
|
||||||
: false
|
|
||||||
|
|
||||||
text: enabled ? qsTr("≡") : ''
|
|
||||||
font.pixelSize: constants.fontSizeXLarge
|
|
||||||
onClicked: {
|
|
||||||
stack.currentItem.menu.open()
|
|
||||||
stack.currentItem.menu.y = toolbarTopLayout.height
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
Layout.preferredHeight: Math.max(implicitHeight, toolbarTopLayout.height)
|
Layout.preferredHeight: Math.max(implicitHeight, toolbarTopLayout.height)
|
||||||
text: stack.currentItem.title
|
text: stack.currentItem.title
|
||||||
elide: Label.ElideRight
|
elide: Label.ElideRight
|
||||||
horizontalAlignment: Qt.AlignHCenter
|
// horizontalAlignment: Qt.AlignHCenter
|
||||||
verticalAlignment: Qt.AlignVCenter
|
verticalAlignment: Qt.AlignVCenter
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
font.pixelSize: constants.fontSizeMedium
|
font.pixelSize: constants.fontSizeMedium
|
||||||
|
|||||||
Reference in New Issue
Block a user