aboutsummaryrefslogtreecommitdiffstats
path: root/src/quickcontrols/material/Pane.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/quickcontrols/material/Pane.qml')
-rw-r--r--src/quickcontrols/material/Pane.qml6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/quickcontrols/material/Pane.qml b/src/quickcontrols/material/Pane.qml
index a6e0ae5b33..80385a073f 100644
--- a/src/quickcontrols/material/Pane.qml
+++ b/src/quickcontrols/material/Pane.qml
@@ -15,14 +15,16 @@ T.Pane {
contentHeight + topPadding + bottomPadding)
padding: 12
+ Material.roundedScale: control.Material.elevation > 0 ? Material.ExtraSmallScale : Material.NotRounded
background: Rectangle {
color: control.Material.backgroundColor
- radius: control.Material.elevation > 0 ? 2 : 0
+ radius: control.Material.roundedScale
layer.enabled: control.enabled && control.Material.elevation > 0
- layer.effect: ElevationEffect {
+ layer.effect: RoundedElevationEffect {
elevation: control.Material.elevation
+ roundedScale: control.background.radius
}
}
}