QML UI: replace all checkboxes with our own

As per title, helps simplify theme modifications.

Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
This commit is contained in:
Joakim Bygdell 2017-07-24 20:29:32 +02:00 committed by Dirk Hohndel
parent fe425924e4
commit ae33422ede
2 changed files with 2 additions and 41 deletions

View file

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