summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/DiveList.qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-06-21 07:39:07 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-06-21 11:05:36 -0700
commit9ddd26ff37b7bf525aa434f485d0c82f4d246419 (patch)
tree5783f7a6d136c988633ff85acf489d3d6aa65585 /mobile-widgets/qml/DiveList.qml
parent16f16f6818d1b5f48020ec6de086a5c76026b9bd (diff)
downloadsubsurface-9ddd26ff37b7bf525aa434f485d0c82f4d246419.tar.gz
QML UI: redo all the colors
Naming them the same way Davide named them in his emails and assigning the color values he proposed. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/DiveList.qml')
-rw-r--r--mobile-widgets/qml/DiveList.qml14
1 files changed, 8 insertions, 6 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml
index 2112d8ea4..d9ce0b729 100644
--- a/mobile-widgets/qml/DiveList.qml
+++ b/mobile-widgets/qml/DiveList.qml
@@ -31,7 +31,9 @@ Kirigami.ScrollablePage {
checked: diveListView.currentIndex === model.index
width: parent.width
height: diveListEntry.height + Kirigami.Units.smallSpacing
- background.opacity: checked ? 0.4 : 1
+ background.opacity: checked ? 0.8 : 1
+ backgroundColor: checked ? subsurfaceTheme.primaryColor : Kirigami.Theme.viewBackgroundColor
+ textColor: checked ? subsurfaceTheme.primaryTextColor : subsurfaceTheme.diveListTextColor
property real detailsOpacity : 0
@@ -55,7 +57,7 @@ Kirigami.ScrollablePage {
id: leftBarDive
width: dive.tripMeta == "" ? 0 : Kirigami.Units.smallSpacing
height: diveListEntry.height * 0.8
- color: subsurfaceTheme.accentColor
+ color: subsurfaceTheme.lightPrimaryColor
anchors {
left: parent.left
top: parent.top
@@ -123,7 +125,7 @@ Kirigami.ScrollablePage {
visible: deleteButtonVisible
height: diveListEntry.height - Kirigami.Units.smallSpacing
width: height - 3 * Kirigami.Units.smallSpacing
- color: "#FF3030"
+ color: subsurfaceTheme.contrastAccentColor
antialiasing: true
radius: Kirigami.Units.smallSpacing
anchors {
@@ -173,7 +175,7 @@ Kirigami.ScrollablePage {
right: parent.right
rightMargin: Kirigami.Units.gridUnit * -2
}
- color: subsurfaceTheme.accentColor
+ color: subsurfaceTheme.lightPrimaryColor
visible: section != ""
Kirigami.Label {
id: sectionText
@@ -199,7 +201,7 @@ Kirigami.ScrollablePage {
leftMargin: horizontalPadding * 2
right: parent.right
}
- color: textColor
+ color: subsurfaceTheme.lightPrimaryTextColor
}
}
Rectangle {
@@ -210,7 +212,7 @@ Kirigami.ScrollablePage {
rightMargin: Kirigami.Units.gridUnit * -2
right: parent.right
}
- color: subsurfaceTheme.accentColor
+ color: subsurfaceTheme.lightPrimaryColor
}
}
}