diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-06-20 16:21:47 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-06-20 16:21:47 -0700 |
commit | fd5cd5ebf06d76216557463e6a42c5681b748ba1 (patch) | |
tree | a096dc98f3f6dfd327283051352a3ab6b670184c /mobile-widgets/qml/DiveList.qml | |
parent | 7a6f87405ab2695022248d01cb9df3f11338177b (diff) | |
download | subsurface-fd5cd5ebf06d76216557463e6a42c5681b748ba1.tar.gz |
QML UI: DiveList: playing with different colors
Make the accent color much lighter, don't have a solid bar on the left
for dives that are part of a trip.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/DiveList.qml')
-rw-r--r-- | mobile-widgets/qml/DiveList.qml | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml index 7829e0aec..a2cb70651 100644 --- a/mobile-widgets/qml/DiveList.qml +++ b/mobile-widgets/qml/DiveList.qml @@ -52,12 +52,17 @@ Kirigami.ScrollablePage { Item { Rectangle { id: leftBarDive - height: diveListEntry.height + Kirigami.Units.smallSpacing - width: dive.tripMeta == "" ? 0 : Kirigami.Units.gridUnit * 1 + width: dive.tripMeta == "" ? 0 : Kirigami.Units.gridUnit + height: Kirigami.Units.gridUnit color: subsurfaceTheme.accentColor + antialiasing: true + radius: Kirigami.Units.smallSpacing * 2 anchors { left: parent.left top: parent.top + topMargin: Kirigami.Units.gridUnit + bottomMargin: Kirigami.Units.gridUnit + leftMargin: Kirigami.Units.smallSpacing * 2 } } Item { @@ -158,25 +163,14 @@ Kirigami.ScrollablePage { width: page.width - Kirigami.Units.gridUnit height: childrenRect.height - Kirigami.Units.smallSpacing Rectangle { - id: leftBar - width: Kirigami.Units.gridUnit * 1 - color: subsurfaceTheme.accentColor - visible: section != "" - anchors { - left: parent.left - top: headingBackground.top - bottom: headingBackground.bottom - } - } - Rectangle { id: headingBackground height: section == "" ? 0 : Kirigami.Units.gridUnit * 2.5 anchors { - left: leftBar.right + left: parent.left right: parent.right rightMargin: Kirigami.Units.gridUnit * -2 } - color: subsurfaceTheme.darkBackgroundColor + color: subsurfaceTheme.accentColor visible: section != "" Kirigami.Label { id: sectionText @@ -199,7 +193,7 @@ Kirigami.ScrollablePage { top: parent.top left: parent.left topMargin: Math.max(2, Kirigami.Units.gridUnit / 2) - leftMargin: horizontalPadding + leftMargin: horizontalPadding * 2 right: parent.right } color: textColor |