Debian Codegraph @

src/imports/Components/Themes/1.3/PaletteValues.qml

raw
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 import QtQuick 2.4
18
19 /*!
20 \qmltype PaletteValues
21 \inqmlmodule Lomiri.Components.Themes 1.0
22 \ingroup theme-module
23 \brief Color values used for a given widget state.
24 */
25 QtObject {
26 /*!
27 Color applied to the background of the application.
28 */
29 property color background
30 /*!
31 Color applied to elements placed on top of the \l background color.
32 Typically used for labels and images.
33 */
34 property color backgroundText
35 /*!
36 Color applied to secondary content on the \l background color.
37 \since Lomiri.Components.Themes 1.3
38 */
39 property color backgroundSecondaryText
40 /*!
41 Color applied to tertiary content on the \l background color.
42 \since Lomiri.Components.Themes 1.3
43 */
44 property color backgroundTertiaryText
45
46 /*!
47 Color applied to the background of widgets.
48 */
49 property color base
50 /*!
51 Color applied to elements placed on top of the \l base color.
52 Typically used for labels and images.
53 */
54 property color baseText
55
56 /*!
57 Color applied to widgets on top of the base colour.
58 */
59 property color foreground
60 /*!
61 Color applied to elements placed on top of the \l foreground color.
62 Typically used for labels and images.
63 */
64 property color foregroundText
65
66 /*!
67 Color applied to widgets on top of any layer, background or base.
68 \since Lomiri.Components.Themes 1.3
69 */
70 property color raised
71 /*!
72 Color applied to elements placed on top of the \l raised color.
73 \since Lomiri.Components.Themes 1.3
74 */
75 property color raisedText
76 /*!
77 Color applied to seconday elements placed on top of the \l raised color.
78 \since Lomiri.Components.Themes 1.3
79 */
80 property color raisedSecondaryText
81
82 /*!
83 Color applied to the background of widgets floating over other widgets.
84 For example popovers, menus, dialogs.
85 */
86 property color overlay
87 /*!
88 Color applied to elements placed on top of the \l overlay color.
89 Typically used for labels and images.
90 */
91 property color overlayText
92 /*!
93 Color applied to secondary elements placed on top of the \l overlay color.
94 \since Lomiri.Components.Themes 1.3
95 */
96 property color overlaySecondaryText
97
98 /*!
99 Colour applied to the background of text input fields.
100 */
101 property color field
102 /*!
103 Color applied to elements placed on top of the \l field color.
104 Typically used for labels and images.
105 */
106 property color fieldText
107
108 /*!
109 Colour applied to the positive actions.
110 \since Lomiri.Components.Themes 1.3
111 */
112 property color positive
113 /*!
114 Color applied to elements placed on top of the \l positive color.
115 \since Lomiri.Components.Themes 1.3
116 */
117 property color positiveText
118
119 /*!
120 Colour applied to the negative actions.
121 \since Lomiri.Components.Themes 1.3
122 */
123 property color negative
124 /*!
125 Color applied to elements placed on top of the \l negative color.
126 \since Lomiri.Components.Themes 1.3
127 */
128 property color negativeText
129
130 /*!
131 Colour applied to the activity colors. Typical example is progress indication,
132 activity indication.
133 \since Lomiri.Components.Themes 1.3
134 */
135 property color activity
136 /*!
137 Color applied to elements placed on top of the \l activity color.
138 \since Lomiri.Components.Themes 1.3
139 */
140 property color activityText
141
142 /*!
143 Color applied to selected text background in editable components.
144 */
145 property color selection
146 /*!
147 Color applied to elements placed on top of the \l selection color.
148 \since Lomiri.Components.Themes 1.3
149 */
150 property color selectionText
151
152 /*!
153 Color applied for the focus frame drawn around the active focus component
154 if it was focused using keyboard navigation.
155 */
156 property color focus
157
158 /*!
159 Color applied to elements placed on top of the \l focus color.
160 */
161 property color focusText
162
163 /*!
164 Color applied to navigation elements' background.
165 */
166 property color position
167
168 /*!
169 Color applied to navigation elements to indicate current position.
170 */
171 property color positionText
172 }