diff options
author | Justin Dickow <jjdickow@gmail.com> | 2014-10-20 17:44:41 -0400 |
---|---|---|
committer | Justin Dickow <jjdickow@gmail.com> | 2014-10-20 17:44:41 -0400 |
commit | 34e7256493ff0e6594029b9857d7e2aa31f5dbeb (patch) | |
tree | 367306b507c52d3af211533810adbc22004e0192 /src/components/qt_hmi/qml_model_qt4/models/Constants.js | |
parent | 2eef966e9b5fd4d94dd98820095eb765e200c64b (diff) | |
download | sdl_core-34e7256493ff0e6594029b9857d7e2aa31f5dbeb.tar.gz |
SDL 3.8!
Signed-off-by: Justin Dickow <jjdickow@gmail.com>
Diffstat (limited to 'src/components/qt_hmi/qml_model_qt4/models/Constants.js')
-rw-r--r-- | src/components/qt_hmi/qml_model_qt4/models/Constants.js | 249 |
1 files changed, 249 insertions, 0 deletions
diff --git a/src/components/qt_hmi/qml_model_qt4/models/Constants.js b/src/components/qt_hmi/qml_model_qt4/models/Constants.js new file mode 100644 index 0000000000..1bc5c558ba --- /dev/null +++ b/src/components/qt_hmi/qml_model_qt4/models/Constants.js @@ -0,0 +1,249 @@ +/** + * @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" + +// Color for border of controls +var controlsBorderColor = "#ababab" + +//-------------------------------------------------------------------------------------- + +// 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 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 + +// 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 + +// Radius of controls +var controlsRadius = 2 + +// Width of border of controls +var controlsBorderWidth = 1 +// Position for element that came without position value (should be always at the end) +var positionOfElementWithoutPosition = 1001 |