/* * * 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. */ // 480 x 920 //origin size 480x800 //HD size 720x1280 #define HD_SCALE 800/1280 #define WIDTH_OF_DAY_VIEW 480 #define HEIGHT_OF_DAY_VIEW 855*HD_SCALE #define HEIGHT_OF_DAY_LIST 914 #define HEIGHT_OF_ONE_ALL_DAY_ITEM 80 #define LS_HEIGHT_OF_DAY_LIST 450 #define LS_HEIGHT_OF_ONE_ALL_DAY_ITEM 80 #define HEIGHT_OF_LIST_TITLE 80 #define WIDTH_OF_LIST_TITLE 720 #define HEIGHT_OF_LIST 133 #define LEFT_PADDING_TITLE_TEXT 22 #define RIGHT_PADDING_TITLE_TEXT 100 #define RIGHT_PADDING_EXPAND_BUTTON 16 #define WIDTH_OF_EXPAND_BUTTON 80 #define HEIGHT_OF_EXPAND_BUTTON 80 #define WIDTH_OF_EXPAND_BUTTON_ICON 80 #define HEIGHT_OF_EXPAND_BUTTON_ICON 80 group { name, "main/day"; parts { part { name, "base"; type, RECT; description { state, "default" 0.0; color, 248 246 239 255; } } part { name, "list/title"; type, RECT; scale, 1; description { state, "default" 0.0; rel1 { relative: 0.0 0.0; to_x: "base"; to_y: "base"; } rel2 { relative: 0.0 0.0; to_x: "base"; to_y: "base"; } align, 0.0 0.0; visible, 0; } description { state, "default" 0.1; min, 0 HEIGHT_OF_LIST_TITLE; fixed, 0 1; align, 0 0; rel1 { relative: 0.0 0.0; to_x: "base"; to_y: "base"; } rel2 { relative: 1.0 0.0; to_x: "base"; to_y: "base"; } color, 230 229 222 255; } } part { name, "list/title/bottom/line"; type, RECT; scale, 1; description { state, "default" 0.0; rel1 { relative: 0.0 0.0; to_x: "base"; to_y: "base"; } rel2 { relative: 0.0 0.0; to_x: "base"; to_y: "base"; } align, 0.0 0.0; visible, 0; } description { state, "default" 0.1; min, 0 1; fixed, 0 1; align, 0 0; rel1 { relative: 0.0 1.0; to_x: "base"; to_y: "list/title"; } rel2 { relative: 1.0 1.0; to_x: "base"; to_y: "list/title"; } color, 169 169 69 255; } } part { name, "list/title/left_padding"; type, RECT; scale, 1; description { state, "default" 0.0; rel1 { relative: 0.0 0.0; to_x: "base"; to_y: "base"; } rel2 { relative: 0.0 0.0; to_x: "base"; to_y: "base"; } align, 0.0 0.0; visible, 0; } description { state, "default" 0.1; min, LEFT_PADDING_TITLE_TEXT 0; fixed, 1 0; align, 0 0; rel1 { relative: 0.0 0.0; to_x: "list/title"; to_y: "list/title"; } rel2 { relative: 0.0 1.0; to_x: "list/title"; to_y: "list/title"; } color, 0 0 0 0; } } part { name, "list/title/right_padding"; type, RECT; scale, 1; description { state, "default" 0.0; rel1 { relative: 0.0 0.0; to_x: "base"; to_y: "base"; } rel2 { relative: 0.0 0.0; to_x: "base"; to_y: "base"; } align, 0.0 0.0; visible, 0; } description { state, "default" 0.1; min, RIGHT_PADDING_TITLE_TEXT 0; fixed, 1 0; align, 1 0; rel1 { relative: 1.0 0.0; to_x: "list/title"; to_y: "list/title"; } rel2 { relative: 1.0 1.0; to_x: "list/title"; to_y: "list/title"; } color, 0 0 0 0; } } part { name, "list/expand/right_padding"; type, RECT; scale, 1; description { state, "default" 0.0; rel1 { relative: 0.0 0.0; to_x: "base"; to_y: "base"; } rel2 { relative: 0.0 0.0; to_x: "base"; to_y: "base"; } align, 0.0 0.0; visible, 0; } description { state, "default" 0.1; min, RIGHT_PADDING_EXPAND_BUTTON 0; fixed, 1 0; align, 1 0; rel1 { relative: 1.0 0.0; to_x: "list/title"; to_y: "list/title"; } rel2 { relative: 1.0 1.0; to_x: "list/title"; to_y: "list/title"; } color, 0 0 0 0; } } part { name, "list/title/text"; type, TEXT; scale, 1; description { state, "default" 0.0; rel1 { relative: 0.0 0.0; to_x: "base"; to_y: "base"; } rel2 { relative: 0.0 0.0; to_x: "base"; to_y: "base"; } text { font, "SLP:style=Regular"; size, 34; align, 0.0 0.5; } color, 0 0 0 255; align, 0.0 0.0; visible, 0; } description { state, "default" 0.1; rel1 { relative: 1.0 0.0; to_x: "list/title/left_padding"; to_y: "list/title"; } rel2 { relative: 0.0 1.0; to_x: "list/title/right_padding"; to_y: "list/title"; } text { font, "SLP:style=Regular"; size, 34; align, 0.0 0.5; } color, 0 0 0 255; } } part { name, "list/expand/bg"; scale, 1; mouse_events, 1; type, RECT; description { state, "default" 0.0; rel1 { relative: 0.0 0.0; to_x: "base"; to_y: "base"; } rel2 { relative: 0.0 0.0; to_x: "base"; to_y: "base"; } align, 0.0 0.0; visible, 0; } description { state, "default" 0.1; min: WIDTH_OF_EXPAND_BUTTON HEIGHT_OF_EXPAND_BUTTON; max: WIDTH_OF_EXPAND_BUTTON HEIGHT_OF_EXPAND_BUTTON; fixed: 1 1; rel1 { relative: 0.0 0.0; to_x: "list/expand/right_padding"; to_y: "list/title"; } rel2 { relative: 0.0 0.0; to_x: "list/expand/right_padding"; to_y: "list/title"; } align: 1.0 0.0; color: 0 0 0 0; } description { state, "default" 0.2; min: WIDTH_OF_EXPAND_BUTTON HEIGHT_OF_EXPAND_BUTTON; max: WIDTH_OF_EXPAND_BUTTON HEIGHT_OF_EXPAND_BUTTON; fixed: 1 1; rel1 { relative: 0.0 0.0; to_x: "list/expand/right_padding"; to_y: "list/title"; } rel2 { relative: 0.0 0.0; to_x: "list/expand/right_padding"; to_y: "list/title"; } align: 1.0 0.0; color: COLOR_OF_BUTTON_PRESS; } } part { name, "list/unexpand/bg"; scale, 1; mouse_events, 1; type, RECT; description { state, "default" 0.0; rel1 { relative: 0.0 0.0; to_x: "base"; to_y: "base"; } rel2 { relative: 0.0 0.0; to_x: "base"; to_y: "base"; } align, 0.0 0.0; visible, 0; } description { state, "default" 0.1; min: WIDTH_OF_EXPAND_BUTTON HEIGHT_OF_EXPAND_BUTTON; max: WIDTH_OF_EXPAND_BUTTON HEIGHT_OF_EXPAND_BUTTON; fixed: 1 1; rel1 { relative: 0.0 0.0; to_x: "list/expand/right_padding"; to_y: "list/title"; } rel2 { relative: 0.0 0.0; to_x: "list/expand/right_padding"; to_y: "list/title"; } align: 1.0 0.0; color: 0 0 0 0; } description { state, "default" 0.2; min: WIDTH_OF_EXPAND_BUTTON HEIGHT_OF_EXPAND_BUTTON; max: WIDTH_OF_EXPAND_BUTTON HEIGHT_OF_EXPAND_BUTTON; fixed: 1 1; rel1 { relative: 0.0 0.0; to_x: "list/expand/right_padding"; to_y: "list/title"; } rel2 { relative: 0.0 0.0; to_x: "list/expand/right_padding"; to_y: "list/title"; } align: 1.0 0.0; color: COLOR_OF_BUTTON_PRESS; } } part { name, "list/icon/expand"; scale, 1; mouse_events, 0; description { state, "default" 0.0; rel1 { relative: 0.0 0.0; to_x: "base"; to_y: "base"; } rel2 { relative: 0.0 0.0; to_x: "base"; to_y: "base"; } align, 0.0 0.0; visible, 0; } description { state, "default" 0.1; min: WIDTH_OF_EXPAND_BUTTON_ICON HEIGHT_OF_EXPAND_BUTTON_ICON; max: WIDTH_OF_EXPAND_BUTTON_ICON HEIGHT_OF_EXPAND_BUTTON_ICON; fixed: 1 1; rel1{ relative, 0.5 0.5; to, "list/expand/bg"; } rel2{ relative, 0.5 0.5; to, "list/expand/bg"; } align: 0.5 0.5; image { border_scale, 1; normal, CALENDAR_LIST_INDEX_OPEN; } } } part { name, "list/icon/unexpand"; scale, 1; mouse_events, 0; description { state, "default" 0.0; rel1 { relative: 0.0 0.0; to_x: "base"; to_y: "base"; } rel2 { relative: 0.0 0.0; to_x: "base"; to_y: "base"; } align, 0.0 0.0; visible, 0; } description { state, "default" 0.1; min: WIDTH_OF_EXPAND_BUTTON_ICON HEIGHT_OF_EXPAND_BUTTON_ICON; max: WIDTH_OF_EXPAND_BUTTON_ICON HEIGHT_OF_EXPAND_BUTTON_ICON; fixed: 1 1; rel1{ relative, 0.5 0.5; to, "list/unexpand/bg"; } rel2{ relative, 0.5 0.5; to, "list/unexpand/bg"; } align: 0.5 0.5; image { border_scale, 1; normal, CALENDAR_LIST_INDEX_CLOSE; } } } part { name, "list/sw"; type, SWALLOW; scale, 1; description { state, "default" 0.0; rel1 { relative: 0.0 1.0; to_x: "base"; to_y: "list/title/bottom/line"; } rel2 { relative: 1.0 1.0; to_x: "base"; to_y: "list/title/bottom/line"; } align, 0.0 0.0; visible, 0; } description { state, "default" 0.1; min, 0 HEIGHT_OF_LIST; fixed, 0 1; align, 0 0; rel1 { relative: 0.0 1.0; to_x: "base"; to_y: "list/title/bottom/line"; } rel2 { relative: 1.0 1.0; to_x: "base"; to_y: "list/title/bottom/line"; } } } part { name, "list/sw/bottom/line"; type, RECT; scale, 1; description { state, "default" 0.0; rel1 { relative: 0.0 1.0; to_x: "base"; to_y: "list/sw"; } rel2 { relative: 1.0 1.0; to_x: "base"; to_y: "list/sw"; } align, 0.0 0.0; visible, 0; } description { state, "default" 0.1; min, 0 1; fixed, 0 1; align, 0 0; rel1 { relative: 0.0 1.0; to_x: "base"; to_y: "list/sw"; } rel2 { relative: 1.0 1.0; to_x: "base"; to_y: "list/sw"; } color, 169 169 69 255; } } part { name, "cont/sw"; type, SWALLOW; scale, 1; description { state, "default" 0.0; rel1 { relative, 0.0 1.0; to_x, "base"; to_y, "list/sw"; } rel2.to, "base"; align, 0.5 0.0; } } part { name, "line/top"; type, RECT; description { state, "default" 0.0; min, 0 2; fixed, 0 1; rel1.to, "base"; rel2 { relative, 1.0 0.0; to, "base"; } color, COLOR_OF_TOP_LINE_FOR_DAY; align, 0.5 0.5; } } } programs { program { name, "list/none"; signal, "list,hide"; source, "prog"; action, STATE_SET "default" 0.0; target, "list/title"; target, "list/title/bottom/line"; target, "list/title/left_padding"; target, "list/title/right_padding"; target, "list/expand/right_padding"; target, "list/title/text"; target, "list/expand/bg"; target, "list/unexpand/bg"; target, "list/icon/expand"; target, "list/icon/unexpand"; target, "list/sw"; target, "list/sw/bottom/line"; } program { name, "list/unexpanded"; signal, "list,unexpanded"; source, "prog"; action, STATE_SET "default" 0.1; target, "list/title"; target, "list/title/bottom/line"; target, "list/title/left_padding"; target, "list/title/right_padding"; target, "list/expand/right_padding"; target, "list/title/text"; target, "list/expand/bg"; target, "list/icon/expand"; } program { name, "expand/down"; signal, "mouse,down,1"; source, "list/expand/bg"; action, STATE_SET "default" 0.2; target, "list/expand/bg"; } program { name, "expand/up"; signal, "mouse,up,1"; source, "list/expand/bg"; action, STATE_SET "default" 0.1; target, "list/expand/bg"; } program { name, "unexpand/down"; signal, "mouse,down,1"; source, "list/unexpand/bg"; action, STATE_SET "default" 0.2; target, "list/unexpand/bg"; } program { name, "unexpand/up"; signal, "mouse,up,1"; source, "list/unexpand/bg"; action, STATE_SET "default" 0.1; target, "list/unexpand/bg"; } program { name, "expand/clicked"; signal, "mouse,clicked,1"; source, "list/expand/bg"; action, STATE_SET "default" 0.1; target, "list/title"; target, "list/title/left_padding"; target, "list/title/right_padding"; target, "list/expand/right_padding"; target, "list/title/text"; target, "list/unexpand/bg"; target, "list/icon/unexpand"; target, "list/sw"; target, "list/sw/bottom/line"; } program { name, "expand/clicked/dump"; signal, "mouse,clicked,1"; source, "list/expand/bg"; action, STATE_SET "default" 0.0; target, "list/expand/bg"; target, "list/icon/expand"; } program { name, "unexpand/clicked"; signal, "mouse,clicked,1"; source, "list/unexpand/bg"; action, STATE_SET "default" 0.1; target, "list/title"; target, "list/title/left_padding"; target, "list/title/right_padding"; target, "list/expand/right_padding"; target, "list/title/text"; target, "list/expand/bg"; target, "list/icon/expand"; } program { name, "unexpand/clicked/dump"; signal, "mouse,clicked,1"; source, "list/unexpand/bg"; action, STATE_SET "default" 0.0; target, "list/unexpand/bg"; target, "list/icon/unexpand"; target, "list/sw"; target, "list/sw/bottom/line"; } } }