apply FSL(Flora Software License)
[apps/home/memo.git] / theme / common.edc
1 /*
2   * Copyright 2012  Samsung Electronics Co., Ltd
3   * 
4   * Licensed under the Flora License, Version 1.0 (the "License");
5   * you may not use this file except in compliance with the License.
6   * You may obtain a copy of the License at
7   * 
8   *     http://www.tizenopensource.org/license
9   * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16
17 #define ICON_BUTTON(iName, img_default, img_focus)\
18 group {\
19     name: iName;\
20     images{\
21         image: img_default COMP;\
22         image: img_focus COMP;\
23         image: "00_picker_btn_press.png" COMP;\
24         image: "00_picker_btn_normal.png" COMP;\
25     }\
26     parts {\
27         PART_BG("bg")\
28         PART_BORDER_IMAGE("image_bg", "bg", "00_picker_btn_normal.png", 4, 4, 0, 0)\
29         PART_IMAGE("image_icon", "bg", img_default)\
30         PART_EVENT_RECT("event", "bg")\
31     }/* end parts */\
32 \
33     programs {\
34         program {\
35             name: "init";\
36             signal: "load";\
37             source: "";\
38             script {\
39                 SCRIPT_CUSTOM_PART("image_bg");\
40                 SCRIPT_CUSTOM_PART("image_icon");\
41             }\
42         } /* end program */\
43         program {\
44             name:   "focus";\
45             signal: "focus";\
46             source: "elm";\
47             script {\
48                 SCRIPT_SET_IMAGE("image_bg", "00_picker_btn_press.png");\
49                 SCRIPT_SET_IMAGE("image_icon", img_focus);\
50            }\
51         } /* end program */\
52         program {\
53             name:   "normal";\
54             signal: "normal";\
55             source: "elm";\
56             script {\
57                 SCRIPT_SET_IMAGE("image_bg", "00_picker_btn_normal.png");\
58                 SCRIPT_SET_IMAGE("image_icon", img_default);\
59            }\
60         } /* end program */\
61     }/* end programs */\
62 }
63
64 ICON_BUTTON("tl_font_size", "P02_icon_font_size.png", "P02_icon_font_size_press.png")
65 ICON_BUTTON("tl_font_color", "P02_icon_font_color.png", "P02_icon_font_color_press.png")
66 ICON_BUTTON("tl_stroke_size", "P02_icon_stroke.png", "P02_icon_stroke_press.png")
67 ICON_BUTTON("tl_stroke_color", "P02_icon_color.png", "P02_icon_color_focus.png")
68 ICON_BUTTON("tl_stroke_eraser", "P02_icon_eraser.png", "P02_icon_eraser_press.png")
69