smsapp: Use Kirigami.ShadowedRectangle instead of DropShadow

Deprecated, allows to remove Qt5Compat import.
This commit is contained in:
Mike Noe 2024-03-14 18:57:54 -04:00
parent c469cdee88
commit 8b65e48b7f

View file

@ -9,7 +9,6 @@ import QtCore
import QtQuick.Controls as Controls import QtQuick.Controls as Controls
import QtQuick.Layouts import QtQuick.Layouts
import org.kde.kirigami as Kirigami import org.kde.kirigami as Kirigami
import Qt5Compat.GraphicalEffects
import QtQuick.Dialogs import QtQuick.Dialogs
import org.kde.kdeconnect.sms import org.kde.kdeconnect.sms
@ -41,22 +40,21 @@ 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
layer.enabled: sendingArea.enabled implicitWidth: root.width
layer.effect: DropShadow {
verticalOffset: 1
color: Kirigami.Theme.disabledTextColor
samples: 20
spread: 0.3
}
Layout.fillWidth: true
padding: 0 padding: 0
wheelEnabled: true wheelEnabled: true
background: Rectangle {
color: Kirigami.Theme.backgroundColor
}
RowLayout { RowLayout {
anchors.fill: parent anchors.fill: parent
@ -202,5 +200,9 @@ ColumnLayout {
} }
} }
} }
} }
}
} }