summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/DiveDetailsEdit.qml
diff options
context:
space:
mode:
authorGravatar Joakim Bygdell <j.bygdell@gmail.com>2017-07-24 20:29:32 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-26 01:39:26 +0900
commitae33422ede3ec5671d2964de0e2fbcadba43b61b (patch)
tree4ab37dff98ba3b41da1f8dd9bcc6094a1795cfa9 /mobile-widgets/qml/DiveDetailsEdit.qml
parentfe425924e4455f5e3b2525636ce704be9fdcf8e7 (diff)
downloadsubsurface-ae33422ede3ec5671d2964de0e2fbcadba43b61b.tar.gz
QML UI: replace all checkboxes with our own
As per title, helps simplify theme modifications. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
Diffstat (limited to 'mobile-widgets/qml/DiveDetailsEdit.qml')
-rw-r--r--mobile-widgets/qml/DiveDetailsEdit.qml21
1 files changed, 1 insertions, 20 deletions
diff --git a/mobile-widgets/qml/DiveDetailsEdit.qml b/mobile-widgets/qml/DiveDetailsEdit.qml
index cd08eabb3..e9fdeb62c 100644
--- a/mobile-widgets/qml/DiveDetailsEdit.qml
+++ b/mobile-widgets/qml/DiveDetailsEdit.qml
@@ -114,32 +114,13 @@ Item {
text: qsTr("Use current\nGPS location:")
visible: manager.locationServiceAvailable
}
- CheckBox {
+ SsrfCheckBox {
id: checkboxGPS
visible: manager.locationServiceAvailable
onCheckedChanged: {
if (checked)
gpsText = manager.getCurrentPosition()
}
- indicator: Rectangle {
- implicitWidth: 20
- implicitHeight: 20
- x: checkboxGPS.leftPadding
- y: parent.height / 2 - height / 2
- radius: 4
- border.color: checkboxGPS.down ? subsurfaceTheme.primaryColor : subsurfaceTheme.darkerPrimaryColor
- color: subsurfaceTheme.backgroundColor
-
- Rectangle {
- width: 12
- height: 12
- x: 4
- y: 4
- radius: 3
- color: checkboxGPS.down ? subsurfaceTheme.primaryColor : subsurfaceTheme.darkerPrimaryColor
- visible: checkboxGPS.checked
- }
- }
}
Kirigami.Label {