diff options
Diffstat (limited to 'mobile-widgets/qml/Settings.qml')
-rw-r--r-- | mobile-widgets/qml/Settings.qml | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/mobile-widgets/qml/Settings.qml b/mobile-widgets/qml/Settings.qml index 8669c3bb1..f3418e01f 100644 --- a/mobile-widgets/qml/Settings.qml +++ b/mobile-widgets/qml/Settings.qml @@ -308,41 +308,6 @@ Kirigami.ScrollablePage { } } - Kirigami.Label { - text: qsTr("Run location service") - Layout.alignment: Qt.AlignRight - Layout.preferredWidth: gridWidth * 0.75 - } - Switch { - id: locationButton - Layout.preferredWidth: gridWidth * 0.25 - visible: manager.locationServiceAvailable - checked: manager.locationServiceEnabled - onClicked: { - manager.locationServiceEnabled = checked - } - indicator: Rectangle { - implicitWidth: Kirigami.Units.largeSpacing * 3 - implicitHeight: Kirigami.Units.largeSpacing - x: locationButton.leftPadding - y: parent.height / 2 - height / 2 - radius: Kirigami.Units.largeSpacing * 0.5 - color: locationButton.checked ? - subsurfaceTheme.lightPrimaryColor : subsurfaceTheme.backgroundColor - border.color: subsurfaceTheme.darkerPrimaryColor - - Rectangle { - x: locationButton.checked ? parent.width - width : 0 - y: parent.height / 2 - height / 2 - width: Kirigami.Units.largeSpacing * 1.5 - height: Kirigami.Units.largeSpacing * 1.5 - radius: height / 2 - color: locationButton.down || locationButton.checked ? - subsurfaceTheme.primaryColor : subsurfaceTheme.lightPrimaryColor - border.color: subsurfaceTheme.darkerPrimaryColor - } - } - } } Rectangle { color: subsurfaceTheme.darkerPrimaryColor |