Tizen 2.1 base
[framework/osp/uifw.git] / src / ui / resource / FUi_ResourceInputPadConfig.cpp
1 //
2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
4 //
5 // Licensed under the Flora License, Version 1.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
8 //
9 //     http://floralicense.org/license/
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an AS IS BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 //
17
18 /**
19  * @file                FUi_ResourceInputPadConfig.cpp
20  * @brief               This is the implementation file for the color, image and shape config of _InputPad class.
21  */
22
23 #include "FUi_ResourceConfigMacro.h"
24
25 START_UI_CONFIG(INPUTPAD);
26 {
27         ADD_COLOR_CONFIG(TEXT_NORMAL, $F031L1);
28         ADD_COLOR_CONFIG(TEXT_PRESSED, $F031L1P);
29         ADD_COLOR_CONFIG(GUIDE_TEXT_NORMAL, $F031L1);
30         ADD_COLOR_CONFIG(BUTTON_BG_NORMAL, $W011);
31         ADD_COLOR_CONFIG(BUTTON_BG_PRESSED, $B042);
32
33         ADD_IMAGE_CONFIG(BG_NORMAL, #00_time_picker_keypad_bg.9.png);
34         ADD_IMAGE_CONFIG(BUTTON_BG_NORMAL, #00_time_picker_keypad_button_bg.9.png);
35         ADD_IMAGE_CONFIG(BUTTON_BG_EFFECT_NORMAL, #00_time_picker_keypad_button_bg_ef.9.png);
36
37         START_UI_CONFIG_MODE(720x1280);
38         {
39                 ADD_SHAPE_CONFIG(TOP_MARGIN, 23);
40                 ADD_SHAPE_CONFIG(BUTTON_HORIZONTAL_MARGIN, 14);
41                 ADD_SHAPE_CONFIG(BUTTON_VERTICAL_MARGIN, 19);
42
43                 ADD_SHAPE_CONFIG(NUMERIC_FONT_SIZE, 65);
44                 ADD_SHAPE_CONFIG(ALPHA_FONT_SIZE, 56);
45                 ADD_SHAPE_CONFIG(GUIDE_FONT_SIZE, 32);
46
47                 ADD_SHAPE_CONFIG(TEXT_CORRECTION_Y, 3);
48                 ADD_SHAPE_CONFIG(GUIDE_CORRECTION_X, 15);
49                 ADD_FIXED_VALUE_CONFIG(BUTTON_TOUCH_CORRECTION_Y, 5);
50
51                 ADD_SHAPE_CONFIG(BUTTON_WIDTH, 228);
52                 ADD_SHAPE_CONFIG(BUTTON_HEIGHT, 100);
53         }
54         END_UI_CONFIG_MODE(720x1280);
55
56         START_UI_CONFIG_MODE(1280x720);
57         {
58                 ADD_SHAPE_CONFIG(TOP_MARGIN, 11);
59                 ADD_SHAPE_CONFIG(BUTTON_HORIZONTAL_MARGIN, 16);
60                 ADD_SHAPE_CONFIG(BUTTON_VERTICAL_MARGIN, 10);
61
62                 ADD_SHAPE_CONFIG(NUMERIC_FONT_SIZE, 45);
63                 ADD_SHAPE_CONFIG(ALPHA_FONT_SIZE, 36);
64                 ADD_SHAPE_CONFIG(GUIDE_FONT_SIZE, 12);
65
66                 ADD_SHAPE_CONFIG(BUTTON_HEIGHT, 68);
67         }
68         END_UI_CONFIG_MODE(1280x720);
69
70 }
71 END_UI_CONFIG(INPUTPAD);