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 { Controls.Pane {
id: sendingArea id: sendingArea
enabled: page.deviceConnected enabled: page.deviceConnected
implicitWidth: root.width implicitWidth: root.width
padding: 0 padding: Kirigami.Units.gridUnit * 0.5
wheelEnabled: true wheelEnabled: true
RowLayout { RowLayout {
@ -75,12 +66,7 @@ ColumnLayout {
bottomPadding: topPadding bottomPadding: topPadding
selectByMouse: true selectByMouse: true
hoverEnabled: true hoverEnabled: true
background: MouseArea {
hoverEnabled: true
acceptedButtons: Qt.NoButton
cursorShape: Qt.IBeamCursor
z: 1
}
Keys.onReturnPressed: event => { Keys.onReturnPressed: event => {
if (event.key === Qt.Key_Return) { if (event.key === Qt.Key_Return) {
if (event.modifiers & Qt.ShiftModifier) { 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 {
} }
}
} }