From 0c31167e722368ca8ac24739654b39492b498555 Mon Sep 17 00:00:00 2001 From: Joakim Bygdell Date: Sat, 15 Jul 2017 16:28:54 +0200 Subject: 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 --- mobile-widgets/qml/main.qml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'mobile-widgets/qml') 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 -- cgit v1.2.3-70-g09d2