summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/DownloadedDiveDelegate.qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-17 07:39:48 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-17 07:39:48 -0700
commitc7e284369a4ca656460e6aa9532d0971f6a44ba7 (patch)
treee92556a06c8fa0c579c9405cd9a9cfbe9c042a39 /mobile-widgets/qml/DownloadedDiveDelegate.qml
parent695be281c0eac76b6a11a08e620376ce5dcab54e (diff)
parenta4e3a4cb255e5112bd09a918dba9959f2caba120 (diff)
downloadsubsurface-c7e284369a4ca656460e6aa9532d0971f6a44ba7.tar.gz
Merge branch 'MobileUI' of git://github.com/jbygdell/subsurface
Diffstat (limited to 'mobile-widgets/qml/DownloadedDiveDelegate.qml')
-rw-r--r--mobile-widgets/qml/DownloadedDiveDelegate.qml20
1 files changed, 20 insertions, 0 deletions
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