Debian Codegraph @

src/imports/Components/1.1/LomiriColors.qml

raw
1 /*
2 Copyright 2014 Canonical Ltd.
3 *
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as published by
6 the Free Software Foundation; version 3.
7 *
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU Lesser General Public License for more details.
12 *
13 You should have received a copy of the GNU Lesser General Public License
14 along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17 pragma Singleton
18 import QtQuick 2.4
19
20 /*!
21 \qmltype LomiriColors
22 \inqmlmodule Lomiri.Components
23 \ingroup lomiri
24 \brief Singleton defining the Lomiri color palette.
25
26 Each color of the Lomiri color palette is accesible from it.
27 For more information on how to appropriately use the colors according to
28 the context, please refer to the
29 \l{http://design.lomiri.com/brand/colour-palette}{Lomiri brand guidelines}.
30
31 Example of use:
32
33 \qml
34 Rectangle {
35 color: LomiriColors.orange
36 }
37 \endqml
38 */
39 QtObject {
40 // old colors from LomiriColors 1.0:
41
42 /*!
43 Orange. Recommended for branded elements, display progress
44 and intensity, textual links on light backgrounds.
45 */
46 readonly property color orange: "#DD4814"
47 /*!
48 \deprecated
49 Lomiri supporting color: light aubergine
50 */
51 readonly property color lightAubergine: "#77216F"
52 /*!
53 \deprecated
54 Lomiri supporting color: mid aubergine
55 */
56 readonly property color midAubergine: "#5E2750"
57 /*!
58 \deprecated
59 Lomiri supporting color: dark aubergine
60 */
61 readonly property color darkAubergine: "#2C001E"
62 /*!
63 \deprecated
64 Lomiri neutral color: warm grey
65 */
66 readonly property color warmGrey: "#AEA79F"
67 /*!
68 \deprecated
69 Lomiri neutral color: cool grey
70 */
71 readonly property color coolGrey: "#333333"
72
73 /*!
74 Lomiri orange gradient
75
76 \sa Button::gradient
77 */
78 property Gradient orangeGradient: Gradient {
79 GradientStop { position: 0.0; color: "#DD4814" }
80 GradientStop { position: 1.0; color: "#D9722D" }
81 }
82 /*!
83 Lomiri grey gradient
84
85 \sa Button::gradient
86 */
87 property Gradient greyGradient: Gradient {
88 GradientStop { position: 0.0; color: "#888888" }
89 GradientStop { position: 1.0; color: "#BBBBBB" }
90 }
91
92 // New colors introduced in LomiriColors 1.1:
93
94 /*!
95 Light grey. Recommended for neutral action buttons and
96 secondary text.
97 \since Lomiri.Components 1.1
98 */
99 readonly property color lightGrey: "#929292"
100
101 /*!
102 Dark grey. Recommended for text and action icons.
103 \since Lomiri.Components 1.1
104 */
105 readonly property color darkGrey: "#5d5d5d"
106
107 /*!
108 Red. Recommended for negative and irreversible action
109 buttons, errors and alerts.
110 \since Lomiri.Components 1.1
111 */
112 readonly property color red: "#f32c36"
113
114 /*!
115 Green. Recommended for positive action buttons.
116 \since Lomiri.Components 1.1
117 */
118 readonly property color green: "#00a132"
119
120 /*!
121 Blue. Recommended for text selection and text cursor.
122 \since Lomiri.Components 1.1
123 */
124 readonly property color blue: "#12a3d8"
125
126 /*!
127 Purple. Recommended for proper nouns in
128 list items.
129 \since Lomiri.Components 1.1
130 */
131 readonly property color purple: "#762572"
132 }