From 1d32ebd6579fa2690050bca7afbe211ed0fd47f6 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 20 Jun 2017 22:51:25 -0700 Subject: QML UI: use Android palette colors These were picked from https://material.io/guidelines/style/color.html#color-color-system One could argue that we should use different colors for iOS. Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/main.qml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'mobile-widgets') diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml index 13cc3eadd..88206ae7b 100644 --- a/mobile-widgets/qml/main.qml +++ b/mobile-widgets/qml/main.qml @@ -24,7 +24,6 @@ Kirigami.ApplicationWindow { property bool showingDiveList: false property alias syncToCloud: manager.syncToCloud property alias showPin: manager.showPin - onNotificationTextChanged: { if (notificationText != "") { // there's a risk that we have a >5 second gap in update events; @@ -311,13 +310,16 @@ Kirigami.ApplicationWindow { id: subsurfaceTheme property int titlePointSize: Math.round(fontMetrics.font.pointSize * 1.5) property int smallPointSize: Math.round(fontMetrics.font.pointSize * 0.8) - property color accentColor: "#40C0FF" // "#2d5b9a" + property color accentColor: "#C0CFFF" + property color darkAccentColor: "#5870cb" property color shadedColor: "#132744" property color accentTextColor: "#ececec" property color diveListTextColor: "#000000" // the Kirigami theme text color is too light property int columnWidth: Math.round(rootItem.width/(Kirigami.Units.gridUnit*28)) > 0 ? Math.round(rootItem.width / Math.round(rootItem.width/(Kirigami.Units.gridUnit*28))) : rootItem.width + Component.onCompleted: { + Kirigami.Theme.highlightcolor = darkAccentColor + } } - property Item stackView: pageStack pageStack.initialPage: DiveList { id: diveList -- cgit v1.2.3-70-g09d2