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>
This commit is contained in:
Joakim Bygdell 2017-07-08 19:56:04 +02:00 committed by Dirk Hohndel
parent 4698b86b13
commit 22a0ebe45d

View file

@ -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 {