diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-06-20 22:51:25 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-06-20 22:51:25 -0700 |
commit | 1d32ebd6579fa2690050bca7afbe211ed0fd47f6 (patch) | |
tree | 8bca2c7d5fdcd03c47be87f3a9f4dcab9914972c /mobile-widgets | |
parent | d1ed9c310f5ad0a4017b434e5a573689d56f5f25 (diff) | |
download | subsurface-1d32ebd6579fa2690050bca7afbe211ed0fd47f6.tar.gz |
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 <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qml/main.qml | 8 |
1 files changed, 5 insertions, 3 deletions
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 |