Rename SendBox to Composer
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
@@ -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...")
|
@@ -282,5 +282,5 @@ chat:
|
||||
typingMembers:
|
||||
color background: colors.mediumBackground
|
||||
|
||||
sendBox:
|
||||
composer:
|
||||
color background: colors.strongBackground
|
||||
|
Reference in New Issue
Block a user