aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2018-02-16 09:38:24 +0100
committerGravatar Jan Mulder <jlmulder@xs4all.nl>2018-02-17 21:05:33 +0100
commit01188905ae05a148c6202ab1909a6f5e06d02bda (patch)
tree2be594f5aeb20c26903e5ebed5cac5fa7431bdcd /mobile-widgets
parentbd10a8442a25bbaa9d6c8256c486af45440d2886 (diff)
downloadsubsurface-01188905ae05a148c6202ab1909a6f5e06d02bda.tar.gz
Mobile QML UI: Divelist hover/selected colors
This is subtle one. With the changing of the theme color, it appeared that the hover and selected colors in the divelist where wrong (as in, always blue-ish). This is easily solved by setting the activeBackgroundColor to our theme color, and Kirigami does the rest (tint and opaque settings for the different states a selected dive can be in). Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qml/DiveList.qml1
1 files changed, 1 insertions, 0 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml
index cf4f99e5a..b724bdf3c 100644
--- a/mobile-widgets/qml/DiveList.qml
+++ b/mobile-widgets/qml/DiveList.qml
@@ -50,6 +50,7 @@ Kirigami.ScrollablePage {
width: parent.width
height: diveListEntry.height + Kirigami.Units.smallSpacing
backgroundColor: checked ? subsurfaceTheme.primaryColor : subsurfaceTheme.backgroundColor
+ activeBackgroundColor: subsurfaceTheme.primaryColor
textColor: checked ? subsurfaceTheme.primaryTextColor : subsurfaceTheme.textColor
property real detailsOpacity : 0