From 25fd8c172709f4ac9a53ad2db530786fce16b15f Mon Sep 17 00:00:00 2001 From: Joakim Bygdell Date: Tue, 25 Jul 2017 21:47:44 +0200 Subject: QML UI: use a lighter text color for the selected dive Use the ligther text color on the secondary row of text when a dive is selcted in the divelist Signed-off-by: Joakim Bygdell --- mobile-widgets/qml/DiveList.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mobile-widgets/qml/DiveList.qml') diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml index 138eaf7c4..4e54d8781 100644 --- a/mobile-widgets/qml/DiveList.qml +++ b/mobile-widgets/qml/DiveList.qml @@ -115,21 +115,21 @@ Kirigami.ScrollablePage { text: dive.date + " " + dive.time width: Math.max(locationText.width * 0.45, paintedWidth) // helps vertical alignment throughout listview font.pointSize: subsurfaceTheme.smallPointSize - color: secondaryTextColor + color: innerListItem.checked ? subsurfaceTheme.darkerPrimaryTextColor : secondaryTextColor } // let's try to show the depth / duration very compact Kirigami.Label { text: dive.depth + ' / ' + dive.duration width: Math.max(Kirigami.Units.gridUnit * 3, paintedWidth) // helps vertical alignment throughout listview font.pointSize: subsurfaceTheme.smallPointSize - color: secondaryTextColor + color: innerListItem.checked ? subsurfaceTheme.darkerPrimaryTextColor : secondaryTextColor } } Kirigami.Label { id: numberText text: "#" + dive.number font.pointSize: subsurfaceTheme.smallPointSize - color: secondaryTextColor + color: innerListItem.checked ? subsurfaceTheme.darkerPrimaryTextColor : secondaryTextColor anchors { right: parent.right rightMargin: horizontalPadding -- cgit v1.2.3-70-g09d2