aboutsummaryrefslogtreecommitdiffstats
path: root/src/quickcontrols/material/Button.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/quickcontrols/material/Button.qml')
-rw-r--r--src/quickcontrols/material/Button.qml7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/quickcontrols/material/Button.qml b/src/quickcontrols/material/Button.qml
index e2bbb58687..c02d9f426a 100644
--- a/src/quickcontrols/material/Button.qml
+++ b/src/quickcontrols/material/Button.qml
@@ -17,10 +17,9 @@ T.Button {
topInset: 6
bottomInset: 6
- verticalPadding: 14
- // https://m3.material.io/components/buttons/specs#256326ad-f934-40e7-b05f-0bcb41aa4382
- leftPadding: !flat ? (!hasIcon ? 24 : 16) : 12
- rightPadding: !flat ? 24 : (!hasIcon ? 12 : 16)
+ verticalPadding: Material.buttonVerticalPadding
+ leftPadding: Material.buttonLeftPadding(flat, hasIcon)
+ rightPadding: Material.buttonRightPadding(flat, hasIcon, text !== "")
spacing: 8
icon.width: 24