smsapp: revert the custom style of compose message area to default kirigami TextArea
This commit is contained in:
parent
251ea971c5
commit
22a9571cfb
1 changed files with 147 additions and 154 deletions
|
@ -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 {
|
|||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue