APPLY_RSA
[apps/home/ug-memo-efl.git] / theme / common.edc
1 /*
2 *
3 * Copyright 2012  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://www.tizenopensource.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
19 #define ICON_BUTTON(iName, img_default, img_focus)\
20 group {\
21     name: iName;\
22     images{\
23         image: img_default COMP;\
24         image: img_focus COMP;\
25         image: "00_picker_btn_press.png" COMP;\
26         image: "00_picker_btn_normal.png" COMP;\
27     }\
28     parts {\
29         PART_BG("bg")\
30         PART_BORDER_IMAGE("image_bg", "bg", "00_picker_btn_normal.png", 4, 4, 0, 0)\
31         PART_IMAGE("image_icon", "bg", img_default)\
32         PART_EVENT_RECT("event", "bg")\
33     }/* end parts */\
34 \
35     programs {\
36         program {\
37             name: "init";\
38             signal: "load";\
39             source: "";\
40             script {\
41                 SCRIPT_CUSTOM_PART("image_bg");\
42                 SCRIPT_CUSTOM_PART("image_icon");\
43             }\
44         } /* end program */\
45         program {\
46             name:   "focus";\
47             signal: "focus";\
48             source: "elm";\
49             script {\
50                 SCRIPT_SET_IMAGE("image_bg", "00_picker_btn_press.png");\
51                 SCRIPT_SET_IMAGE("image_icon", img_focus);\
52            }\
53         } /* end program */\
54         program {\
55             name:   "normal";\
56             signal: "normal";\
57             source: "elm";\
58             script {\
59                 SCRIPT_SET_IMAGE("image_bg", "00_picker_btn_normal.png");\
60                 SCRIPT_SET_IMAGE("image_icon", img_default);\
61            }\
62         } /* end program */\
63     }/* end programs */\
64 }
65
66 ICON_BUTTON("tl_font_size", "P02_icon_font_size.png", "P02_icon_font_size_press.png")
67 ICON_BUTTON("tl_font_color", "P02_icon_font_color.png", "P02_icon_font_color_press.png")
68 ICON_BUTTON("tl_stroke_size", "P02_icon_stroke.png", "P02_icon_stroke_press.png")
69 ICON_BUTTON("tl_stroke_color", "P02_icon_color.png", "P02_icon_color_focus.png")
70 ICON_BUTTON("tl_stroke_eraser", "P02_icon_eraser.png", "P02_icon_eraser_press.png")
71