summaryrefslogtreecommitdiff
path: root/SDL_Core/src/components/qt_hmi/qml_model_qt5/models/Constants.js
blob: 0b4a3191d732855bc6497ca4404c79c73c000eeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
/**
 * @file Constants.js
 * @brief Namespace of constants.
 * Copyright (c) 2013, Ford Motor Company
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice, this
 * list of conditions and the following disclaimer.
 *
 * Redistributions in binary form must reproduce the above copyright notice,
 * this list of conditions and the following
 * disclaimer in the documentation and/or other materials provided with the
 * distribution.
 *
 * Neither the name of the Ford Motor Company nor the names of its contributors
 * may be used to endorse or promote products derived from this software
 * without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */
.pragma library

// Colors

// Main color of HMI model(now it ~lightblue). Buttons, text, icons of this color.
var primaryColor = "#1d81d5"

// Color of pressed buttons, text, icons etc.
var primaryColorPressed = "#8ec0ea"

// Secondary color of HMI model, backgroud of this color.
var secondaryColor = "black"

// Color of text at buttonts that are inactive (at phone keyboard, when no any contact started with current letter).
var inactiveButtonTextColor = "grey"

// Color of text at buttonts that are inactive but nevertheless pressed (at phone keyboard, when no any contact started with current letter).
var inactiveButtonTextColorPressed = "lightgrey"

// Color of text at contact list screen view (Name, number and number type).
var contactTextColor = "lightblue"

// Color of text at buttons, when they are pressed.
var pressedButtonTextColor = "black"

// Color of text at "white" buttons, for all other buttons (which most) use primaryColor.
var releasedButtonTextColor = "white"

// Transparent background.
var transparentColor = "#00000000"

// "Warning" word color
var warningColor = "red"

// Color for PopUp
var popUpBorderColor = "white"

// Color for hardware and simulation panels
var panelColor = "#003"

// Color for text in hardware and simulation panels
var panelTextColor = "white"

// Audio pass thru PopUp text color
var audioPassThruTextColor = "white"

// Semi transparent color of item in SDL Navi menu
var sdlNaviTransparentItemColor = "#30C0C0C0"

//--------------------------------------------------------------------------------------

// Font sizes of different elements

// Font size for most of text in HMI model.
var fontSize = 20

// Font size for text inside oval buttons.
var ovalButtonFontSize = 15

// Title font size
var titleFontSize = 35

// Power on/off button font size
var powerButtonFornSize = 25

// Font size of status bar
var statusBarFontSize = 15

// Size icon for buttons
var iconButtonSize = 30

// Size icon for item list
var iconItemListSize = 40

// font size fo TTS popup
var ttsFontSize = 12

// Font size for list of applications
var appListFontSize = 40

// Size of contact list fields
var contactListNameFieldSize = 0.4
var contactListPhoneFieldSize = 0.3
var contactListDescriptionFieldSize = 0.3

//--------------------------------------------------------------------------------------

// Sizes of buttons, menus, screen, etc

// Minimal width and height of screen (screen wont resize, if height and width are lower).
var mainScreenMinWidth = 800
var mainScreenMiHeight = 600

// Width for long oval button
var ovalButtonWidth = 163

// Height for oval button
var ovalButtonHeight = 65

// Height item list
var itemListHeight = 60

// Width for TTS popup
var ttsPopUpWidth = 250

// Height for TTS popup
var ttsPopUpHeight = 100

// Width for popup view
var popupWidth = 700

// Width for alert window
var alertWidth = 360

// Height for popup view
var popupHeigth = 500

// Width for combobox
var defaultComboboxWidth = 150

// Size icon for list of applications
var appListIconSize = 100

// DistanceBar height
var distanceBarHeight = 1


//---------------------------------------------------------------------------------------

// Other

// Offset from the edges of the screen.
var margin = 20

// Offset from the edges of the popup
var popupMargin = 15

// Spacing between items in SDLNavi view
var sdlNaviSpacing = 5

// Spacing between contacts at contact screen view.
var contactListSpacing = 30

// Duration of appearance of icon/button at icon/button menus.
var animationDuration = 500

// Duration of appearence of "OK" button at warning screen view, when HMI starts.
var warningScreenDuration = 1000

// Timer to check how long preset button is pressed.
var presetButtonTimer = 800

// Timer to check got long custom button is pressed.
var customButtonTimer = 2000

// Spacing between icon and item in list
var iconItemListSpacing = 20

// Spacing between item on views
var generalSpacing = 10

// Width of scrollBar
var scrollBarWidth = 5

// Speak text for a given time
var ttsSpeakTime = 2000

// Maximal number of submenus
var maximumSubmenus = 1000

// Maximal number of commands in submenu or root menu
var maximumCommandsPerSubmenu = 1000

// padding for popup view
var popUpPadding = 20

// Padding for TTS popup
var ttsPopUpPadding = 10

// -------------------------
var sliderBarWidth = 400
var sliderBarHeight = 50
var sliderBarRadius = 3
var sliderBarBorderWidth = 1
var sliderTextColor = "white"
var sliderBarBorderColor = "white"
var sliderBarFillColor = "white"

// -------------------------
var scrollableMessageTextColor = "white"
var scrollableMessageScrollBarColor = "gray"
var scrollableMessageScrollBarWidth = 10

// Padding for hardware and simulation panels
var panelPadding = 20

// Scale for pressed icon in menu
var pressedIconScale = 1.1

// Values of color effect for highlighted button
var highlightedButtonHue = 0.9
var highlightedButtonSaturation = 0.0
var highlightedButtonLightness = 0.1

// Values of color effect for disabled button
var disabledButtonHue = 0.0
var disabledButtonSaturation = -1.0
var disabledButtonLightness = 0.1

// Count of rows for grid menu
var menuRowCount = 2

// Count of columns for grid menu
var menuColumnCount = 3

// Position for element that came without position value (should be always at the end)
var positionOfElementWithoutPosition = 1001