apply tizen_2.2 gui
[platform/framework/native/uifw.git] / src / ui / resource / FUi_ResourceButtonConfig.cpp
1 //
2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
4 //
5 // Licensed under the Apache License, Version 2.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://www.apache.org/licenses/LICENSE-2.0/
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  * @file                FUi_ResourceButtonConfig.cpp
19  * @brief               This is the implementation file for the properties of Button.
20  */
21
22 #include "FUi_ResourceButtonConfig.h"
23
24 START_UI_CONFIG(BUTTON);
25 {
26         ADD_COLOR_CONFIG(BG_NORMAL, $W011);
27         ADD_COLOR_CONFIG(BG_DISABLED, $W011);
28         ADD_COLOR_CONFIG(BG_PRESSED, $B042);
29         ADD_COLOR_CONFIG(BG_HIGHLIGHTED, $W161);
30
31         ADD_COLOR_CONFIG(TEXT_NORMAL, $F031L1);
32         ADD_COLOR_CONFIG(TEXT_DISABLED, $F031L1D);
33         ADD_COLOR_CONFIG(TEXT_PRESSED, $F031L1P);
34         ADD_COLOR_CONFIG(TEXT_HIGHLIGHTED, $F031L1);
35
36         ADD_IMAGE_CONFIG(BG_NORMAL, #00_button_01.#.png);
37         ADD_IMAGE_CONFIG(BG_DISABLED, #00_button_01.#.png);
38         ADD_IMAGE_CONFIG(BG_PRESSED, #00_button_01.#.png);
39         ADD_IMAGE_CONFIG(BG_HIGHLIGHTED, #00_button_01_focus.#.png);
40
41         ADD_IMAGE_CONFIG(BG_EFFECT_NORMAL, #00_button_01_ef.#.png);
42         ADD_IMAGE_CONFIG(BG_EFFECT_DISABLED, #00_button_01_dim_ef.#.png);
43         ADD_IMAGE_CONFIG(BG_EFFECT_PRESSED, #00_button_01_press_ef.#.png);
44         ADD_IMAGE_CONFIG(BG_EFFECT_HIGHLIGHTED, #00_button_01_ef.#.png);
45
46         START_UI_CONFIG_MODE(480x800);
47                 ADD_DIMENSION_CONFIG(MIN_SIZE, 0, 0);
48         END_UI_CONFIG_MODE(480x800);
49
50         START_UI_CONFIG_MODE(720x1280);
51                 ADD_SHAPE_CONFIG(DEFAULT_FONT_SIZE, 36);
52                 ADD_SHAPE_CONFIG(MULTILINE_FONT_SIZE, 28);
53                 ADD_SHAPE_CONFIG(LEFT_MARGIN, 12);
54                 ADD_SHAPE_CONFIG(TOP_MARGIN, 4);
55                 ADD_SHAPE_CONFIG(RIGHT_MARGIN, 12);
56                 ADD_SHAPE_CONFIG(BOTTOM_MARGIN, 4);
57                 ADD_FIXED_VALUE_CONFIG(TEXT_MAX_LENGTH, 60);
58                 ADD_DIMENSION_CONFIG(MIN_SIZE, 0, 0);
59         END_UI_CONFIG_MODE(720x1280);
60
61         START_UI_CONFIG_MODE(1280x720);
62                 ADD_SHAPE_CONFIG(DEFAULT_FONT_SIZE, 36);
63                 ADD_SHAPE_CONFIG(MULTILINE_FONT_SIZE, 28);
64                 ADD_SHAPE_CONFIG(LEFT_MARGIN, 12);
65                 ADD_SHAPE_CONFIG(TOP_MARGIN, 4);
66                 ADD_SHAPE_CONFIG(RIGHT_MARGIN, 12);
67                 ADD_SHAPE_CONFIG(BOTTOM_MARGIN, 4)
68                 ADD_FIXED_VALUE_CONFIG(TEXT_MAX_LENGTH, 60);
69                 ADD_DIMENSION_CONFIG(MIN_SIZE, 0, 0);
70         END_UI_CONFIG_MODE(1280x720);
71 }
72 END_UI_CONFIG(BUTTON);