/* * * 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. */ // Main view layout #define HEIGHT_OF_MAIN_VIEW 1280 #define WIDTH_OF_MAIN_VIEW 720 #define HEIGHT_OF_TITLE 94 #define WIDTH_OF_TABLBAR 80 #define HEIGHT_OF_TABBAR 1008 #define HEIGHT_OF_TABBAR_ITEM 168 #define OFFSET_OF_TRANSPARENT 8 #define HEIGHT_OF_TITLE_BOTTOM_LINE 2 group { name, "main"; parts { part { name, "base"; type, RECT; description { state, "default" 0.0; color, 0 0 0 0; } } part { name, "bg"; type, RECT; scale, 1; description { state, "default" 0.0; rel1 { relative, 1.0 0.0; to_x, "cont/left"; to_y, "base"; } rel2 { relative, 0.0 1.0; to_x, "cont/right"; to_y, "base"; } color, 246 246 246 255; } } part { name, "cont/left"; type, RECT; scale, 1; description { state, "default" 0.0; min, 0 0; fixed, 1 0; rel1 { relative, 0.0 0.0; to, base; } rel2 { relative, 0.0 1.0; to, base; } align, 0.0 0.5; color, 0 0 0 0; } } part { name, "cont/right"; type, RECT; scale, 1; description { state, "default" 0.0; min, 0 0; fixed, 1 0; rel1 { relative, 1.0 0.0; to, base; } rel2 { relative, 1.0 1.0; to, base; } align, 1.0 0.5; color, 0 0 0 0; } } part { name, "cont"; type, SWALLOW; clip_to, "clip"; scale, 1; description { state, "default" 0.0; rel1 { relative, 1.0 0.0; to_x, "cont/left"; to_y, "base"; } rel2 { relative, 0.0 1.0; to_x, "cont/right"; to_y, "base"; } } description { state, "no_title" 0.0; rel1 { relative, 1.0 0.0; to_x, "cont/left"; to_y, "base"; } rel2 { relative, 0.0 1.0; to_x, "cont/right"; to_y, "base"; } } } part { name, "clip"; type, RECT; description { state, "default" 0.0; rel1.to, "cont"; rel2 { relative, 1.0 1.0; to, "cont"; } } } part { name, "title_bottom_line"; type, RECT; description { state, "default" 0.0; min, 0 0; fixed, 1 0; rel1 { relative, 0.0 0.0; offset, 0 -HEIGHT_OF_TITLE_BOTTOM_LINE; to, cont; } rel2 { relative, 1.0 0.0; to, cont; } color, COLOR_OF_TITLE_BOTTOM_LINE; } } } programs { program { name, "main/title/hide"; signal, "hide,title"; source, "prog"; action, STATE_SET "no_title" 0.0; target, "cont"; } program { name, "main/title/show"; signal, "show,title"; source, "prog"; action, STATE_SET "default" 0.0; target, "cont"; } } }