Rename SendBox to Composer

This commit is contained in:
miruka
2019-08-27 23:03:52 -04:00
parent 97b1608bcb
commit 399a35dacb
4 changed files with 15 additions and 16 deletions

View File

@@ -7,7 +7,7 @@ import "RoomSidePane"
HSplitView {
id: chatSplitView
Component.onCompleted: sendBox.setFocus()
Component.onCompleted: composer.setFocus()
HColumnLayout {
Layout.fillWidth: true
@@ -30,8 +30,8 @@ HSplitView {
Layout.fillWidth: true
}
SendBox {
id: sendBox
Composer {
id: composer
visible: ! inviteBanner.visible && ! leftBanner.visible
}

View File

@@ -45,12 +45,12 @@ Rectangle {
// "ltuc <" + lineTextUntilCursor + ">", "dob",
// deleteCharsOnBackspace, "m", lineTextUntilCursor.match(/^ +$/))
id: sendBox
id: composer
Layout.fillWidth: true
Layout.minimumHeight: theme.baseElementsHeight
Layout.preferredHeight: areaScrollView.implicitHeight
Layout.maximumHeight: pageLoader.height / 2
color: theme.chat.sendBox.background
color: theme.chat.composer.background
HRowLayout {
anchors.fill: parent
@@ -65,7 +65,7 @@ Rectangle {
HScrollableTextArea {
Layout.fillHeight: true
Layout.fillWidth: true
Layout.topMargin: Math.max(0, sendBox.Layout.minimumHeight - 34)
Layout.topMargin: Math.max(0, composer.Layout.minimumHeight - 34)
id: areaScrollView
placeholderText: qsTr("Type a message...")

View File

@@ -282,5 +282,5 @@ chat:
typingMembers:
color background: colors.mediumBackground
sendBox:
composer:
color background: colors.strongBackground