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.
18 * @file FUi_ResourceOptionMenuConfig.cpp
19 * @brief This is the implementation file for the color, image and shape properties of OptionMenu.
22 #include "FUi_ResourceConfigMacro.h"
24 START_UI_CONFIG(OPTIONMENU);
26 ADD_COLOR_CONFIG(ITEM_TEXT_NORMAL, $W1121);
27 ADD_COLOR_CONFIG(ITEM_TEXT_PRESSED, $W1122);
28 ADD_COLOR_CONFIG(ITEM_BG_NORMAL, $W111);
29 ADD_COLOR_CONFIG(ITEM_BG_PRESSED, $B0520P);
30 ADD_COLOR_CONFIG(HANDLE_NORMAL, $B0518);
31 ADD_COLOR_CONFIG(HANDLE_PRESSED, $B043);
32 ADD_COLOR_CONFIG(ARROW_NORMAL, $W1121);
33 ADD_COLOR_CONFIG(ARROW_PRESSED, $W1122);
34 ADD_IMAGE_CONFIG(ITEM_BG_NORMAL, #00_panel_bg.9.png);
35 ADD_IMAGE_CONFIG(ITEM_BG_PRESSED, #00_panel_list_press_bg.9.png);
36 ADD_IMAGE_CONFIG(ITEM_BG_EFFECT_PRESSED, #00_panel_list_press_bg_ef.9.png);
37 ADD_IMAGE_CONFIG(CONTEXTUAL_POPUP_ARROW, #00_option_panel_contextual_popup_arrow.png);
38 ADD_IMAGE_CONFIG(HANDLE_BG_NORMAL, #00_panel_handle_bg.9.png);
39 ADD_IMAGE_CONFIG(HANDLE_BG_PRESSED, #00_panel_handle_bg.9.png);
40 ADD_IMAGE_CONFIG(HANDLE_BG_EFFECT_NORMAL, #00_panel_handle_bg_ef.9.png);
41 ADD_IMAGE_CONFIG(HANDLE_BG_EFFECT_PRESSED, #00_panel_handle_bg_ef_press.9.png);
42 ADD_IMAGE_CONFIG(HANDLE_ARROW_NORMAL, #00_panel_handle_arrow.png);
43 ADD_IMAGE_CONFIG(HANDLE_ARROW_PRESSED, #00_panel_handle_arrow.png);
45 START_UI_CONFIG_MODE(720x1280);
47 ADD_FIXED_VALUE_CONFIG(COLUMN_MAX, 2);
48 ADD_SHAPE_CONFIG(HANDLE_HEIGHT, 110);
49 ADD_SHAPE_CONFIG(HANDLE_ARROW_Y_POSITION, 28);
50 ADD_SHAPE_CONFIG(ITEM_HEIGHT, 112);
51 ADD_FIXED_VALUE_CONFIG(LINE_WIDTH, 2);
52 ADD_SHAPE_CONFIG(LEFT_MARGIN, 16);
53 ADD_SHAPE_CONFIG(RIGHT_MARGIN, 16);
54 ADD_SHAPE_CONFIG(TEXT_SIZE, 42);
55 ADD_SHAPE_CONFIG(TEXT_LEFT_MARGIN, 8);
56 ADD_SHAPE_CONFIG(TEXT_RIGHT_MARGIN, 8);
57 ADD_SHAPE_CONFIG(TEXT_TOP_MARGIN, 8);
58 ADD_SHAPE_CONFIG(TEXT_BOTTOM_MARGIN, 8);
59 ADD_SHAPE_CONFIG(ARROW_MARGIN, 24);
60 ADD_SHAPE_CONFIG(ITEM_PRESS_LEFT_MARGIN, 3);
61 ADD_SHAPE_CONFIG(ITEM_PRESS_RIGHT_MARGIN, 5);
62 ADD_SHAPE_CONFIG(ITEM_PRESS_TOP_MARGIN, 3);
63 ADD_SHAPE_CONFIG(ITEM_PRESS_BOTTOM_MARGIN, 3);
64 ADD_FIXED_VALUE_CONFIG(ITEM_PRESS_EDGE_MARGIN, 2);
66 END_UI_CONFIG_MODE(720x1280);
68 START_UI_CONFIG_MODE(1280x720);
70 ADD_FIXED_VALUE_CONFIG(COLUMN_MAX, 4);
72 END_UI_CONFIG_MODE(1280x720);
75 END_UI_CONFIG(OPTIONMENU);