2
* Copyright 2013 Canonical Ltd.
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.
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.
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/>.
18
import Ubuntu.Components 0.1
22
* these items only hold variables
26
id: keyboard_constants
28
property real key_area_borders: units.gu( 1.222 );
29
property string font_color: "#666666"
30
property string font_family: "Ubuntu Medium"
32
property int reference_width: 720
33
property int reference_height: 468
35
property int portrait_invisible_touch_area: units.gu( 6.777 );
36
property int portrait_keyboard_visible_height: units.gu( 26.0 );
37
property real portrait_keyboard_screen_width_ratio: 1.0
39
property real portrait_top_margin: units.gu( 1.35 );
40
property real landscape_top_margin: units.gu( 4.35 );
41
property real portrait_bottom_margin: units.gu( 2.00 );
42
property real landscape_bottom_margin: units.gu( 2.00 );
44
property real key_height: units.gu( 4.888 ); // not used
46
// make sure when you change these, also change the unittest
47
property real key_width_small: 10
48
property real key_width_medium: 12
49
property real key_width_large: 15 // shift
50
property real key_width_xlarge: 18 // 123 key
51
property real key_width_xxlarge: 24 // space
52
property real key_width_stretched: 30 // ?
54
property real font_size: 12;
55
property real font_size_small: 10;
57
property int landscape_invisible_touch_area: units.gu( 6.777 );
58
property int landscape_keyboard_visible_height: units.gu( 33.4 );
59
property real landscape_keyboard_screen_width_ratio: 1.0
61
property real landscape_space_between_rows: units.dp( 0.00 );
62
property real landscape_space_between_keys: units.dp( 0.00 );
63
property real portrait_space_between_rows: units.dp( 2.00 );
64
property real portrait_space_between_keys: units.dp( 10.00 );
66
property string key_background_normal: "keybg@18.png"
67
property string key_background_special: "keybg_action@18.png"
68
property string key_background_deadkey: ""
70
property real phone_keyboard_height_portrait: 0.365;
71
property real phone_keyboard_height_landscape: 0.50;
73
property real tablet_keyboard_height_portrait: 0.28;
74
property real tablet_keyboard_height_landscape: 0.38;
76
property int landscape_wordribbon_height: units.gu( 4.0 );
77
property int portrait_wordribbon_height: units.gu( 4.0 );