f9d9c1668ef1d7fac27e372cec3c66919544a7b3
[staging/HomeScreen.git] / sample-qml / imports / utils / Style.qml
1 /* Copyright (C) 2015, Jaguar Land Rover. All Rights Reserved.
2  *
3  * This Source Code Form is subject to the terms of the Mozilla Public
4  * License, v. 2.0. If a copy of the MPL was not distributed with this
5  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7 pragma Singleton
8 import QtQuick 2.2
9
10 QtObject {
11     property bool debugMode: false
12     property bool debugFill: false
13
14     // Primary colors
15     property color orangeLt: "#ffd38c"
16     property color orangeViv: "#fe9c00"
17     property color blueLt: "#b2f0ff"
18     property color blueViv: "#53b5ce"
19     // Secondary colors
20     property color yellowLt: "#ffffb2"
21     property color yellowViv: "#ffff00"
22     property color greenLt: "#cdffb2"
23     property color greenViv: "#59ff00"
24     // Neutral colors
25     property color white: "#ffffff"
26     property color grey: "#c4c4c4"
27     property color black: "#000000"
28     property color overlay: Qt.rgba(0, 0, 0, 0.8)
29
30     function getGfxPath() {
31         return Qt.resolvedUrl("../assets/")
32     }
33
34     function gfx(name) {
35         return Qt.resolvedUrl("../../images/" + name )
36     }
37 }