summaryrefslogtreecommitdiff
path: root/src/mobile/qml/UiConstants.js
blob: b64cbe9c9f4ff75de4dd1245d7496c8e08e1c4d1 (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
.pragma library

/****************************************************************************
 *   Copyright (C) 2012  Instituto Nokia de Tecnologia (INdT)               *
 *                                                                          *
 *   This file may be used under the terms of the GNU Lesser                *
 *   General Public License version 2.1 as published by the Free Software   *
 *   Foundation and appearing in the file LICENSE.LGPL included in the      *
 *   packaging of this file.  Please review the following information to    *
 *   ensure the GNU Lesser General Public License version 2.1 requirements  *
 *   will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.   *
 *                                                                          *
 *   This program is distributed in the hope that it will be useful,        *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of         *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
 *   GNU Lesser General Public License for more details.                    *
 ****************************************************************************/

var DefaultMargin = 17
var DefaultFontSize = 22
var DefaultFontFamily = "Nokia Pure Text"
var HtmlFor404Page = "<html><body><h1>=(</h1><h2>Snowshoe says: 404! File not found.</h2><h1>=~</h1></body></html>"
var PrimaryColor = "#3e3e3e"
var SecondaryColor = "#8b8b8b"
var SecondaryFontSize = 20
var InterfaceColor = "#efefef"
var DefaultSwipeLenght = 50
var NavBarLongMargin = 16
var NavBarShortMargin = 8
var OverlayBarSideMargin = 16
var OverlayBarInsideMargin = 40
var OverlayBarHeight = 58
var StatusBarHeight = 36
var TabBarHeight = 25 + 27 + 21
var PortraitHeight = 854 - StatusBarHeight
var PortraitWidth = 480
var LandscapeHeight = 854
var LandscapeWidth = 480 - StatusBarHeight

// Paged grid constants
// [width, height, horizontalspacing, verticalspacing], the table index refers to the grid size
var PagedGridSizeTable = [192, 263, 16, 16]; // 4 tabs in a grid
var PagedGridItemsPerPage = 4;
var PagedGridNumColumns = 2;
var PagedGridCloseButtonWidth = 90;
var PagedGridCloseButtonHeight = 90;

// Maximum number of pages for top sites and open tabs
var TopSitesMaxPages = 3;
var TabsMaxPages = 3;

var GoogleSearchPattern = "http://www.google.com/search?q=";
var GoogleSearchPatternLength = GoogleSearchPattern.length;