2 * Copyright 2012 Samsung Electronics Co., Ltd
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
8 * http://www.tizenopensource.org/license
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.
17 #define ICON_BUTTON(iName, img_default, img_focus)\
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;\
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")\
39 SCRIPT_CUSTOM_PART("image_bg");\
40 SCRIPT_CUSTOM_PART("image_icon");\
48 SCRIPT_SET_IMAGE("image_bg", "00_picker_btn_press.png");\
49 SCRIPT_SET_IMAGE("image_icon", img_focus);\
57 SCRIPT_SET_IMAGE("image_bg", "00_picker_btn_normal.png");\
58 SCRIPT_SET_IMAGE("image_icon", img_default);\
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")