diff options
Diffstat (limited to 'src/components/qt_hmi/qml_model_qt5/models/Constants.js')
-rw-r--r-- | src/components/qt_hmi/qml_model_qt5/models/Constants.js | 250 |
1 files changed, 0 insertions, 250 deletions
diff --git a/src/components/qt_hmi/qml_model_qt5/models/Constants.js b/src/components/qt_hmi/qml_model_qt5/models/Constants.js deleted file mode 100644 index 0b4a3191d7..0000000000 --- a/src/components/qt_hmi/qml_model_qt5/models/Constants.js +++ /dev/null @@ -1,250 +0,0 @@ -/** - * @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 |