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>
This commit is contained in:
Dirk Hohndel 2017-06-20 22:51:25 -07:00
parent d1ed9c310f
commit 1d32ebd657

View file

@ -24,7 +24,6 @@ Kirigami.ApplicationWindow {
property bool showingDiveList: false property bool showingDiveList: false
property alias syncToCloud: manager.syncToCloud property alias syncToCloud: manager.syncToCloud
property alias showPin: manager.showPin property alias showPin: manager.showPin
onNotificationTextChanged: { onNotificationTextChanged: {
if (notificationText != "") { if (notificationText != "") {
// there's a risk that we have a >5 second gap in update events; // there's a risk that we have a >5 second gap in update events;
@ -311,13 +310,16 @@ Kirigami.ApplicationWindow {
id: subsurfaceTheme id: subsurfaceTheme
property int titlePointSize: Math.round(fontMetrics.font.pointSize * 1.5) property int titlePointSize: Math.round(fontMetrics.font.pointSize * 1.5)
property int smallPointSize: Math.round(fontMetrics.font.pointSize * 0.8) 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 shadedColor: "#132744"
property color accentTextColor: "#ececec" property color accentTextColor: "#ececec"
property color diveListTextColor: "#000000" // the Kirigami theme text color is too light 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 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 property Item stackView: pageStack
pageStack.initialPage: DiveList { pageStack.initialPage: DiveList {
id: diveList id: diveList