Tizen 2.1 base
[framework/osp/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 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  * @file                FUi_ResourceButtonConfig.cpp
19  * @brief               This is the implementation file for the properties of Button.
20  */
21
22 #include "FUi_ResourceConfigMacro.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, $B042);
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, $F031L1P);
35
36         ADD_IMAGE_CONFIG(BG_NORMAL, #00_button_02.9.png);
37         ADD_IMAGE_CONFIG(BG_DISABLED, #00_button_02.9.png);
38         ADD_IMAGE_CONFIG(BG_PRESSED, #00_button_02.9.png);
39         ADD_IMAGE_CONFIG(BG_HIGHLIGHTED, #00_button_02.9.png);
40
41         ADD_IMAGE_CONFIG(BG_EFFECT_NORMAL, #00_button_02_ef.9.png);
42         ADD_IMAGE_CONFIG(BG_EFFECT_DISABLED, #00_button_03_dim_ef.9.png);
43         ADD_IMAGE_CONFIG(BG_EFFECT_PRESSED, #00_button_02_ef_press.9.png);
44         ADD_IMAGE_CONFIG(BG_EFFECT_HIGHLIGHTED, #00_button_02_ef_press.9.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, 32);
52                 ADD_SHAPE_CONFIG(MULTILINE_FONT_SIZE, 28);
53                 ADD_SHAPE_CONFIG(LEFT_MARGIN, 12);
54                 ADD_SHAPE_CONFIG(TOP_MARGIN, 4);
55                 ADD_FIXED_VALUE_CONFIG(TEXT_MAX_LENGTH, 60);
56                 ADD_DIMENSION_CONFIG(MIN_SIZE, 0, 0);
57         END_UI_CONFIG_MODE(720x1280);
58
59         START_UI_CONFIG_MODE(1280x720);
60                 ADD_SHAPE_CONFIG(DEFAULT_FONT_SIZE, 32);
61                 ADD_SHAPE_CONFIG(MULTILINE_FONT_SIZE, 28);
62                 ADD_SHAPE_CONFIG(LEFT_MARGIN, 12);
63                 ADD_SHAPE_CONFIG(TOP_MARGIN, 4);
64                 ADD_FIXED_VALUE_CONFIG(TEXT_MAX_LENGTH, 60);
65                 ADD_DIMENSION_CONFIG(MIN_SIZE, 0, 0);
66         END_UI_CONFIG_MODE(1280x720);
67 }
68 END_UI_CONFIG(BUTTON);