diff options
author | Joakim Bygdell <j.bygdell@gmail.com> | 2017-07-08 19:56:04 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-07-09 03:06:04 +0900 |
commit | 22a0ebe45df47611a4d63d55f16b37c23417903d (patch) | |
tree | 39db1dcd41df37f531192a118e9203b12406ef84 | |
parent | 4698b86b131401d73c70095722c83caa5fe188e8 (diff) | |
download | subsurface-22a0ebe45df47611a4d63d55f16b37c23417903d.tar.gz |
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 <j.bygdell@gmail.com>
-rw-r--r-- | mobile-widgets/qml/DiveDetailsEdit.qml | 19 |
1 files changed, 19 insertions, 0 deletions
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 { |