From 22a0ebe45df47611a4d63d55f16b37c23417903d Mon Sep 17 00:00:00 2001 From: Joakim Bygdell Date: Sat, 8 Jul 2017 19:56:04 +0200 Subject: QML UI: Style the gps checkbox Style the gps checkbos on the dive edit page so it follows theme coloring. Signed-off-by: Joakim Bygdell --- mobile-widgets/qml/DiveDetailsEdit.qml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'mobile-widgets/qml') diff --git a/mobile-widgets/qml/DiveDetailsEdit.qml b/mobile-widgets/qml/DiveDetailsEdit.qml index d7847cb56..aae436cfe 100644 --- a/mobile-widgets/qml/DiveDetailsEdit.qml +++ b/mobile-widgets/qml/DiveDetailsEdit.qml @@ -121,6 +121,25 @@ Item { 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 { -- cgit v1.2.3-70-g09d2