Commit eecb8f64 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

[Dialog] Use `ShadowedRectangle`

Instead of expensive DropShadow layer.

Differential Revision: https://phabricator.kde.org/D28156
parent b738ebbb
......@@ -21,9 +21,8 @@
import QtQuick 2.6
import QtGraphicalEffects 1.0
import QtQuick.Templates @QQC2_VERSION@ as T
import org.kde.kirigami 2.4 as Kirigami
import org.kde.kirigami 2.12 as Kirigami
T.Dialog {
id: control
......@@ -61,21 +60,17 @@ T.Dialog {
contentItem: Item {}
background: Rectangle {
background: Kirigami.ShadowedRectangle {
radius: 2
color: Kirigami.Theme.backgroundColor
property color borderColor: Kirigami.Theme.textColor
border.color: Qt.rgba(borderColor.r, borderColor.g, borderColor.b, 0.3)
layer.enabled: true
layer.effect: DropShadow {
transparentBorder: true
radius: 16
samples: 16
horizontalOffset: 0
verticalOffset: 4
color: Qt.rgba(0, 0, 0, 0.3)
}
border.width: 1
shadow.xOffset: 0
shadow.yOffset: 4
shadow.color: Qt.rgba(0, 0, 0, 0.3)
shadow.size: 16
}
header: Kirigami.Heading {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment