diff options
author | Joakim Bygdell <j.bygdell@gmail.com> | 2017-07-15 16:27:12 +0200 |
---|---|---|
committer | Joakim Bygdell <j.bygdell@gmail.com> | 2017-07-15 16:27:34 +0200 |
commit | b889bf117dca8ae01be9edc13d1236c31f0b0f7f (patch) | |
tree | 9c22792f62529f2de18faebf1397aa66c9ab34b8 /mobile-widgets/qml/DownloadedDiveDelegate.qml | |
parent | 60b64ceca4cdfdabefcb4951fb8ba8f8a4aa2d54 (diff) | |
download | subsurface-b889bf117dca8ae01be9edc13d1236c31f0b0f7f.tar.gz |
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 <j.bygdell@gmail.com>
Diffstat (limited to 'mobile-widgets/qml/DownloadedDiveDelegate.qml')
-rw-r--r-- | mobile-widgets/qml/DownloadedDiveDelegate.qml | 20 |
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 |