2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
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
9 // http://floralicense.org/license/
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.
19 * @file FUi_ResourceEditTimeConfig.cpp
20 * @brief This is the implementation file for the color and shape config of EditTime class.
23 #include "FUi_ResourceEditTimeConfig.h"
25 START_UI_CONFIG(EDITTIME);
27 ADD_COLOR_CONFIG(BUTTON_BG_NORMAL, $W011);
28 ADD_COLOR_CONFIG(BUTTON_BG_PRESSED, $B042);
29 ADD_COLOR_CONFIG(BUTTON_BG_DISABLED, $W011);
30 ADD_COLOR_CONFIG(BUTTON_BG_HIGHLIGHTED, $W161);
31 ADD_COLOR_CONFIG(PICKER_BUTTON_BG_NORMAL, $W011);
32 ADD_COLOR_CONFIG(PICKER_BUTTON_BG_PRESSED, $B042);
33 ADD_COLOR_CONFIG(PICKER_BUTTON_BG_DISABLED, $W011);
34 ADD_COLOR_CONFIG(PICKER_BUTTON_BG_HIGHLIGHTED, $W161);
35 ADD_COLOR_CONFIG(BUTTON_TEXT_NORMAL, $F031L1);
36 ADD_COLOR_CONFIG(BUTTON_TEXT_PRESSED, $F031L1P);
37 ADD_COLOR_CONFIG(BUTTON_TEXT_DISABLED, $F031L1D);
38 ADD_COLOR_CONFIG(TEXT_NORMAL, $F011L1);
39 ADD_COLOR_CONFIG(TEXT_PRESSED, $F011L2);
40 ADD_COLOR_CONFIG(TEXT_DISABLED, $F011L1);
41 ADD_COLOR_CONFIG(TITLE_TEXT_NORMAL, $B052L5);
42 ADD_COLOR_CONFIG(TITLE_TEXT_DISABLED, $B052L5);
44 ADD_IMAGE_CONFIG(COLON_BG_NORMAL, #00_date_picker_dot.png);
45 ADD_IMAGE_CONFIG(BUTTON_BG_NORMAL, #00_button_01.#.png);
46 ADD_IMAGE_CONFIG(BUTTON_BG_PRESSED, #00_button_01.#.png);
47 ADD_IMAGE_CONFIG(BUTTON_BG_DISABLED, #00_button_01.#.png);
48 ADD_IMAGE_CONFIG(BUTTON_BG_HIGHLIGHTED, #00_button_01_focus.#.png);
49 ADD_IMAGE_CONFIG(BUTTON_BG_EFFECT_NORMAL, #00_button_01_ef.#.png);
50 ADD_IMAGE_CONFIG(BUTTON_BG_EFFECT_DISABLED, #00_button_01_ef_dim.#.png);
51 ADD_IMAGE_CONFIG(BUTTON_BG_EFFECT_PRESSED, #00_button_01_ef_press.#.png);
52 ADD_IMAGE_CONFIG(PICKER_BUTTON_BG_NORMAL, #00_picker_button.#.png);
53 ADD_IMAGE_CONFIG(PICKER_BUTTON_BG_PRESSED, #00_picker_button.#.png);
54 ADD_IMAGE_CONFIG(PICKER_BUTTON_BG_DISABLED, #00_picker_button.#.png);
55 ADD_IMAGE_CONFIG(PICKER_BUTTON_BG_HIGHLIGHTED, #00_picker_button_focus.#.png);
56 ADD_IMAGE_CONFIG(PICKER_BUTTON_BG_EFFECT_NORMAL, #00_picker_button_ef.#.png);
57 ADD_IMAGE_CONFIG(PICKER_BUTTON_BG_EFFECT_DISABLED, #00_picker_button_dim_ef.#.png);
58 ADD_IMAGE_CONFIG(PICKER_BUTTON_BG_EFFECT_PRESSED, #00_picker_button_press_ef.#.png);
60 START_UI_CONFIG_MODE(720x1280);
62 ADD_SHAPE_CONFIG(WIDTH, 292);
63 ADD_SHAPE_CONFIG(HEIGHT, 112);
64 ADD_SHAPE_CONFIG(TIME_WIDTH, 114);
65 ADD_SHAPE_CONFIG(HOUR_MINUTE_WIDTH, 48);
66 ADD_SHAPE_CONFIG(TITLE_TIME_MARGIN, 5);
67 ADD_SHAPE_CONFIG(TIME_BAR_MARGIN, 10);
68 ADD_SHAPE_CONFIG(TIME_HEIGHT, 46);
69 ADD_SHAPE_CONFIG(TIME_AMPM_MARGIN, 26);
70 ADD_SHAPE_CONFIG(AMPM_WIDTH, 106);
71 ADD_SHAPE_CONFIG(AMPM_HEIGHT, 56);
72 ADD_SHAPE_CONFIG(TITLE_HEIGHT, 36);
73 ADD_SHAPE_CONFIG(TIME_FONT_SIZE, 36);
74 ADD_SHAPE_CONFIG(TEXT_FONT_SIZE, 32);
75 ADD_SHAPE_CONFIG(AMPM_FONT_SIZE, 36);
76 ADD_SHAPE_CONFIG(COLON_WIDTH, 12);
77 ADD_SHAPE_CONFIG(COLON_MARGIN, 3);
78 ADD_SHAPE_CONFIG(TIME_TEXT_LEFT_MARGIN, 20);
79 ADD_SHAPE_CONFIG(TIME_TEXT_LEFT_MIN_MARGIN, 10);
80 ADD_DIMENSION_CONFIG(MIN_SIZE, 270, 112);
82 END_UI_CONFIG_MODE(720x1280);
84 START_UI_CONFIG_MODE(1280x720);
86 ADD_DIMENSION_CONFIG(MIN_SIZE, 270, 112);
87 ADD_SHAPE_CONFIG(WIDTH, 516);
88 ADD_SHAPE_CONFIG(TIME_WIDTH, 242);
89 ADD_SHAPE_CONFIG(TIME_AMPM_MARGIN, 84);
91 END_UI_CONFIG_MODE(1280x720);
93 END_UI_CONFIG(EDITTIME);