diff options
author | Joakim Bygdell <j.bygdell@gmail.com> | 2017-07-15 16:28:54 +0200 |
---|---|---|
committer | Joakim Bygdell <j.bygdell@gmail.com> | 2017-07-15 16:28:58 +0200 |
commit | 0c31167e722368ca8ac24739654b39492b498555 (patch) | |
tree | f91387a3587ea8170a3fdb8a40d6c022c4449005 /mobile-widgets/qml/main.qml | |
parent | b889bf117dca8ae01be9edc13d1236c31f0b0f7f (diff) | |
download | subsurface-0c31167e722368ca8ac24739654b39492b498555.tar.gz |
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>
Diffstat (limited to 'mobile-widgets/qml/main.qml')
-rw-r--r-- | mobile-widgets/qml/main.qml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml index 101e4cb4f..e9d43156a 100644 --- a/mobile-widgets/qml/main.qml +++ b/mobile-widgets/qml/main.qml @@ -287,6 +287,25 @@ if you have network connectivity and want to sync your data to cloud storage."), onCheckedChanged: { 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 { x: Kirigami.Units.gridUnit * 1.5 |