/* * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved * * Licensed under the Apache License, Version 2.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://www.apache.org/licenses/LICENSE-2.0 * * 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. */ #include "../../include/defs.h" group { name, GRP_RECENT; parts { part { name, "bg"; type, RECT; scale, 1; description { state, "default" 0.0; color, 0 0 0 150; } } part { name, "guide"; type, RECT; scale, 1; description { state, "default" 0.0; rel1.relative, 0.0 1.0; min, 0 528; fixed, 1 1; align, 0.5 0.0; visible, 0; } description { state, "show" 0.0; inherit, "default" 0.0; min, 0 0; } } part { name, "clip"; type, RECT; description { state, "default" 0.0; color, 0 0 0 0; } description { state, "show" 0.0; inherit, "default" 0.0; color, 255 255 255 255; } } part { name, "area"; type, RECT; scale, 1; clip_to, "clip"; description { state, "default" 0.0; min, 0 528; rel1 { to, "guide"; relative, 0.0 1.0; } rel2.to, "guide"; fixed, 0 1; align, 0.5 1.0; } } part { name, "outside.up"; type, RECT; scale, 1; description { state, "default" 0.0; rel2 { to, "area"; relative, 1.0 0.0; } color, 0 0 0 0; fixed, 1 1; } } part { name, "pad.title"; type, RECT; scale, 1; description { state, "default" 0.0; rel1.to, "area"; rel2 { to, "area"; relative, 1.0 0.0; } min, 0 104; fixed, 0 1; align, 0.5 0.0; } } part { name, "pad.list"; type, RECT; scale, 1; description { state, "default" 0.0; rel1 { to, "pad.title"; relative, 0.0 1.0; } rel2.to, "area"; fixed, 1 1; color, 244 244 244 255; } } part { name, "title"; type, TEXT; scale, 1; description { state, "default" 0.0; rel1.to, "pad.title"; rel2.to, "pad.title"; text { size, 46; font, "TizenSans"; text, "Recent"; } color, 51 51 51 255; } } part { name, PART_RECENT_DELETE_ICON; type, SWALLOW; scale, 1; description { state, "default" 0.0; rel1 { to, "pad.title"; relative, 1.0 0.0; } rel2.to, "pad.title"; min, 82 104; fixed, 1 1; align, 1.0 0.5; } } part { name, "pad.contents.up"; type, RECT; scale, 1; description { state, "default" 0.0; rel1 { to, "pad.title"; relative, 0.0 1.0; } rel2 { to, "pad.title"; relative, 0.0 1.0; } min, 62 62; fixed, 1 1; align, 0.0 0.0; visible, 0; } } part { name, "pad.contents.down"; type, RECT; scale, 1; description { state, "default" 0.0; rel1 { to, "area"; relative, 1.0 1.0; } min, 0 62; fixed, 1 1; align, 1.0 1.0; visible, 0; } } part { name, PART_RECENT_NO_CONTENTS; type, TEXT; scale, 1; description { state, "default" 0.0; rel1 { to, "pad.title"; relative, 0.0 1.0; } text { size, 32; font, "TizenSans"; } fixed, 1 1; color, 0 0 0 178; } } part { name, PART_RECENT_CONTENTS; type, SWALLOW; scale, 1; description { state, "default" 0.0; rel1 { to, "pad.contents.up"; relative, 1.0 1.0; } rel2 { to, "pad.contents.down"; relative, 0.0 0.0; } fixed, 1 1; } } } programs { program { name, "sig,show"; signal, SIG_SHOW; source, SRC_PROG; action, STATE_SET "show" 0.0; transition, TRANSITION_DECEL; target, "clip"; target, "guide"; after, "sig,show,done"; } program { name, "sig,show,done"; action, SIGNAL_EMIT SIG_SHOW_DONE SRC_EDJE; } program { name, "sig,hide"; signal, SIG_HIDE; source, SRC_PROG; action, STATE_SET "default" 0.0; transition, TRANSITION_DECEL; target, "clip"; target, "guide"; after, "sig,hide,done"; } program { name, "sig,hide,done"; action, SIGNAL_EMIT SIG_HIDE_DONE SRC_EDJE; } program { name, "outside,up,clicked"; source, "outside.up"; signal, "mouse,clicked,1"; action, SIGNAL_EMIT SIG_HIDE SRC_PROG; } } } group { name, GRP_RECENT_DELETE; parts { part { name, "bg"; type, RECT; scale, 1; description { state, "default" 0.0; min, 82 104; color, 255 255 255 255; } description { state, "focus" 0.0; inherit, "default" 0.0; color, 0 119 246 255; } } part { name, "clip"; type, RECT; description { state, "default" 0.0; color, 0 0 0 0; } description { state, "focus" 0.0; inherit, "default" 0.0; color, 255 255 255 255; } } part { name, PART_RECENT_DELETE; type, SWALLOW; scale, 1; description { state, "default" 0.0; rel1.to, "bg"; rel2.to, "bg"; } } part { name, PART_RECENT_DELETE_FOCUS; type, SWALLOW; scale, 1; clip_to, "clip"; description { state, "default" 0.0; rel1.to, PART_RECENT_DELETE; rel2.to, PART_RECENT_DELETE; } } } programs { program { name, "sig,focus"; signal, SIG_FOCUS; source, SRC_PROG; action, STATE_SET "focus" 0.0; transition, TRANSITION_LINEAR; target, "bg"; target, "clip"; } program { name, "sig,unfocus"; signal, SIG_UNFOCUS; source, SRC_PROG; action, STATE_SET "default" 0.0; transition, TRANSITION_LINEAR; target, "bg"; target, "clip"; } } } group { name, GRP_RECENT_PREVIEW; parts { part { name, "bg"; type, RECT; scale, 1; description { state, "default" 0.0; min, 378 294; color, 113 128 147 255; } description { state, "focus" 0.0; inherit, "default" 0.0; color, 0 119 246 255; } } part { name, "thumbnail"; type, RECT; scale, 1; description { state, "default" 0.0; rel1.to, "bg"; rel2 { to, "bg"; relative, 1.0 0.0; } min, 0 198; fixed, 0 1; align, 0.5 0.0; color, 132 147 166 255; } } part { name, PART_RECENT_THUMBNAIL; type, SWALLOW; scale, 1; description { state, "default" 0.0; rel1.to, "thumbnail"; rel2.to, "thumbnail"; min, 100 100; fixed, 1 1; } } part { name, "border.up"; type, RECT; scale, 1; description { state, "default" 0.0; rel1.to, "thumbnail"; rel2 { to, "thumbnail"; relative, 1.0 0.0; } min, 0 3; fixed, 0 1; align, 0.5 0.0; color, 0 0 0 0; } description { state, "focus" 0.0; inherit, "default" 0.0; color, 0 119 246 255; } } part { name, "border.left"; type, RECT; scale, 1; description { state, "default" 0.0; rel1 { to, "border.up"; relative, 0.0 1.0; } rel2 { to, "thumbnail"; relative, 0.0 1.0; } min, 3 0; fixed, 1 0; align, 0.0 0.5; color, 0 0 0 0; } description { state, "focus" 0.0; inherit, "default" 0.0; color, 0 119 246 255; } } part { name, "border.right"; type, RECT; scale, 1; description { state, "default" 0.0; rel1 { to, "border.up"; relative, 1.0 1.0; } rel2.to, "thumbnail"; min, 3 0; fixed, 1 0; align, 1.0 0.5; color, 0 0 0 0; } description { state, "focus" 0.0; inherit, "default" 0.0; color, 0 119 246 255; } } part { name, "pad.icon"; type, RECT; scale, 1; description { state, "default" 0.0; rel1 { to, "thumbnail"; relative, 0.0 0.0; } rel2 { to, "thumbnail"; relative, 0.0 0.0; } min, 4 4; fixed, 1 1; align, 0.0 0.0; visible, 0; } } part { name, PART_RECENT_ICON; type, SWALLOW; scale, 1; description { state, "default" 0.0; rel1 { to, "pad.icon"; relative, 1.0 1.0; } rel2 { to, "pad.icon"; relative, 1.0 1.0; } min, 60 60; fixed, 1 1; align, 0.0 0.0; } } part { name, "pad.text.left"; type, RECT; scale, 1; description { state, "default" 0.0; min, 15 18; rel1 { to, "thumbnail"; relative, 0.0 1.0; } rel2 { to, "thumbnail"; relative, 0.0 1.0; } fixed, 1 1; align, 0.0 0.0; visible, 0; } } part { name, "pad.text.right"; type, RECT; scale, 1; description { state, "default" 0.0; min, 15 18; rel1 { to, "thumbnail"; relative, 1.0 1.0; } rel2 { to, "thumbnail"; relative, 1.0 1.0; } fixed, 1 1; align, 1.0 0.0; visible, 0; } } part { name, PART_RECENT_TITLE; type, SWALLOW; scale, 1; description { state, "default" 0.0; rel1 { to, "pad.text.left"; relative, 1.0 1.0; } rel2 { to, "pad.text.right"; relative, 0.0 1.0; } min, 0 28; fixed, 0 1; align, 0.5 0.0; } } part { name, PART_RECENT_SUBTITLE; type, SWALLOW; scale, 1; description { state, "default" 0.0; rel1 { to, PART_RECENT_TITLE; relative, 0.0 1.0; } rel2 { to, PART_RECENT_TITLE; relative, 1.0 1.0; } min, 0 24; fixed, 0 1; align, 0.5 0.0; } } } programs { program { name, "sig,focus"; signal, SIG_FOCUS; source, SRC_PROG; action, STATE_SET "focus" 0.0; transition, TRANSITION_DECEL; target, "bg"; target, "border.up"; target, "border.right"; target, "border.left"; } program { name, "sig,unfocus"; signal, SIG_UNFOCUS; source, SRC_PROG; action, STATE_SET "default" 0.0; transition, TRANSITION_DECEL; target, "bg"; target, "border.up"; target, "border.right"; target, "border.left"; } } } group { name, GRP_RECENT_ICON; parts { part { name, "bg"; type, RECT; scale, 1; description { state, "default" 0.0; min, 236 294; color, 113 128 147 255; } description { state, "focus" 0.0; inherit, "default" 0.0; color, 0 119 246 255; } } part { name, "thumbnail"; type, RECT; scale, 1; description { state, "default" 0.0; rel1.to, "bg"; rel2 { to, "bg"; relative, 1.0 0.0; } min, 0 198; fixed, 0 1; align, 0.5 0.0; color, 132 147 166 255; } } part { name, PART_RECENT_THUMBNAIL; type, SWALLOW; scale, 1; description { state, "default" 0.0; rel1 { to, "thumbnail"; relative, 0.5 0.5; } rel2 { to, "thumbnail"; relative, 0.5 0.5; } min, 100 100; fixed, 1 1; } } part { name, "border.up"; type, RECT; scale, 1; description { state, "default" 0.0; rel1.to, "thumbnail"; rel2 { to, "thumbnail"; relative, 1.0 0.0; } min, 0 3; fixed, 0 1; align, 0.5 0.0; color, 0 0 0 0; } description { state, "focus" 0.0; inherit, "default" 0.0; color, 0 119 246 255; } } part { name, "border.left"; type, RECT; scale, 1; description { state, "default" 0.0; rel1 { to, "border.up"; relative, 0.0 1.0; } rel2 { to, "thumbnail"; relative, 0.0 1.0; } min, 3 0; fixed, 1 0; align, 0.0 0.5; color, 0 0 0 0; } description { state, "focus" 0.0; inherit, "default" 0.0; color, 0 119 246 255; } } part { name, "border.right"; type, RECT; scale, 1; description { state, "default" 0.0; rel1 { to, "border.up"; relative, 1.0 1.0; } rel2.to, "thumbnail"; min, 3 0; fixed, 1 0; align, 1.0 0.5; color, 0 0 0 0; } description { state, "focus" 0.0; inherit, "default" 0.0; color, 0 119 246 255; } } part { name, "pad.icon"; type, RECT; scale, 1; description { state, "default" 0.0; rel1 { to, "thumbnail"; relative, 0.0 0.0; } rel2 { to, "thumbnail"; relative, 0.0 0.0; } min, 4 4; fixed, 1 1; align, 0.0 0.0; visible, 0; } } part { name, PART_RECENT_ICON; type, SWALLOW; scale, 1; description { state, "default" 0.0; rel1 { to, "pad.icon"; relative, 1.0 1.0; } rel2 { to, "pad.icon"; relative, 1.0 1.0; } min, 60 60; fixed, 1 1; align, 0.0 0.0; } } part { name, "pad.text.left"; type, RECT; scale, 1; description { state, "default" 0.0; min, 15 18; rel1 { to, "thumbnail"; relative, 0.0 1.0; } rel2 { to, "thumbnail"; relative, 0.0 1.0; } fixed, 1 1; align, 0.0 0.0; visible, 0; } } part { name, "pad.text.right"; type, RECT; scale, 1; description { state, "default" 0.0; min, 15 18; rel1 { to, "thumbnail"; relative, 1.0 1.0; } rel2 { to, "thumbnail"; relative, 1.0 1.0; } fixed, 1 1; align, 1.0 0.0; visible, 0; } } part { name, PART_RECENT_TITLE; type, SWALLOW; scale, 1; description { state, "default" 0.0; rel1 { to, "pad.text.left"; relative, 1.0 1.0; } rel2 { to, "pad.text.right"; relative, 0.0 1.0; } min, 0 28; fixed, 0 1; align, 0.5 0.0; } } part { name, PART_RECENT_SUBTITLE; type, SWALLOW; scale, 1; description { state, "default" 0.0; rel1 { to, PART_RECENT_TITLE; relative, 0.0 1.0; } rel2 { to, PART_RECENT_TITLE; relative, 1.0 1.0; } min, 0 24; fixed, 0 1; align, 0.5 0.0; } } } programs { program { name, "sig,focus"; signal, SIG_FOCUS; source, SRC_PROG; action, STATE_SET "focus" 0.0; transition, TRANSITION_DECEL; target, "bg"; target, "border.up"; target, "border.right"; target, "border.left"; } program { name, "sig,unfocus"; signal, SIG_UNFOCUS; source, SRC_PROG; action, STATE_SET "default" 0.0; transition, TRANSITION_DECEL; target, "bg"; target, "border.up"; target, "border.right"; target, "border.left"; } } }