QML UI: style the GPS services checkbox

This adds style to the GPS services checkbox so that it matches the theme.

Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
This commit is contained in:
Joakim Bygdell 2017-07-15 16:28:54 +02:00
parent b889bf117d
commit 0c31167e72

View file

@ -287,6 +287,25 @@ if you have network connectivity and want to sync your data to cloud storage."),
onCheckedChanged: { onCheckedChanged: {
manager.locationServiceEnabled = checked; manager.locationServiceEnabled = checked;
} }
indicator: Rectangle {
implicitWidth: 20
implicitHeight: 20
x: locationCheckbox.leftPadding
y: parent.height / 2 - height / 2
radius: 4
border.color: locationCheckbox.down ? subsurfaceTheme.PrimaryColor : subsurfaceTheme.darkerPrimaryColor
color: subsurfaceTheme.drawerColor
Rectangle {
width: 12
height: 12
x: 4
y: 4
radius: 3
color: locationCheckbox.down ? subsurfaceTheme.PrimaryColor : subsurfaceTheme.darkerPrimaryColor
visible: locationCheckbox && locationCheckbox.checked
}
}
} }
Kirigami.Label { Kirigami.Label {
x: Kirigami.Units.gridUnit * 1.5 x: Kirigami.Units.gridUnit * 1.5