| 1 |
/* |
| 2 |
Copyright 2016 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 |
|
| 41 |
/*--------------------------------------------------------------- |
| 42 |
Deprecated colors |
| 43 |
---------------------------------------------------------------*/ |
| 44 |
/*! |
| 45 |
\deprecated |
| 46 |
Lomiri supporting color: light aubergine |
| 47 |
*/ |
| 48 |
readonly property color lightAubergine: "#77216F" |
| 49 |
/*! |
| 50 |
\deprecated |
| 51 |
Lomiri supporting color: mid aubergine |
| 52 |
*/ |
| 53 |
readonly property color midAubergine: "#5E2750" |
| 54 |
/*! |
| 55 |
\deprecated |
| 56 |
Lomiri supporting color: dark aubergine |
| 57 |
*/ |
| 58 |
readonly property color darkAubergine: "#2C001E" |
| 59 |
/*! |
| 60 |
\deprecated |
| 61 |
Lomiri neutral color: warm grey |
| 62 |
*/ |
| 63 |
readonly property color warmGrey: "#AEA79F" |
| 64 |
/*! |
| 65 |
\deprecated |
| 66 |
Lomiri neutral color: cool grey |
| 67 |
*/ |
| 68 |
readonly property color coolGrey: "#333333" |
| 69 |
|
| 70 |
/*! |
| 71 |
Lomiri orange gradient |
| 72 |
\deprecated |
| 73 |
\sa Button::gradient |
| 74 |
*/ |
| 75 |
property Gradient orangeGradient: Gradient { |
| 76 |
GradientStop { position: 0.0; color: "#DD4814" } |
| 77 |
GradientStop { position: 1.0; color: "#D9722D" } |
| 78 |
} |
| 79 |
/*! |
| 80 |
Lomiri grey gradient |
| 81 |
\deprecated |
| 82 |
\sa Button::gradient |
| 83 |
*/ |
| 84 |
property Gradient greyGradient: Gradient { |
| 85 |
GradientStop { position: 0.0; color: "#888888" } |
| 86 |
GradientStop { position: 1.0; color: "#BBBBBB" } |
| 87 |
} |
| 88 |
|
| 89 |
/*--------------------------------------------------------------- |
| 90 |
Supported colors |
| 91 |
---------------------------------------------------------------*/ |
| 92 |
/*! |
| 93 |
Orange. Recommended for branded elements, display progress |
| 94 |
and intensity, textual links on light backgrounds. |
| 95 |
*/ |
| 96 |
readonly property color orange: "#E95420" |
| 97 |
|
| 98 |
/*! |
| 99 |
\deprecated |
| 100 |
Light grey. Recommended for neutral action buttons and |
| 101 |
secondary text. |
| 102 |
\since Lomiri.Components 1.1 |
| 103 |
*/ |
| 104 |
readonly property color lightGrey: "#cdcdcd" |
| 105 |
|
| 106 |
/*! |
| 107 |
Silk. Recommended for neutral action buttons and |
| 108 |
secondary text. |
| 109 |
\since Lomiri.Components 1.3 |
| 110 |
*/ |
| 111 |
readonly property color silk: "#cdcdcd" |
| 112 |
|
| 113 |
/*! |
| 114 |
\deprecated |
| 115 |
Dark grey. Recommended for text and action icons. |
| 116 |
\since Lomiri.Components 1.1 |
| 117 |
*/ |
| 118 |
readonly property color darkGrey: "#5d5d5d" |
| 119 |
|
| 120 |
/*! |
| 121 |
Slate. Recommended for text and action icons. |
| 122 |
\since Lomiri.Components 1.3 |
| 123 |
*/ |
| 124 |
readonly property color slate: "#5d5d5d" |
| 125 |
|
| 126 |
/*! |
| 127 |
Red. Recommended for negative and irreversible action |
| 128 |
buttons, errors and alerts. |
| 129 |
\since Lomiri.Components 1.1 |
| 130 |
*/ |
| 131 |
readonly property color red: "#c7162b" |
| 132 |
|
| 133 |
/*! |
| 134 |
Red. Recommended for negative and irreversible action |
| 135 |
buttons, errors and alerts. |
| 136 |
\since Lomiri.Components 1.3 |
| 137 |
*/ |
| 138 |
readonly property color lightRed: "#ed3146" |
| 139 |
|
| 140 |
/*! |
| 141 |
Green. Recommended for positive action buttons for Ambiance theme. |
| 142 |
\since Lomiri.Components 1.1 |
| 143 |
*/ |
| 144 |
readonly property color green: "#0e8420" |
| 145 |
|
| 146 |
/*! |
| 147 |
Green. Recommended for positive action buttons for SuruDark theme. |
| 148 |
\since Lomiri.Components 1.3 |
| 149 |
*/ |
| 150 |
readonly property color lightGreen: "#3eb34f" |
| 151 |
|
| 152 |
/*! |
| 153 |
Blue. Recommended for text selection and text cursor for Ambiance theme. |
| 154 |
\since Lomiri.Components 1.1 |
| 155 |
*/ |
| 156 |
readonly property color blue: "#335280" |
| 157 |
|
| 158 |
/*! |
| 159 |
Blue. Recommended for text selection and text cursor for SuruDark theme. |
| 160 |
\since Lomiri.Components 1.3 |
| 161 |
*/ |
| 162 |
readonly property color lightBlue: "#19b6ee" |
| 163 |
|
| 164 |
/*! |
| 165 |
Purple. Recommended for proper nouns in |
| 166 |
list items. |
| 167 |
\since Lomiri.Components 1.1 |
| 168 |
*/ |
| 169 |
readonly property color purple: "#762572" |
| 170 |
|
| 171 |
/*! |
| 172 |
Porcelain. Recommended for foregrounds. |
| 173 |
\since Lomiri.Components 1.3 |
| 174 |
*/ |
| 175 |
readonly property color porcelain: "#f7f7f7" |
| 176 |
|
| 177 |
/*! |
| 178 |
Ash. Recommended for subtitles and other tertiary content. |
| 179 |
\since Lomiri.Components 1.3 |
| 180 |
*/ |
| 181 |
readonly property color ash: "#888888" |
| 182 |
|
| 183 |
/*! |
| 184 |
Graphite. Recommended for coloring dark themes' background. |
| 185 |
\since Lomiri.Components 1.3 |
| 186 |
*/ |
| 187 |
readonly property color graphite: "#666666" |
| 188 |
|
| 189 |
/*! |
| 190 |
Inkstone. Recommended for foreground colors in dark themes. |
| 191 |
\since Lomiri.Components 1.3 |
| 192 |
*/ |
| 193 |
readonly property color inkstone: "#3b3b3b" |
| 194 |
|
| 195 |
/*! |
| 196 |
Jet. Recommended for content coloring. |
| 197 |
\since Lomiri.Components 1.3 |
| 198 |
*/ |
| 199 |
readonly property color jet: "#111111" |
| 200 |
} |