From b889bf117dca8ae01be9edc13d1236c31f0b0f7f Mon Sep 17 00:00:00 2001 From: Joakim Bygdell Date: Sat, 15 Jul 2017 16:27:12 +0200 Subject: QML UI: style the DC download dialog This sets the checkboxes in the dive computer download dialog to match the rest of the theme. Signed-off-by: Joakim Bygdell --- mobile-widgets/qml/DownloadedDiveDelegate.qml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'mobile-widgets/qml') diff --git a/mobile-widgets/qml/DownloadedDiveDelegate.qml b/mobile-widgets/qml/DownloadedDiveDelegate.qml index 630382e34..f6ed3c663 100644 --- a/mobile-widgets/qml/DownloadedDiveDelegate.qml +++ b/mobile-widgets/qml/DownloadedDiveDelegate.qml @@ -36,6 +36,26 @@ Kirigami.AbstractListItem { checked: innerListItem.selected; width: childrenRect.heigh - Kirigami.Units.smallSpacing; height: childrenRect.heigh - Kirigami.Units.smallSpacing; + indicator: Rectangle { + visible: diveIsSelected + implicitWidth: 20 + implicitHeight: 20 + x: isBluetooth.leftPadding + y: parent.height / 2 - height / 2 + radius: 4 + border.color: diveIsSelected.down ? subsurfaceTheme.PrimaryColor : subsurfaceTheme.darkerPrimaryColor + color: subsurfaceTheme.backgroundColor + + Rectangle { + width: 12 + height: 12 + x: 4 + y: 4 + radius: 3 + color: diveIsSelected.down ? subsurfaceTheme.PrimaryColor : subsurfaceTheme.darkerPrimaryColor + visible: diveIsSelected && diveIsSelected.checked + } + } } Item { id: diveListEntry -- cgit v1.2.3-70-g09d2