aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/imports/controls/material/CheckBox.qml7
-rw-r--r--src/imports/controls/material/RadioButton.qml7
-rw-r--r--src/imports/controls/material/Switch.qml16
3 files changed, 18 insertions, 12 deletions
diff --git a/src/imports/controls/material/CheckBox.qml b/src/imports/controls/material/CheckBox.qml
index 939d5a31..e7fbadaa 100644
--- a/src/imports/controls/material/CheckBox.qml
+++ b/src/imports/controls/material/CheckBox.qml
@@ -50,8 +50,11 @@ T.CheckBox {
indicator ? indicator.implicitHeight : 0) + topPadding + bottomPadding)
baselineOffset: label ? label.y + label.baselineOffset : 0
- padding: 6
- spacing: 6
+ spacing: 8
+ topPadding: 14
+ leftPadding: 8
+ rightPadding: 8
+ bottomPadding: 14
//! [indicator]
indicator: Rectangle {
diff --git a/src/imports/controls/material/RadioButton.qml b/src/imports/controls/material/RadioButton.qml
index 96605311..25d91a5c 100644
--- a/src/imports/controls/material/RadioButton.qml
+++ b/src/imports/controls/material/RadioButton.qml
@@ -50,8 +50,11 @@ T.RadioButton {
indicator ? indicator.implicitHeight : 0) + topPadding + bottomPadding)
baselineOffset: label ? label.y + label.baselineOffset : 0
- padding: 6
- spacing: 6
+ spacing: 8
+ topPadding: 14
+ leftPadding: 8
+ rightPadding: 8
+ bottomPadding: 14
//! [indicator]
indicator: Rectangle {
diff --git a/src/imports/controls/material/Switch.qml b/src/imports/controls/material/Switch.qml
index 7c8e4395..f44fb31a 100644
--- a/src/imports/controls/material/Switch.qml
+++ b/src/imports/controls/material/Switch.qml
@@ -51,20 +51,20 @@ T.Switch {
indicator ? indicator.implicitHeight : 0) + topPadding + bottomPadding)
baselineOffset: label ? label.y + label.baselineOffset : 0
- padding: 6
- spacing: 6
+ padding: 8
+ spacing: 8
//! [indicator]
indicator: Item {
x: text ? (control.mirrored ? control.width - width - control.rightPadding : control.leftPadding) : control.leftPadding + (control.availableWidth - width) / 2
y: control.topPadding + (control.availableHeight - height) / 2
- implicitWidth: 40
- implicitHeight: 20
+ implicitWidth: 38
+ implicitHeight: 32
Ripple {
x: handle.x + handle.width / 2 - width / 2
y: handle.y + handle.height / 2 - height / 2
- width: handle.width - 4
+ width: handle.width
height: width
control: control
colored: control.checked
@@ -73,7 +73,7 @@ T.Switch {
Rectangle {
width: parent.width
- height: 16
+ height: 14
radius: height / 2
y: parent.height / 2 - height / 2
color: control.enabled ? (control.checked ? control.Material.switchCheckedTrackColor : control.Material.switchUncheckedTrackColor)
@@ -84,8 +84,8 @@ T.Switch {
id: handle
x: Math.max(0, Math.min(parent.width - width, control.visualPosition * parent.width - (width / 2)))
y: (parent.height - height) / 2
- width: 24
- height: 24
+ width: 20
+ height: 20
radius: width / 2
color: control.enabled ? (control.checked ? control.Material.switchCheckedHandleColor : control.Material.switchUncheckedHandleColor)
: control.Material.switchDisabledHandleColor