smsapp: revert the custom style of compose message area to default kirigami TextArea

This commit is contained in:
Darshan Phaldesai 2024-10-05 18:27:25 +00:00 committed by Albert Vaca Cintora
parent 251ea971c5
commit 22a9571cfb

View file

@ -40,20 +40,11 @@ ColumnLayout {
}
}
Kirigami.ShadowedRectangle {
implicitHeight: sendingArea.height
implicitWidth: sendingArea.width
color: "transparent"
shadow {
size: Math.round(Kirigami.Units.largeSpacing*1.5)
color: Kirigami.Theme.disabledTextColor
}
Controls.Pane {
id: sendingArea
enabled: page.deviceConnected
implicitWidth: root.width
padding: 0
padding: Kirigami.Units.gridUnit * 0.5
wheelEnabled: true
RowLayout {
@ -75,12 +66,7 @@ ColumnLayout {
bottomPadding: topPadding
selectByMouse: true
hoverEnabled: true
background: MouseArea {
hoverEnabled: true
acceptedButtons: Qt.NoButton
cursorShape: Qt.IBeamCursor
z: 1
}
Keys.onReturnPressed: event => {
if (event.key === Qt.Key_Return) {
if (event.modifiers & Qt.ShiftModifier) {
@ -93,6 +79,14 @@ ColumnLayout {
}
}
}
MouseArea {
anchors.fill : parent
hoverEnabled: true
acceptedButtons: Qt.NoButton
cursorShape: Qt.IBeamCursor
z: 1
}
}
}
@ -205,6 +199,5 @@ ColumnLayout {
}
}
}