/* * * Copyright 2012 Samsung Electronics Co., Ltd * * Licensed under the Flora License, Version 1.1 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://floralicense.org/license/ * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ group{ name: "color_selector"; parts{ PART_BG("bg") PART_V_PIXEL_RECT("rect.up", 200, "bg", 0.0, 0.0) PART_PIXEL_RECT("border.bg", (500+6), (160+5), 0.5, 0.5, "rect.up", 0.5, 0.5) PART_PIXEL_RECT("color.bg", 500, 160, 0.5, 0.5, "rect.up", 0.5, 0.5) PART_SWALLOW_REL("elm.swallow.color", 0.0, 0.0, "color.bg", 1.0, 1.0, "color.bg") PART_EVENT_RECT("event", "rect.up") PART_SWALLOW_REL("elm.swallow.selector", 4/480, 1.0, "rect.up", (480-4)/480, 1.0, "bg") }/* end parts */ programs { program { name: "init"; signal: "load"; source: ""; script { SCRIPT_CUSTOM_PART(bg); SCRIPT_CUSTOM_PART(border.bg); } } /* end program */ program { name: "black_theme"; signal: "black"; source: "elm"; script { SCRIPT_SET_COLOR(bg, 0, 0, 0, 255); SCRIPT_SET_COLOR(border.bg, 255, 255, 255, 255); } } program { name: "white_theme"; signal: "white"; source: "elm"; script { SCRIPT_SET_COLOR(bg, 255, 255, 255, 255); SCRIPT_SET_COLOR(border.bg, 0, 0, 0, 255); } } }/* end programs */ }/* end group */ group{ name: "pencil_size_selector"; parts{ PART_BG("bg") PART_SWALLOW("bg.color", "bg") PART_RECT("rect.up", 0.0, 0.0, "bg", 1.0, 0.5, "bg") PART_PIXEL_RECT("pencil.bg", 300, 0, 0.5, 0.5, "rect.up", 0.5, 0.5) PART_SWALLOW("elm.swallow.pencil", "pencil.bg") PART_EVENT_RECT("event", "rect.up") PART_SWALLOW_REL("elm.swallow.selector", 5/480, 0.5, "bg", (480-5)/480, 1.0, "bg") }/* end parts */ }/* end group */ group{ name: "font_size_selector"; parts{ PART_BG("bg") PART_SWALLOW("bg.color", "bg") PART_RECT("rect.up", 0.0, 0.0, "bg", 1.0, 0.5, "bg") PART_SWALLOW("elm.swallow.label", "rect.up") PART_EVENT_RECT("event", "rect.up") PART_SWALLOW_REL("elm.swallow.selector", 5/480, 0.5, "bg", (480-5)/480, 1.0, "bg") }/* end parts */ }/* end group */ group{ name: "edit_toolbar"; parts{ PART_BG("bg") /* 720 x 86 */ PART_COLOR_RECT("color", "bg", 204, 204, 204, 255) PART_SWALLOW_REL("elm.swallow.btn1", (10)/720, 10/86, "bg", (10+74)/720, (86-10)/86, "bg") PART_SWALLOW_REL("elm.swallow.btn2", (10+16+74)/720, 10/86, "bg", (10+16+74*2)/720, (86-10)/86, "bg") PART_SWALLOW_REL("elm.swallow.btn3", (10+16*2+74*2)/720, 10/86, "bg", (10+16*2+74*3)/720, (86-10)/86, "bg") PART_SWALLOW_REL("elm.swallow.btn4", (720-10-160)/720, 10/86, "bg", (720-10)/720, (86-10)/86, "bg") PART_V_PIXEL_RECT("bottom_margin", 1, "bg", 1.0, 0.0) PART_COLOR_RECT("bottom_margin_color", "bottom_margin", 204, 204, 204, 255) }/* end parts */ }/* end group */