diff options
Diffstat (limited to 'src/imports/controls/material/Switch.qml')
-rw-r--r-- | src/imports/controls/material/Switch.qml | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/imports/controls/material/Switch.qml b/src/imports/controls/material/Switch.qml index 6e612d40..d2658de6 100644 --- a/src/imports/controls/material/Switch.qml +++ b/src/imports/controls/material/Switch.qml @@ -89,12 +89,6 @@ T.Switch { radius: width / 2 color: control.enabled ? (control.checked ? control.Material.switchCheckedHandleColor : control.Material.switchUncheckedHandleColor) : control.Material.switchDisabledHandleColor - layer.enabled: true - layer.effect: DropShadow { - verticalOffset: 1 - color: control.Material.dropShadowColor - spread: 0.3 - } Behavior on x { enabled: !control.pressed @@ -103,6 +97,18 @@ T.Switch { } } } + + DropShadow { + x: handle.x + y: handle.y + width: handle.width + height: handle.height + source: handle + verticalOffset: 1 + color: control.Material.dropShadowColor + spread: 0.3 + } + } //! [indicator] |