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_ResourceTabConfig.cpp
20 * @brief This is the implementation file for the color, image and shape properties of Tab.
23 #include "FUi_ResourceTabConfig.h"
27 ADD_COLOR_CONFIG(ITEM_BG_NORMAL, $B0513);
28 ADD_COLOR_CONFIG(ITEM_BG_PRESSED, $B0513);
29 ADD_COLOR_CONFIG(ITEM_BG_EFFECT_PRESSED, $B0514P1);
30 ADD_COLOR_CONFIG(ITEM_BG_SELECTED, $B0513);
31 ADD_COLOR_CONFIG(ITEM_BG_HIGHLIGHTED, $B0513);
32 ADD_COLOR_CONFIG(ITEM_BG_DISABLED, $B0513);
33 ADD_COLOR_CONFIG(ITEM_TEXT_NORMAL, $B052L6);
34 ADD_COLOR_CONFIG(ITEM_TEXT_PRESSED, $B052L6);
35 ADD_COLOR_CONFIG(ITEM_TEXT_SELECTED, $B052L6P);
36 ADD_COLOR_CONFIG(ITEM_TEXT_HIGHLIGHTED, $B052L1P);
37 ADD_COLOR_CONFIG(ITEM_TEXT_DISABLED, $B052L6);
38 ADD_COLOR_CONFIG(DIVIDER_LEFT_HALF, $B0221);
39 ADD_COLOR_CONFIG(DIVIDER_RIGHT_HALF, $B0222);
40 //ADD_IMAGE_CONFIG(VERTICAL_DIVIDER_NORMAL, #00_divider_line.#.png);
41 ADD_IMAGE_CONFIG(ITEM_SELECTED, #00_tab_focus.#.png);
42 ADD_IMAGE_CONFIG(ITEM_BG_NORMAL, #00_tab_bg.#.png);
43 ADD_IMAGE_CONFIG(ITEM_BG_PRESSED, #00_tab_bg.#.png);
44 ADD_IMAGE_CONFIG(ITEM_BG_SELECTED, #00_tab_bg.#.png);
45 ADD_IMAGE_CONFIG(ITEM_BG_HIGHLIGHTED, #00_tab_bg.#.png);
46 ADD_IMAGE_CONFIG(ITEM_BG_DISABLED, #00_tab_bg.#.png);
47 ADD_IMAGE_CONFIG(ITEM_BG_EFFECT_PRESSED, #00_tab_press_ef.#.png);
48 ADD_IMAGE_CONFIG(ITEM_BG_EFFECT_SELECTED, #00_tab_press_ef.#.png);
49 ADD_IMAGE_CONFIG(ITEM_BG_EFFECT_HIGHLIGHTED, #00_tab_press_ef.#.png);
50 ADD_IMAGE_CONFIG(TAB_BOUNCE_EFFECT_LEFT, #00_effect_tab_bounce_left.png);
51 ADD_IMAGE_CONFIG(TAB_BOUNCE_EFFECT_RIGHT, #00_effect_tab_bounce_right.png);
54 START_UI_CONFIG_MODE(480x800);
56 ADD_SHAPE_CONFIG(SCREEN_HEIGHT, _SCREEN_HEIGHT_);
57 ADD_SHAPE_CONFIG(SCREEN_WIDTH, 480);
59 END_UI_CONFIG_MODE(480x800);
61 START_UI_CONFIG_MODE(720x1280);
63 ADD_FIXED_VALUE_CONFIG(ITEM_MAX_COUNT, 4);
64 ADD_SHAPE_CONFIG(LEFT_MARGIN, 16);
65 ADD_SHAPE_CONFIG(RIGHT_MARGIN, 16);
66 ADD_SHAPE_CONFIG(SELECTED_LINE_LEFT_MARGIN, 16);
67 ADD_SHAPE_CONFIG(SELECTED_LINE_RIGHT_MARGIN, 16);
68 ADD_SHAPE_CONFIG(SELECTED_LINE_HEIGHT, 3);
69 ADD_SHAPE_CONFIG(SCREEN_WIDTH, 720);
70 ADD_SHAPE_CONFIG(SCREEN_HEIGHT, _SCREEN_HEIGHT_);
71 ADD_SHAPE_CONFIG(HEIGHT, 117);
72 ADD_SHAPE_CONFIG(ICON_TEXT_HEIGHT, 111);
73 ADD_FIXED_VALUE_CONFIG(FONT_CHANGE_ITEM_COUNT, 3);
74 ADD_SHAPE_CONFIG(FONT_SIZE_01, 30);
75 ADD_SHAPE_CONFIG(FONT_SIZE_02, 26);
76 ADD_SHAPE_CONFIG(FONT_SIZE_03, 24);
77 ADD_SHAPE_CONFIG(MULTILINE_FONT_SIZE_01, 30);
78 ADD_SHAPE_CONFIG(MULTILINE_FONT_SIZE_02, 26);
79 ADD_SHAPE_CONFIG(MULTILINE_FONT_SIZE_03, 24);
80 ADD_SHAPE_CONFIG(ICON_TEXT_FONT_SIZE_01, 30);
81 ADD_SHAPE_CONFIG(ICON_TEXT_FONT_SIZE_02, 26);
82 ADD_SHAPE_CONFIG(ICON_TEXT_FONT_SIZE_03, 24);
83 ADD_SHAPE_CONFIG(TOP_MARGIN, 22);
84 ADD_SHAPE_CONFIG(BOTTOM_MARGIN, 21);
85 ADD_SHAPE_CONFIG(ITEM_LEFT_MARGIN, 10);
86 ADD_SHAPE_CONFIG(ITEM_RIGHT_MARGIN, 10);
87 ADD_SHAPE_CONFIG(ICON_TEXT_TOP_MARGIN, 21);
88 ADD_SHAPE_CONFIG(ICON_TEXT_ICON_WIDTH, 44);
89 ADD_SHAPE_CONFIG(ICON_TEXT_ICON_HEIGHT, 44);
90 ADD_SHAPE_CONFIG(ICON_TEXT_BOTTOM_MARGIN, 20);
91 ADD_FIXED_VALUE_CONFIG(ICON_TEXT_GAP, 8);
92 ADD_SHAPE_CONFIG(ICON_WIDTH, 64);
93 ADD_SHAPE_CONFIG(ICON_HEIGHT, 64);
94 ADD_SHAPE_CONFIG(BADGE_ICON_MARGIN, 6);
95 ADD_FIXED_VALUE_CONFIG(DIVIDER_WIDTH, 4);
96 ADD_SHAPE_CONFIG(DIVIDER_HEIGHT, 26);
97 ADD_SHAPE_CONFIG(TAB_MINIMUM_SIZE, 342);
99 END_UI_CONFIG_MODE(720x1280);
101 START_UI_CONFIG_MODE(1280x720);
103 ADD_SHAPE_CONFIG(HEIGHT, 91);
104 ADD_SHAPE_CONFIG(SCREEN_WIDTH, 1280);
105 ADD_SHAPE_CONFIG(SCREEN_HEIGHT, 720);
106 ADD_SHAPE_CONFIG(ICON_TEXT_HEIGHT, 142);
107 ADD_SHAPE_CONFIG(LEFT_MARGIN, 34);
108 ADD_SHAPE_CONFIG(RIGHT_MARGIN, 34);
109 ADD_SHAPE_CONFIG(ICON_TEXT_FONT_SIZE_01, 26);
110 ADD_SHAPE_CONFIG(TOP_MARGIN, 12);
111 ADD_SHAPE_CONFIG(BOTTOM_MARGIN, 11);
112 ADD_SHAPE_CONFIG(ICON_TEXT_TOP_MARGIN, 19);
113 ADD_SHAPE_CONFIG(ICON_TEXT_BOTTOM_MARGIN, 19);
115 END_UI_CONFIG_MODE(1280x720);