/* * * Copyright 2012 Samsung Electronics Co., Ltd * * Licensed under the Flora License, Version 1.0 (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. */ #define WIDTH_OF_TITLE (1280) #define HEIGHT_OF_TITLE (108) #define WIDTH_OF_TITLE_INC (90) #define WIDTH_OF_TITLE_INC_RECT (100) #define HEIGHT_OF_TITLE_INC_RECT (50) #define OFFSET_WIDTH_OF_TITLE_INC (20) #define OFFSET_HEIGHT_OF_TITLE_INC (10) #define OFFSET_OF_TITLE_INC (71) #define HEIGHT_OF_TITLE_CALENDAR (48) #define HEIGHT_OF_TITLE_ACCOUNT (40) #define OFFSET_OF_ICON_RIGHT (5) #define HEIGHT_OF_ICON (48) // 462 x 632 group { name, "main/title"; images { image, "P01_spin_left_press.png" COMP; image, "P01_spin_right_press.png" COMP; image, "P01_spin_right.png" COMP; image, "P01_spin_left.png" COMP; } styles { style { name, "main/title"; base, "font=SLP:style=Medium font_size=40 align=center color=#000000ff wrap=none"; tag, "br" "\n"; tag, "hilight" "+ color=#ffff"; tag, "b" "+ color=#ffff"; tag, "g38" "+ color=#879E19 font="FONT_LIG" font_size=38"; tag, "tab" "\t"; } style { name, "main/title/selected"; base, "font=SLP:style=Medium font_size=40 align=center color=#ffffffff wrap=none"; tag, "br" "\n"; tag, "hilight" "+ color=#ffff"; tag, "b" "+ color=#ffff"; tag, "g38" "+ color=#879E19 font="FONT_LIG" font_size=38"; tag, "tab" "\t"; } } parts { part { name, "base"; type, RECT; description { state, "default" 0.0; color, 248 246 239 255;; } } part { name, "title/text/bg"; mouse_events, 0; scale, 1; description { state, "default" 0.0; rel1.to, "title/text"; rel2.to, "title/text"; image { normal, CALENDAR_SELSECTED; border, 3 3 3 3; border_scale,1 ; } visible, 0; } description { state, "default" 0.1; inherit, "default" 0.0; visible, 1; } } part { name, "title/text"; type, TEXTBLOCK; scale, 1; mouse_events, 1; description { state, "default" 0.0; fixed, 0 1; rel1 { relative, 1.0 0.5; to_x, "title/left"; to_y, "base"; } rel2 { relative, 0.0 0.5; to_x, "title/right"; to_y, "base"; } text { style, "main/title"; min, 0 1; } } description { state, "default" 0.1; fixed, 0 1; rel1 { relative, 1.0 0.5; to_x, "title/left"; to_y, "base"; } rel2 { relative, 0.0 0.5; to_x, "title/right"; to_y, "base"; } text { style, "main/title/selected"; min, 0 1; } } } part { name, "title/left"; type, RECT; scale, 1; description { state, "default" 0.0; min, 58 0; fixed, 1 0; rel1.to, "base"; rel2 { relative, 0.0 1.0; to, "base"; } align, 0.0 0.5; color, 0 0 0 0; } } part { name, "title/left/img"; scale, 1; mouse_events, 0; description { state, "default" 0.0; min, 12 24; fixed, 1 1; rel1 { relative, 0.5 0.5; to, "title/left"; } rel2 { relative, 0.5 0.5; to, "title/left"; } align, 0.5 0.5; image.normal, "P01_spin_left.png"; } description { state, "default" 0.1; inherit, "default" 0.0; image.normal, "P01_spin_left_press.png"; } } part { name, "title/right"; type, RECT; scale, 1; description { state, "default" 0.0; min, 58 0; fixed, 1 0; rel1 { relative, 1.0 0.0; to, "base"; } rel2.to, "base"; align, 1.0 0.5; color, 0 0 0 0; } } part { name, "title/right/img"; scale, 1; mouse_events, 0; description { state, "default" 0.0; min, 12 24; fixed, 1 1; rel1 { relative, 0.5 0.5; to, "title/right"; } rel2 { relative, 0.5 0.5; to, "title/right"; } align, 0.5 0.5; image.normal, "P01_spin_right.png"; } description { state, "default" 0.1; inherit, "default" 0.0; image.normal, "P01_spin_right_press.png"; } } } programs { program { name, "title/left/down"; signal, "mouse,down,1"; source, "title/left"; action, SIGNAL_EMIT "start,dec" "title"; } program { name, "title/left/mouse_down"; signal, "mouse,down,1"; source, "title/left"; action, STATE_SET "default" 0.1; target, "title/left/img"; } program { name, "title/left/up"; signal, "mouse,up,1"; source, "title/left"; action, SIGNAL_EMIT "stop,dec" "title"; } program { name, "title/left/mouse_up"; signal, "mouse,up,1"; source, "title/left"; action, STATE_SET "default" 0.0; target, "title/left/img"; } program { name, "title/right/down"; signal, "mouse,down,1"; source, "title/right"; action, SIGNAL_EMIT "start,inc" "title"; } program { name, "title/right/mouse_down"; signal, "mouse,down,1"; source, "title/right"; action, STATE_SET "default" 0.1; target, "title/right/img"; } program { name, "title/right/up"; signal, "mouse,up,1"; source, "title/right"; action, SIGNAL_EMIT "stop,inc" "title"; } program { name, "title/right/mouse_up"; signal, "mouse,up,1"; source, "title/right"; action, STATE_SET "default" 0.0; target, "title/right/img"; } } }