Prepare message attachments

This commit is contained in:
Sebastian J. Wolf 2020-09-23 23:41:17 +02:00
parent f2284a8fe9
commit e222ab115d

View file

@ -841,15 +841,11 @@ Page {
height: sendMessageColumn.height + Theme.paddingMedium height: sendMessageColumn.height + Theme.paddingMedium
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
Column {
id: sendMessageColumn
width: parent.width - newMessageSendButton.width
anchors.verticalCenter: parent.verticalCenter
TextArea { TextArea {
id: newMessageTextField id: newMessageTextField
width: parent.width width: parent.width - attachmentIconButton.width - newMessageSendButton.width
height: Math.min(chatContainer.height / 3, implicitHeight) height: Math.min(chatContainer.height / 3, implicitHeight)
anchors.verticalCenter: parent.verticalCenter
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
placeholderText: qsTr("Your message") placeholderText: qsTr("Your message")
labelVisible: false labelVisible: false
@ -897,16 +893,20 @@ Page {
} }
} }
} }
}
Column { IconButton {
anchors.bottom: parent.bottom id: attachmentIconButton
anchors.bottomMargin: Theme.paddingSmall icon.source: "image://theme/icon-m-attach"
anchors.verticalCenter: parent.verticalCenter
onClicked: {
}
}
IconButton { IconButton {
id: newMessageSendButton id: newMessageSendButton
icon.source: "image://theme/icon-m-chat" icon.source: "image://theme/icon-m-chat"
anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter
enabled: false enabled: false
onClicked: { onClicked: {
if (newMessageColumn.editMessageId !== "0") { if (newMessageColumn.editMessageId !== "0") {
@ -918,7 +918,7 @@ Page {
newMessageTextField.focus = false; newMessageTextField.focus = false;
} }
} }
}
} }
} }