aboutsummaryrefslogtreecommitdiffstats
path: root/src/quickcontrols/material/DialogButtonBox.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/quickcontrols/material/DialogButtonBox.qml')
-rw-r--r--src/quickcontrols/material/DialogButtonBox.qml7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/quickcontrols/material/DialogButtonBox.qml b/src/quickcontrols/material/DialogButtonBox.qml
index dad1601931..55b2011c83 100644
--- a/src/quickcontrols/material/DialogButtonBox.qml
+++ b/src/quickcontrols/material/DialogButtonBox.qml
@@ -22,6 +22,7 @@ T.DialogButtonBox {
buttonLayout: T.DialogButtonBox.AndroidLayout
Material.foreground: Material.accent
+ Material.roundedScale: Material.ExtraLargeScale
delegate: Button { flat: true }
@@ -36,11 +37,11 @@ T.DialogButtonBox {
background: PaddedRectangle {
implicitHeight: control.Material.dialogButtonBoxHeight
- radius: 2
+ radius: control.Material.roundedScale
color: control.Material.dialogColor
// Rounded corners should be only at the top or at the bottom
- topPadding: control.position === T.DialogButtonBox.Footer ? -2 : 0
- bottomPadding: control.position === T.DialogButtonBox.Header ? -2 : 0
+ topPadding: control.position === T.DialogButtonBox.Footer ? -radius : 0
+ bottomPadding: control.position === T.DialogButtonBox.Header ? -radius : 0
clip: true
}
}