/* * 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. */ group { name: GRP_VIEWER_VIEW; images { image: IMAGE_VIEWER_FAVORITE COMP; } parts { part { name: "bg"; type: RECT; scale: 1; description { state: "default" 0.0; color: 0 0 0 0; } } part { name: PART_VIEWER_BG; type: SWALLOW; scale: 1; description { state: "default" 0.0; rel2 { relative: 0.0 0.0; } rel2 { relative: 1.0 1.0; } align: 0.0 0.0; } } part { name: PART_VIEWER_CONTENT; type: SWALLOW; scale: 1; description { state: "default" 0.0; rel1.to: "bg"; rel2.to: "bg"; } } /* TOP */ part { name: "toparea"; type: RECT; scale: 1; description { state: "default" 0.0; min: 0 104; rel2 { relative: 1.0 0.0; } align: 0.5 0.0; fixed: 0 1; } description { state: "hide" 0.0; inherit: "default" 0.0; align: 0.5 1.0; visible: 0; } } part { name: "toparea_bg"; type: RECT; scale: 1; clip_to: "toparea"; description { state: "default" 0.0; color: 255 255 255 255; rel1.to: "toparea"; rel2.to: "toparea"; } } part { name: "padding_title"; type: SPACER; scale: 1; description { state: "default" 0.0; min: 35 0; rel1 { to: "toparea"; } rel2 { to: "toparea"; relative: 0.0 1.0; } fixed: 1 0; align: 0.0 0.5; } } part { name: PART_VIEWER_TITLE; type: TEXT; clip_to: "toparea"; scale: 1; description { state: "default" 0.0; min: 1600 0; rel1 { to: "padding_title"; relative: 1.0 0.0; } rel2 { to: "padding_title"; } text { font: FONT_LIGHT; size: 42; align: 0.0 0.5; } color: COLOR_TEXT_TITLE; fixed: 1 0; align: 0.0 0.5; } } part { name: PART_VIEWER_DATE; type: TEXT; clip_to: "toparea"; scale: 1; description { state: "default" 0.0; min: 470 0; rel1 { to: "padding_title"; relative: 1.0 0.0; } rel2 { to: "padding_title"; } text { font: FONT_LIGHT; size: 46; align: 0.0 0.5; } color: COLOR_TEXT_TITLE; fixed: 1 0; align: 0.0 0.5; } } part { name: PART_VIEWER_PAGE; type: TEXT; clip_to: "toparea"; scale: 1; description { state: "default" 0.0; min: 470 0; rel1 { to: "toparea"; relative: 0.5 0.5; } rel2 { to: "toparea"; relative: 0.5 0.5; } text { font: FONT_LIGHT; size: 46; align: 0.5 0.5; } color: COLOR_TEXT_TITLE; fixed: 1 0; align: 0.5 0.5; } } part { name: "padding_right"; type: SPACER; scale: 1; description { state: "default" 0.0; min: 30 0; rel1 { to: "toparea"; relative: 1.0 0.0; } rel2 { to: "toparea"; relative: 1.0 1.0; } fixed: 1 0; align: 1.0 0.5; } } part { name: PART_VIEWER_FAVORITE; type: IMAGE; clip_to: "toparea"; scale: 1; description { state: "default" 0.0; min: 42 42; rel1 { to: "padding_right"; relative: 0.0 0.5; } rel2 { to: "padding_right"; relative: 0.0 0.5; } fixed: 1 1; align: 1.0 0.5; visible: 0; } description { state: "show" 0.0; inherit: "default" 0.0; image.normal: IMAGE_VIEWER_FAVORITE; visible: 1; } } /* BOTTOM */ part { name: "bottomarea"; type: RECT; scale: 1; description { state: "default" 0.0; min: 0 143; rel1 { relative: 0.0 1.0; } align: 0.5 1.0; fixed: 0 1; } description { state: "hide" 0.0; inherit: "default" 0.0; align: 0.5 0.0; visible: 0; } } part { name: "bottomarea_bg"; type: RECT; scale: 1; clip_to: "bottomarea"; description { state: "default" 0.0; color: 255 255 255 255; rel1.to: "bottomarea"; rel2.to: "bottomarea"; } } part { name: "controls_bg"; type: RECT; clip_to: "bottomarea"; scale: 1; description { state: "default" 0.0; min: 900 143; rel1 { to: "bottomarea"; relative: 0.5 0.5; } rel2 { to: "bottomarea"; relative: 0.5 0.5; } fixed: 1 1; align: 0.5 0.5; visible: 0; } } /* controller buttons */ part { name: "control_btn0"; type: SWALLOW; clip_to: "bottomarea"; scale: 1; description { state: "default" 0.0; min: 180 143; rel1 { to: "controls_bg"; relative: 0.0 0.5; } rel2 { to: "controls_bg"; relative: 0.0 0.5; } fixed: 1 1; align: 0.0 0.5; } } part { name: "control_btn1"; type: SWALLOW; clip_to: "bottomarea"; scale: 1; description { state: "default" 0.0; min: 180 143; rel1 { to: "control_btn0"; relative: 1.0 0.5; } rel2 { to: "control_btn0"; relative: 1.0 0.5; } fixed: 1 1; align: 0.0 0.5; } } part { name: "control_btn2"; type: SWALLOW; clip_to: "bottomarea"; scale: 1; description { state: "default" 0.0; min: 180 143; rel1 { to: "control_btn1"; relative: 1.0 0.5; } rel2 { to: "control_btn1"; relative: 1.0 0.5; } fixed: 1 1; align: 0.0 0.5; } } part { name: "control_btn3"; type: SWALLOW; clip_to: "bottomarea"; scale: 1; description { state: "default" 0.0; min: 180 143; rel1 { to: "control_btn2"; relative: 1.0 0.5; } rel2 { to: "control_btn2"; relative: 1.0 0.5; } fixed: 1 1; align: 0.0 0.5; } } part { name: "control_btn4"; type: SWALLOW; clip_to: "bottomarea"; scale: 1; description { state: "default" 0.0; min: 180 143; rel1 { to: "control_btn3"; relative: 1.0 0.5; } rel2 { to: "control_btn3"; relative: 1.0 0.5; } fixed: 1 1; align: 0.0 0.5; } } /* extra buttons */ part { name: "control_btn5"; type: SWALLOW; clip_to: "bottomarea"; scale: 1; description { state: "default" 0.0; min: 114 143; rel1 { to: "bottomarea"; } rel2 { to: "bottomarea"; relative: 0.0 1.0; } fixed: 1 1; align: 0.0 0.5; } } part { name: "control_btn6"; type: SWALLOW; clip_to: "bottomarea"; scale: 1; description { state: "default" 0.0; min: 114 143; rel1 { to: "control_btn5"; relative: 1.0 0.5; } rel2 { to: "control_btn5"; relative: 1.0 0.5; } fixed: 1 1; align: 0.0 0.5; } } part { name: "control_btn7"; type: SWALLOW; clip_to: "bottomarea"; scale: 1; description { state: "default" 0.0; min: 114 143; rel1 { to: "control_btn8"; relative: 0.0 0.5; } rel2 { to: "control_btn8"; relative: 0.0 0.5; } fixed: 1 1; align: 1.0 0.5; } } part { name: "control_btn8"; type: SWALLOW; clip_to: "bottomarea"; scale: 1; description { state: "default" 0.0; min: 114 143; rel1 { to: "bottomarea"; relative: 1.0 0.0; } rel2 { to: "bottomarea"; relative: 1.0 1.0; } fixed: 1 1; align: 1.0 0.5; } } part { name: "padding_time"; type: SPACER; scale: 1; description { state: "default" 0.0; min: 35 0; rel1 { to: "bottomarea"; } rel2 { to: "bottomarea"; relative: 0.0 1.0; } fixed: 1 0; align: 0.0 0.5; } } part { name: PART_VIEWER_PROGRESS; type: TEXT; clip_to: "bottomarea"; scale: 1; description { state: "default" 0.0; min: 125 0; rel1 { to: "padding_time"; relative: 1.0 0.0; } rel2 { to: "padding_time"; } text { font: FONT_LIGHT; size: 31; align: 0.0 0.5; } color: COLOR_TEXT_SELECTED; fixed: 1 0; align: 0.0 0.5; } } part { name: PART_VIEWER_TOTAL; type: TEXT; clip_to: "bottomarea"; scale: 1; description { state: "default" 0.0; min: 150 0; rel1 { to: PART_VIEWER_PROGRESS; relative: 1.0 0.0; } rel2 { to: PART_VIEWER_PROGRESS; } text { font: FONT_LIGHT; size: 31; align: 0.0 0.5; } color: COLOR_TEXT_INDEX; fixed: 1 0; align: 0.0 0.5; } } part { name: PART_VIEWER_SLIDER; type: SWALLOW; scale: 1; description { state: "default" 0.0; min: 0 4; rel1 { to: "bottomarea"; relative: 0.0 0.0; } rel2 { to: "bottomarea"; relative: 1.0 0.0; } fixed: 0 1; align: 0.0 1.0; } description { state: "hide" 0.0; inherit: "default" 0.0; align: 0.0 0.0; visible: 0; } } /* CURTAIN */ part { name: "curtain"; type: RECT; scale: 1; description { state: "default" 0.0; rel2 { to: "bg"; relative: 0.0 0.0; } rel2 { to: "bg"; relative: 1.0 1.0; } align: 0.0 0.0; color: 255 255 255 255; } description { state: "show" 0.0; color: 255 255 255 0; visible: 0; } } } programs { program { name: SIG_SHOW_VIEW; signal: SIG_SHOW_VIEW; source: ""; action: STATE_SET "show" 0.0; target: "curtain"; transition: TRANSITION_SHOW_VIEW; } program { name: SIG_HIDE_VIEW; signal: SIG_HIDE_VIEW; source: ""; action: STATE_SET "default" 0.0; target: "curtain"; } program { name: SIG_HIDE_BAR; signal: SIG_HIDE_BAR; source: ""; action: STATE_SET "hide" 0.0; target: "toparea"; target: "bottomarea"; target: PART_VIEWER_SLIDER; transition: TRANSITION_SHOW_BAR; } program { name: SIG_SHOW_BAR; signal: SIG_SHOW_BAR; source: ""; action: STATE_SET "default" 0.0; target: "toparea"; target: "bottomarea"; target: PART_VIEWER_SLIDER; transition: TRANSITION_SHOW_BAR; after: SIG_SHOWED_BAR; } program { name: SIG_SHOWED_BAR; action: SIGNAL_EMIT SIG_SHOWED_BAR ""; } program { name: SIG_VIEWER_SHOW_FAV; signal: SIG_VIEWER_SHOW_FAV; source: ""; action: STATE_SET "show" 0.0; target: PART_VIEWER_FAVORITE; } program { name: SIG_VIEWER_HIDE_FAV; signal: SIG_VIEWER_HIDE_FAV; source: ""; action: STATE_SET "default" 0.0; target: PART_VIEWER_FAVORITE; } } }