+++ /dev/null
-/*
- * nbeat-theme
- *
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Seokjae Jeong <seok.j.jeong@samsung.com>, Myoungwoon Roy Kim <Myoungwoon.kim@samsung.com>, Jeonghyun Yun <jh0506.yun@samsung.com>, Jaehwan Kim <jae.hwan.kim@samsung.com>, Chuneon Park <chuneon.park@samsung.com>, Juyung Seo <juyung.seo@samsung.com>, Woohyun Jung <wh0705.jung@samsung.com>, Myungjae Lee <mjae.lee@samsung.com>, Hyoyoung Chang <hyoyoung.chang@samsung.com>, IlKook Yun <ilkook.yun@samsung.com>, CinWoo Kim <cinoo.kim@samsung.com> JiYeon Park <jy0703.park@samsung.com>
- *
- * This library is free software; you can redistribute it and/or modify it under
- * the terms of the GNU Lesser General Public License as published by the
- * Free Software Foundation; either version 2.1 of the License, or (at your option)
- * any later version.
- *
- * This library is distributed in the hope that it will be useful, but WITHOUT ANY
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
- * License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this library; if not, write to the Free Software Foundation, Inc., 51
- * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- *
- */
-
- group { name: "elm/animatedicon/base/default";
- parts {
- part {
- name: "elm.swallow.icon";
- type: SWALLOW;
- description {
- state: "default" 0.0;
- }
- }
- }
- }
+++ /dev/null
-/*
- * nbeat-theme
- *
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Seokjae Jeong <seok.j.jeong@samsung.com>, Myoungwoon Roy Kim <Myoungwoon.kim@samsung.com>, Jeonghyun Yun <jh0506.yun@samsung.com>, Jaehwan Kim <jae.hwan.kim@samsung.com>, Chuneon Park <chuneon.park@samsung.com>, Juyung Seo <juyung.seo@samsung.com>, Woohyun Jung <wh0705.jung@samsung.com>, Myungjae Lee <mjae.lee@samsung.com>, Hyoyoung Chang <hyoyoung.chang@samsung.com>, IlKook Yun <ilkook.yun@samsung.com>, CinWoo Kim <cinoo.kim@samsung.com> JiYeon Park <jy0703.park@samsung.com>
- *
- * This library is free software; you can redistribute it and/or modify it under
- * the terms of the GNU Lesser General Public License as published by the
- * Free Software Foundation; either version 2.1 of the License, or (at your option)
- * any later version.
- *
- * This library is distributed in the hope that it will be useful, but WITHOUT ANY
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
- * License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this library; if not, write to the Free Software Foundation, Inc., 51
- * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- *
- */
-
-// LICENSE NOTE:
-// This file (and only this one) is licenses under public-domain. The reason
-// is that this is meant to serve as a template for making your own themes and
-// Elementary's LGPL license is not intended to follow. The images used do come
-// under LGPL, but this file specifically for the structure of your theme is
-// public-domain. This means you can take, use, re-license and otherwise
-// have zero restrictions on using this file as a base for your theme.
-
-#define MAIN_W 480
-#define MAIN_H 800
-#define TOOLBAR_ITEM_H 66
-#define REL_W(x) (x / MAIN_W)
-#define REL_H(x) (x / MAIN_H)
-#define REL_TOOLBAR_H(x) (x / TOOLBAR_ITEM_H)
-
-group {
- name: "elm/toolbar2/base/default";
- parts {
- part { name: "erect";
- type: RECT;
- scale: 1;
- description {
- min: 0 TOOLBAR_ITEM_H;
- max: MAIN_W TOOLBAR_ITEM_H;
- fixed: 0 1;
- align: 0.0 0.0;
- state: "default" 0.0;
- rel1 { relative: 0.0 0.0; }
- rel2 { relative: 1.0 1.0; }
- }
- }
- part { name: "erect_img";
- type: RECT;
- scale: 1;
- description {
- state: "default" 0.0;
- rel1 { to: "erect"; relative: 0.0 0.0;}
- rel2 { to: "erect"; relative: 1.0 1.0;}
- color: 90 73 40 255;
- }
- }
- part { name: "elm.swallow.content";
- clip_to: "erect";
- type: SWALLOW;
- description {
- state: "default" 0.0;
- rel1 { to: "erect_img"; relative: 0.0 0.0;}
- rel2 { to: "erect_img"; relative: 1.0 1.0;}
- }
- }
- }
- programs {
-
- } // end program
-} // end group
-
-group { name: "elm/toolbar2/item/default";
- images {
- image: "01_touch_glow.png" COMP;
- }
- min: 0 TOOLBAR_ITEM_H;
-
- parts {
- part { name: "bg";
- mouse_events: 0;
- type: RECT;
- description { state: "default" 0.0;
- visible: 1;
- rel1 {
- relative: 0.0 0.0;
- }
- rel2 {
- relative: 1.0 1.0;
- }
- color: 0 0 0 0;
- }
- description { state: "selected" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- color: 255 255 255 255;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- color: 255 255 255 0;
- }
- }
- part { name: "elm.swallow.icon";
- type: SWALLOW;
- description { state: "default" 0.0;
- fixed: 1 1;
- align: 0.5 0.5;
- rel1 { to: "bg"; relative: 0.0 0.5;}
- rel2 { to: "bg"; relative: 1.0 0.5;}
- }
- }
-
- part { name: "over3";
- mouse_events: 1;
- repeat_events: 1;
- description { state: "default" 0.0;
- min: TOOLBAR_ITEM_H TOOLBAR_ITEM_H;
- max: TOOLBAR_ITEM_H TOOLBAR_ITEM_H;
- color: 255 255 255 0;
- align: 0.5 0.5;
- rel1 { relative: 0.0 0.0;}
- rel2 { relative: 1.0 1.0;}
- image {
- normal: "01_touch_glow.png";
- }
- fill.smooth : 0;
- }
- description { state: "selected" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- color: 255 255 255 255;
- }
- }
-
- }
- programs {
- program { name: "go_active";
- signal: "elm,state,selected";
- source: "elm";
- action: STATE_SET "selected" 0.0;
- target: "bg";
- target: "over3";
- }
- program { name: "go_passive";
- signal: "elm,state,unselected";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "bg";
- target: "over3";
- }
- }
- }
-
+++ /dev/null
-/*
- * nbeat-theme
- *
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Seokjae Jeong <seok.j.jeong@samsung.com>, Myoungwoon Roy Kim <Myoungwoon.kim@samsung.com>, Jeonghyun Yun <jh0506.yun@samsung.com>, Jaehwan Kim <jae.hwan.kim@samsung.com>, Chuneon Park <chuneon.park@samsung.com>, Juyung Seo <juyung.seo@samsung.com>, Woohyun Jung <wh0705.jung@samsung.com>, Myungjae Lee <mjae.lee@samsung.com>, Hyoyoung Chang <hyoyoung.chang@samsung.com>, IlKook Yun <ilkook.yun@samsung.com>, CinWoo Kim <cinoo.kim@samsung.com> JiYeon Park <jy0703.park@samsung.com>
- *
- * This library is free software; you can redistribute it and/or modify it under
- * the terms of the GNU Lesser General Public License as published by the
- * Free Software Foundation; either version 2.1 of the License, or (at your option)
- * any later version.
- *
- * This library is distributed in the hope that it will be useful, but WITHOUT ANY
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
- * License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this library; if not, write to the Free Software Foundation, Inc., 51
- * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- *
- */
-
-///////////////////////////////////////////////////////////////////////////////
-/*
-Wiper Control
-
- 1) Drag object confie
-
- +-[confine]---------------------------------------------------------------------+
- |+-[bar]---------------------------------------------+ |
- || | |
- || | |
- || | |
- |+---------------------------------------------------+ |
- +-------------------------------------------------------------------------------+
-
- 2) Content.below
- +-[bg]---------------------+
- |+-[content.below]--------+|
- || ||
- || swallow ||
- || ||
- |+------------------------+|
- +--------------------------+
-
- 3) Bar-Left state
-
- +-[bg]---------------------+
- +-[content.above]--------+|+-[bar.right]------------+|
- | ||| ||
- | swallow ||| transparent ||
- | ||| ||
- +------------------------+|+------------------------+|
- +--------------------------+
-
- 4) Bar-Right state
-
- +-[bg]---------------------+
- |+-[content.above]--------+|+-[bar.right]------------+
- || ||| |
- || swallow ||| transparent |
- || ||| |
- |+------------------------+|+------------------------+
- +--------------------------+
-
- 5) Position / Size
- - bar width = bg * 2 (content.above + bar.right)
- - bar height = bg height
- - content width = bg width
- - content height = bg height
- - content position = left of bar
-
-*/
-
-//collections {
- group {
- name: "elm/wipercontrol/base/default";
-
- parts {
- part {
- name: "bg";
- type: RECT;
- mouse_events: 0;
- scale: 1;
- description {
- state: "default" 0.0;
- rel1 { relative: 0.0 0.0; }
- rel2 { relative: 1.0 1.0; }
- color: 0 0 0 0;
- }
- }
- part {
- name: "content.below";
- type: RECT;
- mouse_events: 1;
- scale: 1;
- description {
- state: "default" 0.0;
- rel1 { relative: 0.0 0.0; to: "bg";}
- rel2 { relative: 1.0 1.0; to: "bg";}
- color: 0 0 0 0;
- }
- }
- part {
- name: "content.below.swallow";
- type: SWALLOW;
- mouse_events: 1;
- scale: 1;
- description {
- state: "default" 0.0;
- rel1 { relative: 0.0 0.0; to: "content.below";}
- rel2 { relative: 1.0 1.0; to: "content.below";}
- color: 0 0 0 0;
- }
- }
- part {
- name: "content.below.mouse_block";
- type: RECT;
- mouse_events: 1;
- repeat_events: 0;
- scale: 1;
- description {
- state: "default" 0.0;
- rel1 { relative: 0.0 0.0; to: "content.below";}
- rel2 { relative: 1.0 1.0; to: "content.below";}
- color: 0 0 0 0;
- visible: 0;
- }
- description {
- state: "block" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- part {
- name: "bg2";
- type: RECT;
- mouse_events: 0;
- scale: 1;
- description {
- state: "default" 0.0;
- rel1 { relative: -1.0 0.0; to:"bg"; }
- rel2 { relative: 2.0 1.0; to:"bg";}
- color: 0 0 0 0;
- }
- }
- part {
- name: "confine";
- type: RECT;
- mouse_events: 0;
- scale: 1;
- description {
- state: "default" 0.0;
- rel1 { relative: 0.0 0.0; to:"bg2"; }
- rel2 { relative: 1.0 1.0; to:"bg2";}
- color: 0 0 0 0;
- }
- }
-
- part {
- name: "bar";
- type: RECT;
- mouse_events: 1;
- repeat_events: 1;
- scale: 1;
- description {
- state: "default" 0.0;
- min: 1 1;
- fixed: 1 1;
- align: 0.0 0.0;
- rel1 { relative: 0.0 0.0; to: "confine";}
- rel2 { relative: 0.0 1.0; to: "confine";}
- color: 0 0 0 0;
- }
- dragable {
- confine: "confine";
- x: -1 1 1;
- y: 0 0 0;
- }
- }
-
- part {
- name: "content.above";
- type: RECT;
- mouse_events: 1;
- repeat_events: 1;
- scale: 1;
- description {
- state: "default" 0.0;
- min: 1 1;
- fixed: 1 1;
- align: 0.0 0.0;
- rel1 { relative: 0.0 0.0; to: "bar";}
- rel2 { relative: 0.0 1.0; to: "bar";}
- color: 0 0 0 0;
- }
- }
- part {
- name: "bar.right";
- type: RECT;
- mouse_events: 0;
- scale: 1;
- description {
- state: "default" 0.0;
- min: 1 1;
- fixed: 1 1;
- align: 1.0 0.0;
- rel1 { relative: 1.0 0.0; to: "bar";}
- rel2 { relative: 1.0 1.0; to: "bar";}
- color: 0 0 0 0;
- }
- }
- part {
- name: "content.above.swallow";
- type: SWALLOW;
- mouse_events: 1;
- scale: 1;
- description {
- state: "default" 0.0;
- rel1 { relative: 0.0 0.0; to: "content.above";}
- rel2 { relative: 1.0 1.0; to: "content.above";}
- color: 0 0 0 0;
- }
- }
- }
-
- script {
-
- /* 0: mouse_down(no draged), 1: draged */
- public g_mouse_state = 0;
-
- /* FIXME: smooth animation */
- public animator_left(val, Float:step) {
- new Float:vx;
- new Float:vy;
-
- get_drag(PART:"bar", vx, vy);
- vx += step;
- if (vx > 0.9)
- vx = 1.0;
- set_drag(PART:"bar", vx, 1.0);
- }
-
- /* FIXME: smooth animation */
- public animator_right(val, Float:step) {
- new Float:vx;
- new Float:vy;
-
- get_drag(PART:"bar", vx, vy);
- vx -= step;
- if (vx < 0.1)
- vx = 0.0;
- set_drag(PART:"bar", vx, 1.0);
- }
- }
-
- programs {
-
- /* default program for resize event */
- program {
- name: "on_resize";
- signal: "resize";
- source: "";
- script {
- emit("resize_content", "content");
- set_drag(PART:"bar", 1.0, 1.0);
- set_state(PART:"content.below.mouse_block", "default", 0.0);
- }
- }
-
- program {
- name: "resize_content";
- signal: "resize_content";
- source: "content";
- script {
- new x;
- new y;
- new w;
- new h;
- get_geometry (PART:"bg", x, y, w, h);
-
- /* bar resize */
- custom_state (PART:"bar", "default", 0.0);
- set_state_val (PART:"bar", STATE_MIN, w*2, h);
- set_state (PART:"bar", "custom", 0.0);
-
- /* bar resize */
- custom_state (PART:"content.above", "default", 0.0);
- set_state_val (PART:"content.above", STATE_MIN, w, h);
- set_state (PART:"content.above", "custom", 0.0);
- }
- }
-
- program {
- name: "drag_bar";
- signal: "drag";
- source: "bar";
- script {
- set_int (g_mouse_state, 1);
- }
- }
-
- program {
- name: "down_bar";
- signal: "mouse,down,*";
- source: "bar";
- script {
- set_int (g_mouse_state, 0);
- }
- }
-
- program {
- name: "up_bar";
- signal: "mouse,up,*";
- source: "bar";
- script {
- new Float:vx;
- new Float:vy;
-
- if (get_int(g_mouse_state) != 0) {
- get_drag(PART:"bar", vx, vy);
- if (vx > 0.5) {
- anim(0.2, "animator_left", 1);
- set_state(PART:"content.below.mouse_block", "default", 0.0);
- }
- else {
- anim(0.2, "animator_right", 1);
- set_state(PART:"content.below.mouse_block", "block", 0.0);
- }
- }
- }
- }
-
-
- } /* programs */
-
- } /* group */
-//}