Changeset 1d32ebd in subsurface


Ignore:
Timestamp:
Jun 20, 2017, 10:51:25 PM (5 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
d7be3b2
Parents:
d1ed9c3
Message:

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@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mobile-widgets/qml/main.qml

    rfd5cd5e r1d32ebd  
    2525        property alias syncToCloud: manager.syncToCloud
    2626        property alias showPin: manager.showPin
    27 
    2827        onNotificationTextChanged: {
    2928                if (notificationText != "") {
     
    312311                property int titlePointSize: Math.round(fontMetrics.font.pointSize * 1.5)
    313312                property int smallPointSize: Math.round(fontMetrics.font.pointSize * 0.8)
    314                 property color accentColor: "#40C0FF" // "#2d5b9a"
     313                property color accentColor: "#C0CFFF"
     314                property color darkAccentColor: "#5870cb"
    315315                property color shadedColor: "#132744"
    316316                property color accentTextColor: "#ececec"
    317317                property color diveListTextColor: "#000000" // the Kirigami theme text color is too light
    318318                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
    319         }
    320 
     319                Component.onCompleted: {
     320                        Kirigami.Theme.highlightcolor = darkAccentColor
     321                }
     322        }
    321323        property Item stackView: pageStack
    322324        pageStack.initialPage: DiveList {
Note: See TracChangeset for help on using the changeset viewer.