{
public static class Elementary
{
- private static readonly string _themeFilePath = "/usr/share/edje/elm-sharp/elm-sharp-theme.edj";
+ private static readonly string _themeFilePath = "/usr/share/elm-sharp/elm-sharp-theme.edj";
public static void Initialize()
{
+++ /dev/null
-/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-//****************************************************************************//
-// This file defines the width, height (not color!) for each widgets
-// We can define different INC file by Resolution (HD, qHD, WVGA, HVGA)
-//
-// ************* Naming Rule ************ //
-// {WIDGET}_{GROUP}_{PART}_{STATE}_{TYPE}
-// WIDGET: NAVIFRAME, LIST, DATETIME, POPUP, etc.
-// GROUP: INDEX
-// PART: TEXT, ICON, BG, PADDING, DIVIDER, ICON, etc.
-// STATE: LEFT, RIGHT, TOP, BOTTOM, MIN, MAX,
-// TYPE: HEIGHT, WIDTH, SIZE
-// e.g. LIST_PADDING_LEFT_HEIGHT
-//****************************************************************************//
-
-#define BASE_SCALE_INC 2.6
-
-//****************************************************************************//
-// Colorselector
-//****************************************************************************//
-#define COLORSELECTOR_PALETTE_COLORPLANE_HEIGHT_INC 238
-#define COLORSELECTOR_PALETTE_COLORPLANE_WIDTH_INC 678
-#define COLORSELECTOR_PORTRAIT_HOR_PAD_COLORPLANE_INC "8"
-#define COLORSELECTOR_PORTRAIT_VER_PAD_COLORPLANE_INC "8"
-#define COLORSELECTOR_TOPBOTTOM_PAD_COLORPLANE_INC 24
-
-//****************************************************************************//
-// Entry
-//****************************************************************************//
-#define ENTRY_PREEDIT_BACKGROUND_COLOR_INC "#000000"
-#define ENTRY_PREEDIT_HIGHLIGHT_BACKGROUND_COLOR_INC "#8bd8ff99"
-#define ENTRY_PREEDIT_TEXT_COLOR_INC "#FAFAFA"
-#define ENTRY_PREEDIT_UNDERLINE_COLOR_INC "#000000"
-#define ENTRY_PREEDIT_SUB1_COLOR_INC "#2EA8E1"
-#define ENTRY_PREEDIT_SUB2_COLOR_INC "#9962C3"
-#define ENTRY_PREEDIT_SUB3_COLOR_INC "#76DE37"
-#define ENTRY_PREEDIT_SUB4_COLOR_INC "#999999"
-#define ENTRY_LEFT_RIGHT_MARGIN_INC 5
-#define ENTRY_FONT_SIZE_INC 40
-#define ENTRY_CURSOR_SIZE_INC 3 0
-
-//****************************************************************************//
-// Label
-//****************************************************************************//
-#define LABEL_FONT_SIZE_INC 24
-
-//****************************************************************************//
-// RADIO
-//****************************************************************************//
-#define RADIO_DEFAULT_SIZE_INC 50 50
-#define RADIO_PAD_BEFORE_TEXT_INC 32 0
-
+++ /dev/null
-This is reserved directory for mobile images. Please delete this file when any file is added.
+++ /dev/null
-This is reserved space for mobile images. Please erase this file if any image is added.
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Generator: Adobe Illustrator 16.0.3, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
-<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
- width="50px" height="50px" viewBox="0 0 50 50" enable-background="new 0 0 50 50" xml:space="preserve">
-<path fill="#FFFFFF" d="M25.001,13c-6.617,0-12,5.383-12,12s5.383,12.001,12,12.001C31.617,37,37,31.616,37,24.999
- S31.617,13,25.001,13z"/>
-</svg>
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Generator: Adobe Illustrator 16.0.3, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
-<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
- width="50px" height="50px" viewBox="0 0 50 50" enable-background="new 0 0 50 50" xml:space="preserve">
-<path fill="#FFFFFF" d="M25.001,2c-12.703,0-23,10.297-23,22.999c0,12.704,10.297,23.001,23,23.001C37.703,48,48,37.703,48,24.999
- C48,12.297,37.703,2,25.001,2z M25.001,41c-8.822,0-16-7.178-16-16.001c0-8.822,7.178-16,16-16c8.822,0,15.999,7.178,15.999,16
- C41,33.822,33.823,41,25.001,41z"/>
-</svg>
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Generator: Adobe Illustrator 16.0.3, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
-<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
- width="50px" height="50px" viewBox="0 0 50 50" enable-background="new 0 0 50 50" xml:space="preserve">
-<circle fill="#FFFFFF" cx="25.001" cy="25" r="23"/>
-</svg>
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
-<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
- width="50px" height="50px" viewBox="0 0 50 50" enable-background="new 0 0 50 50" xml:space="preserve">
-<path fill="#FFFFFF" d="M25.001,49c-13.233,0-24-10.767-24-24s10.767-24,24-24s24,10.767,24,24S38.234,49,25.001,49z M25.001,4
- c-11.58,0-21,9.42-21,21c0,11.579,9.42,21,21,21c11.579,0,21-9.421,21-21C46.001,13.42,36.58,4,25.001,4z"/>
-</svg>
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Generator: Adobe Illustrator 16.0.3, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
-<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
- width="50px" height="50px" viewBox="0 0 50 50" enable-background="new 0 0 50 50" xml:space="preserve">
-<path fill="#FFFFFF" d="M25.001,49c-13.233,0-24-10.766-24-24.001C1.001,11.767,11.768,1,25.001,1C38.234,1,49,11.767,49,24.999
- C49,38.234,38.234,49,25.001,49z"/>
-</svg>
+++ /dev/null
-color_classes {
- /*
- * Layout
- */
- color_class {
- name: "layout/background/bg";
- color: 0 0 0 0;
- }
- /*
- * Colorselector
- */
- color_class {
- name: "colorselector/default/bg";
- color: 250 250 250 255;
- }
- /*
- * Entry
- */
- color_class { "entry/default/text_edit";
- color: 0 0 0 255;
- }
- color_class { "entry/default/text_edit_focused";
- color: 0 0 0 255;
- }
- color_class { "entry/default/text_edit_disabled";
- color: 0 0 0 110;
- }
- color_class { "entry/default/text_guide";
- color: 0 0 0 145;
- }
- color_class { "entry/default/text_guide_focused";
- color: 0 0 0 145;
- }
- color_class { "entry/default/text_guide_disabled";
- color: 0 0 0 110;
- }
- color_class {
- name: "entry/default/bg";
- color: 0 0 0 0;
- }
- color_class { "entry/default/cursor";
- color: 0 184 230 110;
- }
- /*
- * Label
- */
- color_class {
- name: "label/default/bg";
- color: 0 0 0 0;
- }
- color_class {
- name: "label/slide_long/bg";
- color: 0 0 0 0;
- }
- color_class {
- name: "label/slide_short/bg";
- color: 0 0 0 0;
- }
- color_class {
- name: "label/slide_roll/bg";
- color: 0 0 0 0;
- }
- color_class {
- name: "label/slide_bounce/bg";
- color: 0 0 0 0;
- }
-
- /*
- * Radio
- */
- color_class { "radio/default/icon";
- color: 61 185 204 255;
- }
- color_class { "radio/default/bg";
- color: 250 250 250 51;
- }
- color_class { "radio/default/icon_disabled";
- color: 61 185 204 77;
- }
- color_class { "radio/default/bg_disabled";
- color: 250 250 250 38;
- }
- color_class { "radio/default/bg_border_on";
- color: 250 250 250 77;
- }
- color_class { "radio/default/bg_border_on_disabled";
- color: 250 250 250 38;
- }
- color_class { "radio/default/stroke";
- color: 61 185 204 255;
- }
- color_class { "radio/default/stroke_disabled";
- color: 61 185 204 77;
- }
- color_class { "radio/default/bg_on";
- color: 250 250 250 255;
- }
- color_class { "radio/default/bg_on_disabled";
- color: 250 250 250 255;
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-// 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.
-
-//****************************************************************************************//
-// This is theme body including all widget bodys
-// Define shared descriptions (e.g. sound samples, color classes, textblock styles) in here
-// Do not define size(width, height) in here!!!!
-//****************************************************************************************//
-
-// Include INC (e.g. HD-inc.edc, HVGA-inc.edc for each resolution) file
-#include "HD-inc.edc"
-
-externals {
- external: "elm";
-}
-
-// BUILD_FIX: Add version to edc as 110.
-data.item: "version" "110";
-//
-
-collections {
- base_scale: BASE_SCALE_INC;
- plugins {
- plugin {
- name: "touch_sound";
- source: "feedback";
- param: "FEEDBACK_TYPE_SOUND FEEDBACK_PATTERN_TAP"; // FEEDBACK_TYPE_SOUND, FEEDBACK_PATTERN_TOUCH_TAP
-
- /* 2014.06.11 updated from libsvi(feedback)
- Above plugin will run below external function:
- int feedback_play_type(feedback_type_e type, feedback_pattern_e pattern);
-
- param1: feedback_type_e
- FEEDBACK_TYPE_NONE = 0,
- FEEDBACK_TYPE_SOUND = 1,
- FEEDBACK_TYPE_VIBRATION,
- FEEDBACK_TYPE_LED,
- FEEDBACK_TYPE_END
-
- * param2 enumeration:
- FEEDBACK_PATTERN_TAP = 0,
- FEEDBACK_PATTERN_SIP,
- FEEDBACK_PATTERN_SIP_BACKSPACE,
- FEEDBACK_PATTERN_SIP_FUNCTION,
- FEEDBACK_PATTERN_SIP_FJKEY,
- ...
-
- * For more information please refer libsvi.
- */
- }
- }
-
-#include "color_classes.edc"
-
-#include "widgets/colorselector.edc"
-#include "widgets/entry.edc"
-#include "widgets/label.edc"
-#include "widgets/radio.edc"
-#include "widgets/layout.edc"
-
-}
-
+++ /dev/null
-/*
- * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-group { "elm/colorselector/palette/colorplane";
- alias: "elm/colorselector/palette/default";
- data.item: "horizontal_pad" COLORSELECTOR_PORTRAIT_HOR_PAD_COLORPLANE_INC;
- data.item: "vertical_pad" COLORSELECTOR_PORTRAIT_VER_PAD_COLORPLANE_INC;
-
- parts {
- spacer { "base";
- scale;
- desc { "default";
- min: COLORSELECTOR_PALETTE_COLORPLANE_WIDTH_INC COLORSELECTOR_PALETTE_COLORPLANE_HEIGHT_INC;
- max: -1 -1;
- }
- }
- rect { "bg";
- nomouse;
- desc { "default";
- rel.to: "base";
- color_class: "colorselector/default/bg";
- }
- }
- spacer { "padding_top";
- scale;
- desc { "default";
- min: 0 COLORSELECTOR_TOPBOTTOM_PAD_COLORPLANE_INC;
- fixed: 0 1;
- rel1 {
- relative: 0.0 0.0;
- to: "base";
- }
- rel2 {
- relative: 1.0 0.0;
- to: "base";
- }
- align: 0.0 0.0;
- }
- }
- swallow { "palette";
- scale;
- mouse;
- desc { state: "default";
- align: 0.5 0.0;
- fixed: 0 1;
- rel1 {
- relative: 0.0 1.0;
- to_y: "padding_top";
- }
- rel2.to_y: "padding_top";
- }
- }
- spacer { "padding_palette";
- scale;
- desc { "default";
- min: 0 COLORSELECTOR_TOPBOTTOM_PAD_COLORPLANE_INC;
- fixed: 0 1;
- rel1 {
- relative: 0.0 1.0;
- to: "palette";
- }
- rel2.to: "palette";
- align: 0.0 0.0;
- }
- }
- }
-}
-
+++ /dev/null
-/*
- * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#define ENTRY_DEFAULT_TAGS \
- tag: "em" "+ font_style=Oblique"; \
- tag: "b" "+ font_weight=Bold"; \
- tag: "link" "+ color=#800 underline=on underline_color=#8008"; \
- tag: "hilight" "+ font_weight=Bold";
-
-#define ENTRY_SINGLELINE_TAGS \
- tag: "br" ""; \
- tag: "em" "+ font_style=Oblique"; \
- tag: "b" "+ font_weight=Bold"; \
- tag: "link" "+ color=#800 underline=on underline_color=#8008"; \
- tag: "hilight" "+ font_weight=Bold";
-
-#define ENTRY_PREEDIT_TAGS \
- tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; \
- tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC; \
- tag: "preedit_highlight" "+ backing=on backing_color="ENTRY_PREEDIT_HIGHLIGHT_BACKGROUND_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC; \
- tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; \
- tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; \
- tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; \
- tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
-
-styles {
- style { "entry_textblock_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_edit";
- ENTRY_DEFAULT_TAGS
- ENTRY_PREEDIT_TAGS
- }
- style { "entry_textblock_focused_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_edit_focused";
- ENTRY_DEFAULT_TAGS
- ENTRY_PREEDIT_TAGS
- }
- style { "entry_textblock_disabled_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_edit_disabled";
- ENTRY_DEFAULT_TAGS
- ENTRY_PREEDIT_TAGS
- }
- style { "entry_textblock_guide_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_guide";
- ENTRY_DEFAULT_TAGS
- }
- style { "entry_textblock_guide_focused_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_guide_focused";
- ENTRY_DEFAULT_TAGS
- }
- style { "entry_textblock_guide_disabled_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_guide_disabled";
- ENTRY_DEFAULT_TAGS
- }
- style { "entry_textblock_char_wrap_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_edit";
- ENTRY_DEFAULT_TAGS
- ENTRY_PREEDIT_TAGS
- }
- style { "entry_textblock_char_wrap_focused_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_edit_focused";
- ENTRY_DEFAULT_TAGS
- ENTRY_PREEDIT_TAGS
- }
- style { "entry_textblock_char_wrap_disabled_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_edit_disabled";
- ENTRY_DEFAULT_TAGS
- ENTRY_PREEDIT_TAGS
- }
- style { "entry_textblock_char_wrap_guide_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_guide";
- ENTRY_DEFAULT_TAGS
- }
- style { "entry_textblock_char_wrap_guide_focused_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_guide_focused";
- ENTRY_DEFAULT_TAGS
- }
- style { "entry_textblock_char_wrap_guide_disabled_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_guide_disabled";
- ENTRY_DEFAULT_TAGS
- }
- style { "entry_single_textblock_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_edit";
- ENTRY_SINGLELINE_TAGS
- ENTRY_PREEDIT_TAGS
- }
- style { "entry_single_textblock_focused_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_edit_focused";
- ENTRY_SINGLELINE_TAGS
- ENTRY_PREEDIT_TAGS
- }
- style { "entry_single_textblock_disabled_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_edit_disabled";
- ENTRY_SINGLELINE_TAGS
- ENTRY_PREEDIT_TAGS
- }
- style { "entry_single_textblock_guide_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_guide";
- ENTRY_SINGLELINE_TAGS
- }
- style { "entry_single_textblock_guide_focused_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_guide_focused";
- ENTRY_SINGLELINE_TAGS
- }
- style { "entry_single_textblock_guide_disabled_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_guide_disabled";
- ENTRY_SINGLELINE_TAGS
- }
-}
-
-group { "elm/entry/event/default";
- inherit_only: 1;
- parts {
- rect { "event";
- mouse;
- repeat;
- desc { "default";
- color: 0 0 0 0;
- }
- desc { "disabled";
- inherit: "default";
- hid;
- }
- }
- }
- programs {
- program { "clicked";
- signal: "mouse,clicked,1";
- source: "event";
- after: "on_clicked";
- }
- program { "load";
- signal: "load";
- source: "";
- after: "on_load";
- }
- program { "disabled";
- signal: "elm,state,disabled";
- source: "elm";
- action: STATE_SET "disabled";
- target: "event";
- after: "on_disabled";
- }
- program { "enabled";
- signal: "elm,state,disabled";
- source: "elm";
- action: STATE_SET "default";
- target: "event";
- after: "on_enabled";
- }
- program { "focus";
- signal: "elm,action,focus";
- source: "elm";
- after: "on_focus";
- }
- program { "unfocus";
- signal: "elm,action,unfocus";
- source: "elm";
- after: "on_unfocus";
- }
- program { "disabled_guide";
- signal: "elm,guide,disabled";
- source: "elm";
- after: "on_disabled_guide";
- }
- program { "enabled_guide";
- signal: "elm,guide,enabled";
- source: "elm";
- after: "on_enabled_guide";
- }
- }
-}
-
-group { "elm/entry/base/template";
- inherit_only: 1;
- data.item: "default_font_size" ENTRY_FONT_SIZE_INC;
- data.item: "focus_highlight" "on";
- data.item: context_menu_orientation "horizontal";
- parts {
- rect { "bg";
- nomouse;
- desc { "default";
- color_class: "entry/default/bg";
- }
- }
- textblock { "elm.guide";
- nomouse;
- scale;
- desc { "default";
- rel.to: "elm.text";
- text.style: "entry_textblock_guide_style";
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_textblock_guide_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_textblock_guide_disabled_style";
- }
- desc { "hidden";
- inherit: "default";
- hid;
- }
- }
- textblock { "elm.text";
- mouse;
- scale;
- entry_mode: EDITABLE;
- select_mode: EXPLICIT;
- cursor_mode: BEFORE;
- multiline: 1;
- source: "elm/entry/selection/default"; // selection under
- source4: "elm/entry/cursor/default"; // cursorover
- source5: "elm/entry/anchor/default"; // anchor under
- desc { "default";
- text.style: "entry_textblock_style";
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_textblock_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_textblock_disabled_style";
- }
- }
- }
- inherit: "elm/entry/event/default";
- script {
- public focused = 0;
- public disabled = 0;
- public guide_disabled = 0;
- }
- programs {
- program { "on_load";
- action: FOCUS_SET;
- target: "elm.text";
- }
- program { "on_clicked";
- action: RUN_PLUGIN "touch_sound";
- }
- program { "on_focus";
- script {
- set_int(focused, 1);
- if (get_int(disabled) == 0) {
- set_state(PART:"elm.text", "focused", 0.0);
- if (get_int(guide_disabled) == 0)
- set_state(PART:"elm.guide", "focused", 0.0);
- }
- }
- }
- program { "on_unfocus";
- script {
- set_int(focused, 0);
- if (get_int(disabled) == 0) {
- set_state(PART:"elm.text", "default", 0.0);
- if (get_int(guide_disabled) == 0)
- set_state(PART:"elm.guide", "default", 0.0);
- }
- }
- }
- program { "on_disabled";
- script {
- set_int(disabled, 1);
- set_state(PART:"elm.text", "disabled", 0.0);
- if (get_int(guide_disabled) == 0)
- set_state(PART:"elm.guide", "disabled", 0.0);
- }
- }
- program { "on_enabled";
- script {
- set_int(disabled, 0);
- if (get_int(focused))
- set_state(PART:"elm.text", "focused", 0.0);
- else
- set_state(PART:"elm.text", "default", 0.0);
- if (get_int(guide_disabled) == 0) {
- if (get_int(focused))
- set_state(PART:"elm.guide", "focused", 0.0);
- else
- set_state(PART:"elm.guide", "default", 0.0);
- }
- }
- }
- program { "on_disabled_guide";
- script {
- set_int(guide_disabled, 1);
- set_state(PART:"elm.guide", "hidden", 0.0);
- }
- }
- program { "on_enabled_guide";
- script {
- set_int(guide_disabled, 0);
- if (get_int(disabled))
- set_state(PART:"elm.guide", "disabled", 0.0);
- else if (get_int(focused))
- set_state(PART:"elm.guide", "focused", 0.0);
- else
- set_state(PART:"elm.guide", "default", 0.0);
- }
- }
- }
-}
-
-group { "elm/entry/cursor/event/default";
- inherit_only: 1;
- programs {
- program { "selection_start";
- signal: "selection,start";
- source: "elm.text";
- after: "on_selection_start";
- }
- program { "selection_cleared";
- signal: "selection,cleared";
- source: "elm.text";
- after: "on_selection_cleared";
- }
- program { "focus";
- signal: "elm,action,focus";
- source: "elm";
- after: "on_focus";
- }
- program { "unfocus";
- signal: "elm,action,unfocus";
- source: "elm";
- after: "on_unfocus";
- }
- program { "show_cursor";
- signal: "elm,action,show,cursor";
- source: "elm";
- after: "on_show_cursor";
- }
- }
-}
-
-group { "elm/entry/cursor/template";
- inherit: "elm/entry/cursor/event/default";
- inherit_only: 1;
- parts {
- rect { "cursor";
- clip: "clipper";
- desc { "default";
- hid;
- }
- desc { "visible";
- inherit: "default";
- vis;
- }
- }
- rect { "clipper";
- desc { "default";
- }
- desc { "hidden";
- inherit: "default";
- hid;
- }
- }
- }
- programs {
- program { "on_selection_start";
- action: STATE_SET "hidden";
- target: "clipper";
- }
- program { "on_selection_cleared";
- action: STATE_SET "default";
- target: "clipper";
- }
- program { "on_focus";
- action: ACTION_STOP;
- target: "cursor_visible";
- target: "cursor_hidden";
- target: "cursor_visible_timer";
- target: "cursor_hidden_timer";
- after: "cursor_visible";
- }
- program { "on_unfocus";
- action: ACTION_STOP;
- target: "cursor_visible";
- target: "cursor_hidden";
- target: "cursor_visible_timer";
- target: "cursor_hidden_timer";
- after: "cursor_hidden_stop";
- }
- program { "on_show_cursor";
- action: ACTION_STOP;
- target: "cursor_visible";
- target: "cursor_hidden";
- target: "cursor_visible_timer";
- target: "cursor_hidden_timer";
- after: "cursor_visible";
- }
- program { "cursor_hidden_stop";
- action: STATE_SET "default";
- target: "cursor";
- }
- program { "cursor_visible";
- action: STATE_SET "visible";
- target: "cursor";
- after: "cursor_visible_timer";
- }
- program { "cursor_hidden";
- action: STATE_SET "default";
- target: "cursor";
- after: "cursor_hidden_timer";
- }
- program { "cursor_visible_timer";
- in: 0.6 0.0;
- after: "cursor_hidden";
- }
- program { "cursor_hidden_timer";
- in: 0.6 0.0;
- after: "cursor_visible";
- }
- }
-}
-
-group { "elm/entry/cursor/default";
- inherit: "elm/entry/cursor/template";
- parts {
- rect { "cursor";
- nomouse;
- scale;
- clip: "clipper";
- desc { "default";
- min: ENTRY_CURSOR_SIZE_INC;
- color_class: "entry/default/cursor";
- hid;
- }
- desc { "visible";
- inherit: "default";
- vis;
- }
- }
- rect { "clipper";
- desc { "default";
- rel.to: "cursor";
- fixed: 1 1;
- }
- desc { "hidden";
- inherit: "default";
- hid;
- }
- }
- }
-}
-
-group { "elm/entry/base/default";
- inherit: "elm/entry/base/template";
- alias: "elm/entry/base-mixedwrap/default";
- parts {
- textblock { "elm.guide";
- nomouse;
- scale;
- desc { "default";
- rel.to: "elm.text";
- text {
- style: "entry_textblock_guide_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_textblock_guide_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_textblock_guide_disabled_style";
- }
- desc { "hidden";
- inherit: "default";
- hid;
- }
- }
- textblock { "elm.text";
- mouse;
- scale;
- entry_mode: EDITABLE;
- select_mode: EXPLICIT;
- cursor_mode: BEFORE;
- multiline: 1;
- source: "elm/entry/selection/default"; // selection under
- source4: "elm/entry/cursor/default"; // cursorover
- source5: "elm/entry/anchor/default"; // anchor under
- desc { "default";
- fixed: 1 0;
- text {
- style: "entry_textblock_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "focused";
- inherit: "default";
- text {
- style: "entry_textblock_focused_style";
- min: 0 1;
- }
- }
- desc { "disabled";
- inherit: "default";
- text {
- style: "entry_textblock_disabled_style";
- min: 0 1;
- }
- }
- }
- }
-}
-
-group { "elm/entry/base-charwrap/default";
- alias: "elm/entry/base/char_wrap";
- inherit: "elm/entry/base/template";
- parts {
- textblock { "elm.guide";
- nomouse;
- scale;
- desc { "default";
- rel.to: "elm.text";
- text {
- style: "entry_textblock_char_wrap_guide_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_textblock_char_wrap_guide_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_textblock_char_wrap_guide_disabled_style";
- }
- desc { "hidden";
- inherit: "default";
- hid;
- }
- }
- textblock { "elm.text";
- mouse;
- scale;
- entry_mode: EDITABLE;
- select_mode: EXPLICIT;
- cursor_mode: BEFORE;
- multiline: 1;
- source: "elm/entry/selection/default"; // selection under
- source4: "elm/entry/cursor/default"; // cursorover
- source5: "elm/entry/anchor/default"; // anchor under
- desc { "default";
- fixed: 1 0;
- text {
- style: "entry_textblock_char_wrap_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "focused";
- inherit: "default";
- text {
- style: "entry_textblock_char_wrap_focused_style";
- min: 0 1;
- }
- }
- desc { "disabled";
- inherit: "default";
- text {
- style: "entry_textblock_char_wrap_disabled_style";
- min: 0 1;
- }
- }
- }
- }
-}
-
-group { "elm/entry/base-nowrap/default";
- inherit: "elm/entry/base/template";
- parts {
- textblock { "elm.guide";
- nomouse;
- scale;
- desc { "default";
- rel.to: "elm.text";
- text {
- style: "entry_textblock_guide_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_textblock_guide_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_textblock_guide_disabled_style";
- }
- desc { "hidden";
- inherit: "default";
- hid;
- }
- }
- textblock { "elm.text";
- mouse;
- scale;
- entry_mode: EDITABLE;
- select_mode: EXPLICIT;
- cursor_mode: BEFORE;
- multiline: 1;
- source: "elm/entry/selection/default"; // selection under
- source4: "elm/entry/cursor/default"; // cursorover
- source5: "elm/entry/anchor/default"; // anchor under
- desc { "default";
- text {
- style: "entry_textblock_style";
- min: 1 1;
- align: 0.0 0.0;
- }
- }
- desc { "focused";
- inherit: "default";
- text {
- style: "entry_textblock_focused_style";
- min: 1 1;
- }
- }
- desc { "disabled";
- inherit: "default";
- text {
- style: "entry_textblock_disabled_style";
- min: 0 1;
- }
- }
- }
- }
-}
-
-group { "elm/entry/base-single/default";
- inherit: "elm/entry/base/template";
- parts {
- textblock { "elm.guide";
- nomouse;
- scale;
- desc { "default";
- fixed: 1 1;
- rel.to: "elm.text";
- text {
- style: "entry_single_textblock_guide_style";
- min: 0 1;
- max: 0 0;
- align: 0.0 0.5;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_single_textblock_guide_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_single_textblock_guide_disabled_style";
- }
- desc { "hidden";
- inherit: "default";
- hid;
- }
- }
- textblock { "elm.text";
- mouse;
- scale;
- entry_mode: EDITABLE;
- select_mode: EXPLICIT;
- cursor_mode: BEFORE;
- multiline: 0;
- source: "elm/entry/selection/default"; // selection under
- source4: "elm/entry/cursor/default"; // cursorover
- source5: "elm/entry/anchor/default"; // anchor under
- desc { "default";
- text {
- style: "entry_single_textblock_style";
- min: 1 1;
- max: 0 0;
- align: 0.0 0.5;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_single_textblock_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_single_textblock_disabled_style";
- }
- }
- }
-}
-
-group { "elm/entry/base-single-noedit/default";
- inherit: "elm/entry/base/template";
- alias: "elm/entry/base-single-noedit/vcenter_align";
- parts {
- textblock { "elm.guide";
- nomouse;
- scale;
- desc { "default";
- fixed: 1 1;
- rel.to: "elm.text";
- text {
- style: "entry_single_textblock_guide_style";
- min: 0 1;
- max: 0 1;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_single_textblock_guide_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_single_textblock_guide_disabled_style";
- }
- desc { "hidden";
- inherit: "default";
- hid;
- }
- }
- textblock { "elm.text";
- mouse;
- scale;
- entry_mode: PLAIN;
- select_mode: EXPLICIT;
- cursor_mode: BEFORE;
- multiline: 0;
- source: "elm/entry/selection/default"; // selection under
- source5: "elm/entry/anchor/default"; // anchor under
- desc { "default";
- text {
- style: "entry_single_textblock_style";
- min: 1 1;
- max: 0 1;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_single_textblock_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_single_textblock_disabled_style";
- }
- }
- }
-}
-
-group { "elm/entry/base-noedit/default";
- inherit: "elm/entry/base/template";
- parts {
- textblock { "elm.guide";
- nomouse;
- scale;
- desc { "default";
- rel.to: "elm.text";
- text {
- style: "entry_textblock_guide_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_textblock_guide_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_textblock_guide_disabled_style";
- }
- desc { "hidden";
- inherit: "default";
- hid;
- }
- }
- textblock { "elm.text";
- mouse;
- scale;
- entry_mode: PLAIN;
- select_mode: EXPLICIT;
- cursor_mode: BEFORE;
- multiline: 1;
- source: "elm/entry/selection/default"; // selection under
- source5: "elm/entry/anchor/default"; // anchor under
- desc { "default";
- fixed: 1 0;
- text {
- style: "entry_textblock_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_textblock_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_textblock_disabled_style";
- }
- }
- }
-}
-
-group { "elm/entry/base-noedit-charwrap/default";
- inherit: "elm/entry/base/template";
- parts {
- textblock { "elm.guide";
- nomouse;
- scale;
- desc { "default";
- rel.to: "elm.text";
- text {
- style: "entry_textblock_char_wrap_guide_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_textblock_char_wrap_guide_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_textblock_char_wrap_guide_disabled_style";
- }
- desc { "hidden";
- inherit: "default";
- hid;
- }
- }
- textblock { "elm.text";
- mouse;
- scale;
- entry_mode: PLAIN;
- select_mode: EXPLICIT;
- cursor_mode: BEFORE;
- multiline: 1;
- source: "elm/entry/selection/default"; // selection under
- source5: "elm/entry/anchor/default"; // anchor under
- desc { "default";
- fixed: 1 0;
- text {
- style: "entry_textblock_char_wrap_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_textblock_char_wrap_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_textblock_char_wrap_disabled_style";
- }
- }
- }
-}
-
-group { "elm/entry/base-noedit-mixedwrap/default";
- inherit: "elm/entry/base/template";
- parts {
- part { "elm.guide";
- type: TEXTBLOCK;
- nomouse;
- scale;
- desc { "default";
- rel.to: "elm.text";
- text {
- style: "entry_textblock_guide_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_textblock_guide_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_textblock_guide_disabled_style";
- }
- desc { "hidden";
- inherit: "default";
- hid;
- }
- }
- textblock { "elm.text";
- mouse;
- scale;
- entry_mode: PLAIN;
- select_mode: EXPLICIT;
- cursor_mode: BEFORE;
- multiline: 1;
- source: "elm/entry/selection/default"; // selection under
- source5: "elm/entry/anchor/default"; // anchor under
- desc { "default";
- fixed: 1 0;
- text {
- style: "entry_textblock_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_textblock_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_textblock_disabled_style";
- }
- }
- }
-}
-
-group { "elm/entry/base-nowrap-noedit/default";
- inherit: "elm/entry/base/template";
- parts {
- textblock { "elm.guide";
- type: TEXTBLOCK;
- nomouse;
- scale;
- desc { "default";
- rel.to: "elm.text";
- text {
- style: "entry_textblock_guide_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_textblock_guide_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_textblock_guide_disabled_style";
- }
- desc { "hidden";
- inherit: "default";
- hid;
- }
- }
- textblock { "elm.text";
- mouse;
- scale;
- entry_mode: PLAIN;
- select_mode: EXPLICIT;
- cursor_mode: BEFORE;
- multiline: 1;
- source: "elm/entry/selection/default"; // selection under
- source5: "elm/entry/anchor/default"; // anchor under
- desc { "default";
- text {
- style: "entry_textblock_style";
- min: 1 1;
- align: 0.0 0.0;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_textblock_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_textblock_disabled_style";
- }
- }
- }
-}
-
-group { "elm/entry/base-password/default";
- inherit: "elm/entry/base/template";
- parts {
- textblock { "elm.guide";
- nomouse;
- scale;
- desc { "default";
- fixed: 1 1;
- rel.to: "elm.text";
- text {
- style: "entry_single_textblock_guide_style";
- min: 0 1;
- max: 0 1;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_single_textblock_guide_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_single_textblock_guide_disabled_style";
- }
- desc { "hidden";
- inherit: "default";
- hid;
- }
- }
- textblock { "elm.text";
- mouse;
- scale;
- entry_mode: PASSWORD;
- select_mode: EXPLICIT;
- cursor_mode: BEFORE;
- multiline: 0;
- source: "elm/entry/selection/default"; // selection under
- source4: "elm/entry/cursor/default"; // cursorover
- source5: "elm/entry/anchor/default"; // anchor under
- desc { "default";
- text {
- style: "entry_single_textblock_style";
- repch: "•";
- min: 1 1;
- max: 0 1;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_single_textblock_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_single_textblock_disabled_style";
- }
- }
- }
-}
-
-group { "elm/entry/selection/default";
- parts {
- rect { "bg";
- scale;
- nomouse;
- desc { "default";
- color: 0 221 255 153;
- }
- }
- }
-}
-
-group { "elm/entry/anchor/default";
- parts {
- spacer { "bg";
- desc { "default"; }
- }
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#define SLIDE_SPEED_WEIGHT 0.5
-#define SLIDE_TEXT_GAP 60
-#define SLIDE_TEXT_CHAR_GAP " " //60 (6 spaces)
-#define SLIDE_TEXT_MAX_LENGTH (2*(1024+6))
-
-styles {
- style { "textblock_style";
- base: "font=Tizen:weight=Normal font_size="LABEL_FONT_SIZE_INC" color=#FFF color_class=label/default/text text_class=label";
- tag: "br" "\n";
- tag: "ps" "ps";
- tag: "hilight" "+ font_weight=Bold";
- tag: "b" "+ font_weight=Bold";
- tag: "tab" "\t";
- }
- style { "textblock_charwrap_style";
- base: "font=Tizen:weight=Normal font_size="LABEL_FONT_SIZE_INC" color=#FFF color_class=label/default/text text_class=label";
- tag: "br" "\n";
- tag: "ps" "ps";
- tag: "hilight" "+ font_weight=Bold";
- tag: "b" "+ font_weight=Bold";
- tag: "tab" "\t";
- }
- style { "textblock_style_marker";
- base: "font=Tizen:weight=Bold font_size=14 align=center color=#FFF wrap=word color_class=label/default/text text_class=tizen";
- tag: "br" "\n";
- tag: "ps" "ps";
- tag: "hilight" "+ font_weight=Bold";
- tag: "b" "+ font_weight=Bold";
- tag: "tab" "\t";
- }
-}
-
-group { "elm/label/event/default";
- inherit_only: 1;
- programs {
- program { "start_slide";
- source: "elm";
- signal: "elm,state,slide,start";
- after: "on_start_slide";
- }
- program { "stop_slide";
- source: "elm";
- signal: "elm,state,slide,stop";
- after: "on_stop_slide";
- }
- }
-}
-
-group { "elm/label/base/template";
- inherit: "elm/label/event/default";
- inherit_only: 1;
- parts {
- rect { "bg";
- desc { "default";
- color_class: "label/default/bg";
- }
- }
- rect { "clipper";
- desc { "default";
- }
- }
- textblock { "elm.text";
- scale;
- clip: "clipper";
- desc { "default";
- text.style: "textblock_style";
- }
- }
- }
- programs {
- program { "on_start_slide";
- }
- program { "on_stop_slide";
- }
- }
-}
-
-group { "elm/label/base/default";
- inherit: "elm/label/base/template";
- parts {
- textblock { "elm.text";
- scale;
- clip: "clipper";
- desc { "default";
- text {
- style: "textblock_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- }
- }
-}
-
-/* default label doesn't use it */
-group { "elm/label/base_wrap/default";
- inherit: "elm/label/base/template";
- parts {
- textblock { "elm.text";
- scale;
- multiline: 1;
- desc { "default";
- text {
- style: "textblock_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "charwrap_mode";
- text {
- style: "textblock_charwrap_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- }
- }
- programs {
- program { "default";
- signal: "elm,state,default";
- source: "elm";
- action: STATE_SET "default";
- target: "elm.text";
- }
- program { "charwrap";
- signal: "elm,state,charwrap";
- source: "elm";
- action: STATE_SET "charwrap_mode";
- target: "elm.text";
- }
- }
-}
-
-/* default label doesn't use it */
-group { "elm/label/base_wrap_ellipsis/default";
- inherit: "elm/label/base/template";
- parts {
- textblock { "elm.text";
- scale;
- multiline: 1;
- desc { "default";
- fixed: 0 1;
- text {
- style: "textblock_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "charwrap_mode";
- fixed: 0 1;
- text {
- style: "textblock_charwrap_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- }
- }
- programs {
- program { "default";
- signal: "elm,state,default";
- source: "elm";
- action: STATE_SET "default";
- target: "elm.text";
- }
- program { "charwrap";
- signal: "elm,state,charwrap";
- source: "elm";
- action: STATE_SET "charwrap_mode";
- target: "elm.text";
- }
- }
-}
-
-group { "elm/label/base/slide_long";
- inherit: "elm/label/base/template";
- script {
- public g_duration = 0, g_stopslide, g_timer_id, g_anim_id;
-
- public message(Msg_Type:type, id, ...) {
- if (type == MSG_FLOAT_SET) {
- new Float:duration;
- duration = getfarg(2);
- if (id == 0)
- set_float(g_duration, duration);
- else
- set_float(g_duration, duration / LABEL_FONT_SIZE_INC * SLIDE_SPEED_WEIGHT);
- }
- }
- public slide_to_end_anim(val, Float:pos) {
- new stopflag;
- new id;
- stopflag = get_int(g_stopslide);
- if (stopflag == 1) return;
- set_tween_state(PART:"elm.text", pos, "slide_begin", 0.0, "slide_end", 0.0);
- if (pos >= 1.0) {
- id = timer(0.5, "slide_to_begin", 1);
- set_int(g_timer_id, id);
- }
- }
- public slide_to_end() {
- new stopflag;
- new id;
- new Float:duration;
- stopflag = get_int(g_stopslide);
- if (stopflag == 1) return;
- duration = get_float(g_duration);
- id = anim(duration, "slide_to_end_anim", 1);
- set_int(g_anim_id, id);
- }
- public slide_to_begin() {
- new stopflag;
- new id;
- stopflag = get_int(g_stopslide);
- if (stopflag == 1) return;
- set_state(PART:"elm.text", "slide_begin", 0.0);
- id = timer(0.5, "slide_to_end", 1);
- set_int(g_timer_id, id);
- }
- public start_slide() {
- set_int(g_stopslide, 0);
- set_state(PART:"elm.text", "slide_begin", 0.0);
- slide_to_end();
- }
- public stop_slide() {
- new id;
- set_int(g_stopslide, 1);
- id = get_int(g_anim_id);
- cancel_anim(id);
- id = get_int(g_timer_id);
- cancel_timer(id);
- set_state(PART:"elm.text", "default", 0.0);
- }
- }
- parts {
- rect { "bg";
- desc { "default";
- color_class: "label/slide_long/bg";
- }
- }
- textblock { "elm.text";
- scale;
- clip: "clipper";
- desc { "default";
- align: 0.0 0.0;
- text {
- style: "textblock_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "slide_end";
- inherit: "default";
- rel2.relative: 0.0 1.0;
- align: 1.0 0.0;
- text {
- style: "textblock_style";
- min: 1 1;
- align: 0.0 0.0;
- }
- }
- desc { "slide_begin";
- inherit: "default";
- rel1.relative: 1.0 0.0;
- text {
- style: "textblock_style";
- min: 1 1;
- align: 0.0 0.0;
- }
- }
- }
- }
- programs {
- program { "on_start_slide";
- script {
- start_slide();
- }
- }
- program { "on_stop_slide";
- script {
- stop_slide();
- }
- }
- }
-}
-
-group { "elm/label/base/slide_roll";
- inherit: "elm/label/base/template";
- script {
- public g_duration = 0;
- public g_stopslide = 0;
- public g_timer_id = 0;
- public g_anim_id = 0;
- public g_tb_w = 0;
- public g_tb_h = LABEL_FONT_SIZE_INC;
- public org_text = 0;
- public message(Msg_Type:type, id, ...) {
- if (type == MSG_FLOAT_SET) {
- new Float:duration;
- duration = getfarg(2);
- if (id == 0)
- set_float(g_duration, duration);
- else
- set_float(g_duration, duration / get_int(g_tb_h) * SLIDE_SPEED_WEIGHT);
- }
- }
- public get_tb_width() {
- new x, y, w, h;
- set_state(PART:"elm.text", "no_ellipsis", 0.0);
- get_geometry(PART:"elm.text", x, y, w, h);
- set_int(g_tb_w, w);
- set_int(g_tb_h, h);
- set_state(PART:"clipper_elm.text", "default", 0.0);
- get_geometry(PART:"clipper_elm.text", x, y, w, h);
- set_int(org_text, w);
- }
- public slide_to_end_anim(val, Float:pos) {
- if (get_int(g_stopslide)) return;
- set_tween_state(PART:"elm.text.slide", pos*0.5, "slide_begin", 0.0, "slide_end", 0.0);
- if (pos >= 1.0) {
- set_int(g_timer_id, timer(1.5, "start_slide", 0));
- }
- }
- public slide_to_end() {
- if (get_int(g_stopslide)) return;
- set_int(g_anim_id, anim(get_float(g_duration), "slide_to_end_anim", 0));
- }
- public start_slide(val) {
- new Float:len;
- set_int(g_stopslide, 0);
- get_tb_width();
- if (!get_float(g_duration)) {
- len = get_int(g_tb_w);
- set_float(g_duration, len / get_int(g_tb_h) * SLIDE_SPEED_WEIGHT);
- }
- if(get_int(g_tb_w) > get_int(org_text)) {
- run_program(PROGRAM:"slide_text_set");
- set_state(PART:"elm.text.slide", "slide_begin", 0.0);
- set_state(PART:"clipper_elm.text", "hide", 0.0);
- set_state(PART:"clipper_elm.text.slide", "show", 0.0);
- slide_to_end();
- }
- }
- public stop_slide() {
- new slide_start_timer;
- new slide_anim_id;
- set_int(g_stopslide, 1);
- set_float(g_duration, 0);
- slide_start_timer = get_int(g_timer_id);
- if (slide_start_timer) {
- cancel_timer(slide_start_timer);
- set_int(g_timer_id, 0);
- }
- slide_anim_id = get_int(g_anim_id);
- if (slide_anim_id) {
- cancel_anim(slide_anim_id);
- set_int(g_anim_id, 0);
- }
- set_text(PART:"elm.text.slide", "");
- set_state(PART:"elm.text", "default", 0.0);
- set_state(PART:"elm.text.slide", "default", 0.0);
- set_state(PART:"clipper_elm.text", "default", 0.0);
- set_state(PART:"clipper_elm.text.slide", "default", 0.0);
- }
- }
- parts {
- rect { "bg";
- desc { "default";
- color_class: "label/slide_roll/bg";
- }
- }
- rect { "clipper_elm.text";
- nomouse;
- clip: "clipper";
- desc { "default";
- }
- desc { "hide";
- inherit: "default";
- hid;
- }
- }
- textblock { "elm.text";
- scale;
- clip: "clipper_elm.text";
- desc { "default";
- align: 0.0 0.5;
- text {
- style: "textblock_style";
- min: 0 1;
- }
- }
- desc { "no_ellipsis";
- inherit: "default";
- text.min: 1 1;
- }
- }
- rect { "clipper_elm.text.slide";
- nomouse;
- clip: "clipper";
- desc { "default";
- hid;
- }
- desc { "show";
- inherit: "default";
- vis;
- }
- }
- spacer { "slide_text_gap";
- scale;
- desc { "default";
- fixed: 1 0;
- min: SLIDE_TEXT_GAP 0;
- max: SLIDE_TEXT_GAP -1;
- align: 1.0 0.5;
- rel2.relative: 0.0 1.0;
- }
- }
- textblock { "elm.text.slide";
- scale;
- clip: "clipper_elm.text.slide";
- desc { "default";
- align: 0.0 0.5;
- text {
- style: "textblock_style";
- min: 0 1;
- }
- }
- desc { "slide_begin";
- inherit: "default";
- text.min: 1 1;
- rel2.relative: 0.0 1.0;
- }
- desc { "slide_end";
- inherit: "default";
- align: 1.0 0.5;
- text.min: 1 1;
- text.align: 1.0 0.5;
- rel.to: "slide_text_gap";
- }
- }
- }
- programs {
- program { "slide_text_set";
- script {
- new buf[1024];
- new buffer[SLIDE_TEXT_MAX_LENGTH];
- get_text(PART:"elm.text", buf, 1024);
- snprintf(buffer, SLIDE_TEXT_MAX_LENGTH, "%s", buf);
- strcat(buffer, SLIDE_TEXT_CHAR_GAP);
- strcat(buffer, buf);
- strcat(buffer, SLIDE_TEXT_CHAR_GAP);
- set_text(PART:"elm.text.slide", buffer);
- }
- }
- program { "on_start_slide";
- script {
- run_program(PROGRAM:"stop_slide");
- set_int(g_timer_id, timer(1.5, "start_slide", 0));
- }
- }
- program { "on_stop_slide";
- script {
- stop_slide();
- }
- }
- }
-}
-
-group { "elm/label/base/slide_short";
- inherit: "elm/label/base/template";
- script {
- public g_duration = 0, g_stopslide, g_timer_id, g_anim_id;
-
- public message(Msg_Type:type, id, ...) {
- if (type == MSG_FLOAT_SET) {
- new Float:duration;
- duration = getfarg(2);
- if (id == 0)
- set_float(g_duration, duration);
- else
- set_float(g_duration, duration / LABEL_FONT_SIZE_INC * SLIDE_SPEED_WEIGHT);
- }
- }
- public slide_to_end_anim(val, Float:pos) {
- new stopflag;
- new id;
- stopflag = get_int(g_stopslide);
- if (stopflag == 1) return;
- set_tween_state(PART:"elm.text", pos, "slide_begin", 0.0, "slide_end", 0.0);
- if (pos >= 1.0) {
- id = timer(0.5, "slide_to_begin", 1);
- set_int(g_timer_id, id);
- }
- }
- public slide_to_end() {
- new stopflag;
- new id;
- new Float:duration;
- stopflag = get_int(g_stopslide);
- if (stopflag == 1) return;
- duration = get_float(g_duration);
- id = anim(duration, "slide_to_end_anim", 1);
- set_int(g_anim_id, id);
- }
- public slide_to_begin() {
- new stopflag;
- new id;
- stopflag = get_int(g_stopslide);
- if (stopflag == 1) return;
- set_state(PART:"elm.text", "slide_begin", 0.0);
- id = timer(0.5, "slide_to_end", 1);
- set_int(g_timer_id, id);
- }
- public start_slide() {
- set_int(g_stopslide, 0);
- set_state(PART:"elm.text", "slide_begin", 0.0);
- slide_to_end();
- }
- public stop_slide() {
- new id;
- set_int(g_stopslide, 1);
- id = get_int(g_anim_id);
- cancel_anim(id);
- id = get_int(g_timer_id);
- cancel_timer(id);
- set_state(PART:"elm.text", "default", 0.0);
- }
- }
- parts {
- rect { "bg";
- desc { "default";
- color_class: "label/slide_short/bg";
- }
- }
- textblock { "elm.text";
- scale;
- clip: "clipper";
- desc { "default";
- align: 0.0 0.0;
- text {
- style: "textblock_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "slide_end";
- inherit: "default";
- rel1.relative: 1.0 0.0;
- align: 1.0 0.0;
- text {
- style: "textblock_style";
- min: 1 1;
- align: 0.0 0.0;
- }
- }
- desc { "slide_begin";
- inherit: "default";
- rel2.relative: 0.0 1.0;
- align: 0.0 0.0;
- text {
- style: "textblock_style";
- min: 1 1;
- align: 0.0 0.0;
- }
- }
- }
- }
- programs {
- program { "on_start_slide";
- script {
- start_slide();
- }
- }
- program { "on_stop_slide";
- script {
- stop_slide();
- }
- }
- }
-}
-
-group { "elm/label/base/slide_bounce";
- inherit: "elm/label/base/template";
- script {
- public g_duration = 0, g_stopslide, g_timer_id, g_anim_id;
-
- public message(Msg_Type:type, id, ...) {
- if (type == MSG_FLOAT_SET) {
- new Float:duration;
- duration = getfarg(2);
- if (id == 0)
- set_float(g_duration, duration);
- else
- set_float(g_duration, duration / LABEL_FONT_SIZE_INC * SLIDE_SPEED_WEIGHT);
- }
- }
- public slide_to_end_anim(val, Float:pos) {
- new stopflag;
- new id;
- stopflag = get_int(g_stopslide);
- if (stopflag == 1) return;
- set_tween_state(PART:"elm.text", pos, "slide_begin", 0.0, "slide_end", 0.0);
- if (pos >= 1.0) {
- id = timer(0.5, "slide_to_begin", 1);
- set_int(g_timer_id, id);
- }
- }
- public slide_to_end() {
- new stopflag;
- new id;
- new Float:duration;
- stopflag = get_int(g_stopslide);
- if (stopflag == 1) return;
- duration = get_float(g_duration);
- id = anim(duration, "slide_to_end_anim", 1);
- set_int(g_anim_id, id);
- }
- public slide_to_begin_anim(val, Float:pos) {
- new stopflag;
- new id;
- stopflag = get_int(g_stopslide);
- if (stopflag == 1) return;
- set_tween_state(PART:"elm.text", pos, "slide_end", 0.0, "slide_begin", 0.0);
- if (pos >= 1.0) {
- id = timer(0.5, "slide_to_end", 1);
- set_int(g_timer_id, id);
- }
- }
- public slide_to_begin() {
- new stopflag;
- new id;
- new Float:duration;
- stopflag = get_int(g_stopslide);
- if (stopflag == 1) return;
- duration = get_float(g_duration);
- id = anim(duration, "slide_to_begin_anim", 1);
- set_int(g_anim_id, id);
- }
- public start_slide() {
- set_int(g_stopslide, 0);
- set_state(PART:"elm.text", "slide_begin", 0.0);
- slide_to_end();
- }
- public stop_slide() {
- new id;
- set_int(g_stopslide, 1);
- id = get_int(g_anim_id);
- cancel_anim(id);
- id = get_int(g_timer_id);
- cancel_timer(id);
- set_state(PART:"elm.text", "default", 0.0);
- }
- }
- parts {
- rect { "bg";
- desc { "default";
- color_class: "label/slide_bounce/bg";
- }
- }
- textblock { "elm.text";
- scale;
- clip: "clipper";
- desc { "default";
- align: 0.0 0.0;
- text {
- style: "textblock_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "slide_end";
- inherit: "default";
- rel1.relative: 1.0 0.0;
- align: 1.0 0.0;
- text.min: 1 1;
- }
- desc { "slide_begin";
- inherit: "default";
- rel2.relative: 0.0 1.0;
- text.min: 1 1;
- }
- }
- }
- programs {
- program { "on_start_slide";
- script {
- start_slide();
- }
- }
- program { "on_stop_slide";
- script {
- stop_slide();
- }
- }
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-group { "elm/layout/background/default";
- parts {
- rect { "bg";
- scale;
- desc { "default";
- color_class: "layout/background/bg";
- }
- }
- swallow { "elm.swallow.content";
- scale;
- desc { "default"; }
- }
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-#define STYLE_TAGS \
- tag: "br" "\n";\
- tag: "ps" "ps";\
- tag: "tab" "\t";\
- tag: "b" "+ font_weight=Bold";
-
-styles{
- style { name: "radio_default";
- base: "color=#000000FF font=Tizen:weight=Light font_size=40 text_class=tizen ellipsis=1.0";
- STYLE_TAGS
- }
- style { name: "radio_default_dim";
- base: "color=#000000A3 font=Tizen:weight=Light font_size=40 text_class=tizen ellipsis=1.0";
- STYLE_TAGS
- }
- style { name: "radio_default_press";
- base: "color=#000000FF font=Tizen:weight=Light font_size=40 text_class=tizen ellipsis=1.0";
- STYLE_TAGS
- }
-}
-#undef STYLE_TAGS
-
-group { "elm/radio/event/default";
- inherit_only: 1;
- parts {
- rect { "event";
- mouse;
- desc { "default";
- color: 0 0 0 0 ;
- rel.to: "base";
- }
- desc { "disabled";
- inherit: "default";
- hid;
- }
- }
- }
- programs {
- program { "clicked";
- signal: "mouse,clicked,1";
- source: "event";
- action: SIGNAL_EMIT "elm,action,click" "";
- after: "on_clicked";
- }
- program { "pressed";
- signal: "mouse,down,1*";
- source: "event";
- action: SIGNAL_EMIT "elm,action,press" "";
- after: "on_pressed";
- }
- program { "unpressed";
- signal: "mouse,up,1";
- source: "event";
- action: SIGNAL_EMIT "elm,action,unpress" "";
- after: "on_unpressed";
- }
- program { "set_radio";
- signal: "elm,state,radio,on";
- source: "elm";
- after: "on_set_radio";
- }
- program { "unset_radio";
- signal: "elm,state,radio,off";
- source: "elm";
- after: "on_unset_radio";
- }
- program { "disabled";
- signal: "elm,state,disabled";
- source: "elm";
- after: "on_disabled";
- }
- program { "enabled";
- signal: "elm,state,enabled";
- source: "elm";
- after: "on_enabled";
- }
- program { "enable_event_pass";
- signal: "elm,event,pass,enabled";
- source: "elm";
- script {
- set_mouse_events(PART:"event", 0);
- }
- }
- program { "disable_event_pass";
- signal: "elm,event,pass,disabled";
- source: "elm";
- script {
- set_mouse_events(PART:"event", 1);
- }
- }
- program { "enable_event_repeat";
- signal: "elm,event,repeat,enabled";
- source: "elm";
- script {
- set_repeat_events(PART:"event", 1);
- }
- }
- program { "disable_event_repeat";
- signal: "elm,event,repeat,disabled";
- source: "elm";
- script {
- set_repeat_events(PART:"event", 0);
- }
- }
- }
-}
-group { "elm/radio/base/template";
- parts {
- spacer { "base";
- desc { "default";
- }
- }
- }
- inherit: "elm/radio/event/default";
- programs {
- program { "on_clicked";
- }
- program { "on_pressed";
- }
- program { "on_unpressed";
- }
- program { "on_disabled";
- }
- program { "on_enabled";
- }
- program { "on_set_radio";
- }
- program { "on_unset_radio";
- }
- }
-}
-group { "elm/radio/base/default";
- images{
- vector: core_radio_stroke.svg;
- vector: core_radio_icon.svg;
- vector: core_radio_bg_01.svg;
- vector: core_radio_bg_02.svg;
- vector: core_radio_white_bg.svg;
- }
- nomouse;
- target_group: "vector_group" "clipper_bg_vector" "clipper_icon" "clipper_icon_inner" "clipper_icon_outer" "clipper_icon_stroke";
- parts {
- spacer { "base";
- scale;
- desc { "default";
- min: RADIO_DEFAULT_SIZE_INC;
- }
- }
- //bg shape
- vector { "bg_vector";
- scale;
- clip: "clipper_bg_vector";
- desc { "default";
- image.normal: "core_radio_white_bg.svg";
- min: RADIO_DEFAULT_SIZE_INC;
- rel1.relative: 0 0.5;
- rel2.relative: 0 0.5;
- align: 0 0.5;
- fixed: 1 1;
- }
- }
- rect { "clipper_bg_vector";
- desc { "default";
- color_class: "radio/default/bg";
- }
- desc { "on";
- color_class: "radio/default/bg_border_on";
- }
- desc { "off";
- inherit: "default";
- }
- desc { "disabled_on";
- color_class: "radio/default/bg_border_on_disabled";
- }
- desc { "disabled_off";
- color_class: "radio/default/bg_disabled";
- }
- }
- vector { "icon";
- scale;
- clip: "clipper_icon";
- desc { "default";
- image.normal: "core_radio_icon.svg";
- rel1.to: "bg_vector";
- rel2.to: "bg_vector";
- }
- }
- rect { "clipper_icon";
- desc { "default";
- color: 250 250 250 0;
- }
- desc { "on";
- color_class: "radio/default/bg_on" ;
- }
- desc { "off";
- inherit: "default";
- }
- desc { "disabled_off";
- inherit: "default";
- }
- desc { "disabled_on";
- color_class: "radio/default/bg_on_disabled" ;
- }
- }
- vector { "icon_inner";
- scale;
- clip: "clipper_icon_inner";
- desc { "default";
- image.normal: "core_radio_bg_01.svg";
- rel.to: "bg_vector";
- }
- }
- rect { "clipper_icon_inner";
- desc { "default";
- rel1.relative: 0.5 0.5;
- rel2.relative: 0.5 0.5;
- rel.to: "bg_vector";
- }
- desc { "on";
- rel.to: "bg_vector";
- color_class: "radio/default/icon";
- }
- desc { "off";
- inherit: "default";
- }
- desc { "disabled_off";
- inherit: "default";
- }
- desc { "disabled_on";
- rel.to: "bg_vector";
- color_class: "radio/default/icon_disabled";
- }
- }
- vector { "icon_outer";
- scale;
- clip: "clipper_icon_outer";
- desc { "default";
- image.normal: "core_radio_bg_02.svg";
- rel1.to: "bg_vector";
- rel2.to: "bg_vector";
- }
- }
- rect { "clipper_icon_outer";
- desc { "default";
- color: 61 185 204 0;
- }
- desc { "on";
- color_class: "radio/default/icon";
- }
- desc { "off";
- inherit: "default";
- }
- desc { "disabled_off";
- inherit: "default";
- }
- desc { "disabled_on";
- color_class: "radio/default/icon_disabled";
- }
- }
- vector { "icon_stroke";
- scale;
- clip: "clipper_icon_stroke";
- desc { "default";
- image.normal: "core_radio_stroke.svg";
- rel1.to: "bg_vector";
- rel2.to: "bg_vector";
- }
- }
- rect { "clipper_icon_stroke";
- desc { "default";
- color_class: "radio/default/stroke";
- }
- desc { "on";
- color: 61 185 204 0;
- }
- desc { "off";
- inherit: "default";
- }
- desc { "disabled_off";
- color_class: "radio/default/stroke_disabled";
- }
- desc { "disabled_on";
- inherit: "on";
- }
- }
- spacer { "padding_before_text";
- scale;
- desc { "default";
- align: 0.0 0.5;
- min: 0 0;
- rel1 {
- to: "bg_vector";
- relative: 1.0 0.0;
- }
- rel2 {
- to: "bg_vector";
- relative: 1.0 1.0;
- }
- }
- desc { "visible";
- inherit: "default" 0.0;
- min: RADIO_PAD_BEFORE_TEXT_INC;
- fixed: 1 1;
- }
- }
- textblock { "elm.text";
- scale;
- desc { "default";
- hid;
- fixed: 0 1;
- rel1 {
- relative: 1.0 0.5;
- to_x: "padding_before_text";
- }
- rel2 {
- relative: 1.0 0.5;
- }
- align: 0.0 0.5;
- text {
- style: "radio_default";
- min: 0 0;
- }
- }
- desc { "visible";
- inherit: "default" 0.0;
- vis;
- text.min: 0 1;
- }
- desc { "disabled";
- inherit: "default" 0.0;
- vis;
- text {
- style: "radio_default_dim";
- min: 0 1;
- }
- }
- desc { "pressed";
- inherit: "default" 0.0;
- vis;
- text {
- style: "radio_default_press";
- min: 0 1;
- }
- }
- }
- }
- inherit: "elm/radio/event/default";
- script {
- public radio_state;
- public disabled;
- public text;
- public animate = 0;
- }
- programs {
- program { "on_clicked";
- script {
- if (get_int(disabled) == 1) return;
- emit("elm,action,radio,toggle", "");
- run_program(PROGRAM:"touch_sound");
- }
- }
- program { "on_pressed";
- script {
- if (get_int(disabled) == 1) return;
- if (get_int(text) == 1) {
- set_state(PART:"elm.text", "pressed", 0.0);
- }
- }
- }
- program { "on_unpressed";
- script {
- if (get_int(disabled) == 1) return;
- if (get_int(radio_state) == 1) {
- run_program(PROGRAM:"toggle_on_without_effect");
- }else {
- run_program(PROGRAM:"toggle_off_without_effect");
- }
- if (get_int(text) == 1) {
- set_state(PART:"elm.text", "visible", 0.0);
- }
- }
- }
- program { "on_disabled";
- script {
- set_int(disabled, 1);
- if (get_int(radio_state) == 1) {
- run_program(PROGRAM:"toggle_disabled_on_without_effect");
- }else {
- run_program(PROGRAM:"toggle_disabled_off_without_effect");
- }
- if (get_int(text) == 1) {
- set_state(PART:"elm.text", "disabled", 0.0);
- }
- }
- }
- program { "on_enabled";
- script {
- set_int(disabled, 0);
- if (get_int(radio_state) == 1) {
- run_program(PROGRAM:"toggle_on_without_effect");
- } else {
- run_program(PROGRAM:"toggle_off_without_effect");
- }
- if (get_int(text) == 1) {
- set_state(PART:"elm.text", "visible", 0.0);
- }
- }
- }
- program { "on_set_radio";
- script {
- if (get_int(disabled) == 1) {
- if (get_int(animate) == 0) {
- run_program(PROGRAM:"toggle_disabled_on_without_effect");
- } else {
- run_program(PROGRAM:"toggle_disabled_on_with_effect");
- }
- }else {
- if (get_int(animate) == 0) {
- run_program(PROGRAM:"toggle_on_without_effect");
- emit("elm,radio,state,toggle", "tizen_vg");
- } else {
- run_program(PROGRAM:"toggle_on_with_effect");
- emit("elm,radio,action,toggle", "tizen_vg");
- }
- }
- set_int(animate, 0);
- set_int(radio_state, 1);
- }
- }
- program { "on_unset_radio";
- script {
- if (get_int(disabled) == 1) {
- if (get_int(animate) == 0) {
- run_program(PROGRAM:"toggle_disabled_off_without_effect");
- } else {
- run_program(PROGRAM:"toggle_disabled_off_with_effect");
- }
- }else {
- if (get_int(animate) == 0) {
- run_program(PROGRAM:"toggle_off_without_effect");
- emit("elm,radio,state,toggle", "tizen_vg");
- } else {
- run_program(PROGRAM:"toggle_off_with_effect");
- emit("elm,radio,action,toggle", "tizen_vg");
- }
- }
- set_int(animate, 0);
- set_int(radio_state, 0);
- }
- }
- program { "touch_sound";
- action: RUN_PLUGIN "touch_sound";
- }
- program { "activate_animate_radio";
- signal: "elm,activate,radio,on";
- source: "elm";
- script {
- set_int(animate, 1);
- }
- }
- program { "deactivate_animate_radio";
- signal: "elm,activate,radio,off";
- source: "elm";
- script {
- set_int(animate, 1);
- }
- }
- program { "toggle_on_with_effect";
- action: STATE_SET "on";
- transition: DECELERATE 0.3;
- target_groups: "vector_group";
- after: "finished_animation";
- }
- program { "toggle_off_with_effect";
- action: STATE_SET "default";
- target_groups: "vector_group";
- transition: DECELERATE 0.3;
- after: "finished_animation";
- }
- program { "toggle_disabled_on_with_effect";
- action: STATE_SET "disabled_on";
- target_groups: "vector_group";
- transition: DECELERATE 0.3;
- after: "finished_animation";
- }
- program { "toggle_disabled_off_with_effect";
- action: STATE_SET "disabled_off";
- target_groups: "vector_group";
- transition: DECELERATE 0.3;
- after: "finished_animation";
- }
- program { "toggle_on_without_effect";
- action: STATE_SET "on";
- target_groups: "vector_group";
- }
- program { "toggle_off_without_effect";
- action: STATE_SET "default";
- target_groups: "vector_group";
- }
- program { "toggle_disabled_on_without_effect";
- action: STATE_SET "disabled_on";
- target_groups: "vector_group";
- }
- program { "toggle_disabled_off_without_effect";
- action: STATE_SET "disabled_off";
- target_groups: "vector_group";
- }
- program { "finished_animation";
- action: SIGNAL_EMIT "animation,finished" "";
- }
- program { "visible_text";
- signal: "elm,state,text,visible";
- source: "elm";
- script {
- set_int(text, 1);
- set_state(PART:"padding_before_text", "visible", 0.0);
- if (get_int(disabled) == 1) {
- set_state(PART:"elm.text", "disabled", 0.0);
- }else {
- set_state(PART:"elm.text", "visible", 0.0);
- }
- }
- }
- program { "hidden_text";
- signal: "elm,state,text,hidden";
- source: "elm";
- script {
- set_int(text, 0);
- set_state(PART:"padding_before_text", "default", 0.0);
- set_state(PART:"elm.text", "default", 0.0);
- }
- }
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-//****************************************************************************//
-// This file defines the width, height (not color!) for each widgets
-// We can define different INC file by Resolution (HD, qHD, WVGA, HVGA)
-//
-// ************* Naming Rule ************ //
-// {WIDGET}_{GROUP}_{PART}_{STATE}_{TYPE}
-// WIDGET: NAVIFRAME, LIST, DATETIME, POPUP, etc.
-// GROUP: INDEX
-// PART: TEXT, ICON, BG, PADDING, DIVIDER, ICON, etc.
-// STATE: LEFT, RIGHT, TOP, BOTTOM, MIN, MAX,
-// TYPE: HEIGHT, WIDTH, SIZE
-// e.g. LIST_PADDING_LEFT_HEIGHT
-//****************************************************************************//
-
-#define BASE_SCALE_INC 2.6
-
-//****************************************************************************//
-// Colorselector
-//****************************************************************************//
-#define COLORSELECTOR_PALETTE_COLORPLANE_HEIGHT_INC 238
-#define COLORSELECTOR_PALETTE_COLORPLANE_WIDTH_INC 678
-#define COLORSELECTOR_PORTRAIT_HOR_PAD_COLORPLANE_INC "8"
-#define COLORSELECTOR_PORTRAIT_VER_PAD_COLORPLANE_INC "8"
-#define COLORSELECTOR_TOPBOTTOM_PAD_COLORPLANE_INC 24
-
-//****************************************************************************//
-// Entry
-//****************************************************************************//
-#define ENTRY_PREEDIT_BACKGROUND_COLOR_INC "#000000"
-#define ENTRY_PREEDIT_HIGHLIGHT_BACKGROUND_COLOR_INC "#8bd8ff99"
-#define ENTRY_PREEDIT_TEXT_COLOR_INC "#FAFAFA"
-#define ENTRY_PREEDIT_UNDERLINE_COLOR_INC "#000000"
-#define ENTRY_PREEDIT_SUB1_COLOR_INC "#2EA8E1"
-#define ENTRY_PREEDIT_SUB2_COLOR_INC "#9962C3"
-#define ENTRY_PREEDIT_SUB3_COLOR_INC "#76DE37"
-#define ENTRY_PREEDIT_SUB4_COLOR_INC "#999999"
-#define ENTRY_LEFT_RIGHT_MARGIN_INC 5
-#define ENTRY_FONT_SIZE_INC 40
-#define ENTRY_CURSOR_SIZE_INC 3 0
-
-//****************************************************************************//
-// Label
-//****************************************************************************//
-#define LABEL_FONT_SIZE_INC 24
-
-//****************************************************************************//
-// RADIO
-//****************************************************************************//
-#define RADIO_DEFAULT_SIZE_INC 50 50
-#define RADIO_PAD_BEFORE_TEXT_INC 32 0
-
-//****************************************************************************//
-// GENLIST
-//****************************************************************************//
-#define LIST_BOTTOMLINE_HEIGHT 2
+++ /dev/null
-This is reserved directory for mobile images. Please delete this file when any file is added.
+++ /dev/null
-This is reserved space for mobile images. Please erase this file if any image is added.
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Generator: Adobe Illustrator 16.0.3, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
-<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
- width="50px" height="50px" viewBox="0 0 50 50" enable-background="new 0 0 50 50" xml:space="preserve">
-<path fill="#FFFFFF" d="M25.001,13c-6.617,0-12,5.383-12,12s5.383,12.001,12,12.001C31.617,37,37,31.616,37,24.999
- S31.617,13,25.001,13z"/>
-</svg>
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Generator: Adobe Illustrator 16.0.3, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
-<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
- width="50px" height="50px" viewBox="0 0 50 50" enable-background="new 0 0 50 50" xml:space="preserve">
-<path fill="#FFFFFF" d="M25.001,2c-12.703,0-23,10.297-23,22.999c0,12.704,10.297,23.001,23,23.001C37.703,48,48,37.703,48,24.999
- C48,12.297,37.703,2,25.001,2z M25.001,41c-8.822,0-16-7.178-16-16.001c0-8.822,7.178-16,16-16c8.822,0,15.999,7.178,15.999,16
- C41,33.822,33.823,41,25.001,41z"/>
-</svg>
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Generator: Adobe Illustrator 16.0.3, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
-<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
- width="50px" height="50px" viewBox="0 0 50 50" enable-background="new 0 0 50 50" xml:space="preserve">
-<circle fill="#FFFFFF" cx="25.001" cy="25" r="23"/>
-</svg>
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
-<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
- width="50px" height="50px" viewBox="0 0 50 50" enable-background="new 0 0 50 50" xml:space="preserve">
-<path fill="#FFFFFF" d="M25.001,49c-13.233,0-24-10.767-24-24s10.767-24,24-24s24,10.767,24,24S38.234,49,25.001,49z M25.001,4
- c-11.58,0-21,9.42-21,21c0,11.579,9.42,21,21,21c11.579,0,21-9.421,21-21C46.001,13.42,36.58,4,25.001,4z"/>
-</svg>
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Generator: Adobe Illustrator 16.0.3, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
-<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
- width="50px" height="50px" viewBox="0 0 50 50" enable-background="new 0 0 50 50" xml:space="preserve">
-<path fill="#FFFFFF" d="M25.001,49c-13.233,0-24-10.766-24-24.001C1.001,11.767,11.768,1,25.001,1C38.234,1,49,11.767,49,24.999
- C49,38.234,38.234,49,25.001,49z"/>
-</svg>
+++ /dev/null
-color_classes {
- /*
- * Layout
- */
- color_class {
- name: "layout/background/bg";
- color: 0 0 0 0;
- }
- /*
- * Colorselector
- */
- color_class {
- name: "colorselector/default/bg";
- color: 250 250 250 255;
- }
- /*
- * Entry
- */
- color_class { "entry/default/text_edit";
- color: 0 0 0 255;
- }
- color_class { "entry/default/text_edit_focused";
- color: 0 0 0 255;
- }
- color_class { "entry/default/text_edit_disabled";
- color: 0 0 0 110;
- }
- color_class { "entry/default/text_guide";
- color: 0 0 0 145;
- }
- color_class { "entry/default/text_guide_focused";
- color: 0 0 0 145;
- }
- color_class { "entry/default/text_guide_disabled";
- color: 0 0 0 110;
- }
- color_class {
- name: "entry/default/bg";
- color: 0 0 0 0;
- }
- color_class { "entry/default/cursor";
- color: 0 184 230 110;
- }
- /*
- * Label
- */
- color_class {
- name: "label/default/bg";
- color: 0 0 0 0;
- }
- color_class {
- name: "label/slide_long/bg";
- color: 0 0 0 0;
- }
- color_class {
- name: "label/slide_short/bg";
- color: 0 0 0 0;
- }
- color_class {
- name: "label/slide_roll/bg";
- color: 0 0 0 0;
- }
- color_class {
- name: "label/slide_bounce/bg";
- color: 0 0 0 0;
- }
-
- /*
- * Radio
- */
- color_class { "radio/default/icon";
- color: 61 185 204 255;
- }
- color_class { "radio/default/bg";
- color: 250 250 250 51;
- }
- color_class { "radio/default/icon_disabled";
- color: 61 185 204 77;
- }
- color_class { "radio/default/bg_disabled";
- color: 250 250 250 38;
- }
- color_class { "radio/default/bg_border_on";
- color: 250 250 250 77;
- }
- color_class { "radio/default/bg_border_on_disabled";
- color: 250 250 250 38;
- }
- color_class { "radio/default/stroke";
- color: 61 185 204 255;
- }
- color_class { "radio/default/stroke_disabled";
- color: 61 185 204 77;
- }
- color_class { "radio/default/bg_on";
- color: 250 250 250 255;
- }
- color_class { "radio/default/bg_on_disabled";
- color: 250 250 250 255;
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-// 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.
-
-//****************************************************************************************//
-// This is theme body including all widget bodys
-// Define shared descriptions (e.g. sound samples, color classes, textblock styles) in here
-// Do not define size(width, height) in here!!!!
-//****************************************************************************************//
-
-// Include INC (e.g. HD-inc.edc, HVGA-inc.edc for each resolution) file
-#include "HD-inc.edc"
-
-externals {
- external: "elm";
-}
-
-// BUILD_FIX: Add version to edc as 110.
-data.item: "version" "110";
-//
-
-collections {
- base_scale: BASE_SCALE_INC;
- plugins {
- plugin {
- name: "touch_sound";
- source: "feedback";
- param: "FEEDBACK_TYPE_SOUND FEEDBACK_PATTERN_TAP"; // FEEDBACK_TYPE_SOUND, FEEDBACK_PATTERN_TOUCH_TAP
-
- /* 2014.06.11 updated from libsvi(feedback)
- Above plugin will run below external function:
- int feedback_play_type(feedback_type_e type, feedback_pattern_e pattern);
-
- param1: feedback_type_e
- FEEDBACK_TYPE_NONE = 0,
- FEEDBACK_TYPE_SOUND = 1,
- FEEDBACK_TYPE_VIBRATION,
- FEEDBACK_TYPE_LED,
- FEEDBACK_TYPE_END
-
- * param2 enumeration:
- FEEDBACK_PATTERN_TAP = 0,
- FEEDBACK_PATTERN_SIP,
- FEEDBACK_PATTERN_SIP_BACKSPACE,
- FEEDBACK_PATTERN_SIP_FUNCTION,
- FEEDBACK_PATTERN_SIP_FJKEY,
- ...
-
- * For more information please refer libsvi.
- */
- }
- }
-
-#include "color_classes.edc"
-
-#include "widgets/colorselector.edc"
-#include "widgets/entry.edc"
-#include "widgets/genlist.edc"
-#include "widgets/label.edc"
-#include "widgets/radio.edc"
-#include "widgets/layout.edc"
-
-}
-
+++ /dev/null
-/*
- * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-group { "elm/colorselector/palette/colorplane";
- alias: "elm/colorselector/palette/default";
- data.item: "horizontal_pad" COLORSELECTOR_PORTRAIT_HOR_PAD_COLORPLANE_INC;
- data.item: "vertical_pad" COLORSELECTOR_PORTRAIT_VER_PAD_COLORPLANE_INC;
-
- parts {
- spacer { "base";
- scale;
- desc { "default";
- min: COLORSELECTOR_PALETTE_COLORPLANE_WIDTH_INC COLORSELECTOR_PALETTE_COLORPLANE_HEIGHT_INC;
- max: -1 -1;
- }
- }
- rect { "bg";
- nomouse;
- desc { "default";
- rel.to: "base";
- color_class: "colorselector/default/bg";
- }
- }
- spacer { "padding_top";
- scale;
- desc { "default";
- min: 0 COLORSELECTOR_TOPBOTTOM_PAD_COLORPLANE_INC;
- fixed: 0 1;
- rel1 {
- relative: 0.0 0.0;
- to: "base";
- }
- rel2 {
- relative: 1.0 0.0;
- to: "base";
- }
- align: 0.0 0.0;
- }
- }
- swallow { "palette";
- scale;
- mouse;
- desc { state: "default";
- align: 0.5 0.0;
- fixed: 0 1;
- rel1 {
- relative: 0.0 1.0;
- to_y: "padding_top";
- }
- rel2.to_y: "padding_top";
- }
- }
- spacer { "padding_palette";
- scale;
- desc { "default";
- min: 0 COLORSELECTOR_TOPBOTTOM_PAD_COLORPLANE_INC;
- fixed: 0 1;
- rel1 {
- relative: 0.0 1.0;
- to: "palette";
- }
- rel2.to: "palette";
- align: 0.0 0.0;
- }
- }
- }
-}
-
+++ /dev/null
-/*
- * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#define ENTRY_DEFAULT_TAGS \
- tag: "em" "+ font_style=Oblique"; \
- tag: "b" "+ font_weight=Bold"; \
- tag: "link" "+ color=#800 underline=on underline_color=#8008"; \
- tag: "hilight" "+ font_weight=Bold";
-
-#define ENTRY_SINGLELINE_TAGS \
- tag: "br" ""; \
- tag: "em" "+ font_style=Oblique"; \
- tag: "b" "+ font_weight=Bold"; \
- tag: "link" "+ color=#800 underline=on underline_color=#8008"; \
- tag: "hilight" "+ font_weight=Bold";
-
-#define ENTRY_PREEDIT_TAGS \
- tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; \
- tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC; \
- tag: "preedit_highlight" "+ backing=on backing_color="ENTRY_PREEDIT_HIGHLIGHT_BACKGROUND_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC; \
- tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; \
- tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; \
- tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; \
- tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
-
-styles {
- style { "entry_textblock_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_edit";
- ENTRY_DEFAULT_TAGS
- ENTRY_PREEDIT_TAGS
- }
- style { "entry_textblock_focused_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_edit_focused";
- ENTRY_DEFAULT_TAGS
- ENTRY_PREEDIT_TAGS
- }
- style { "entry_textblock_disabled_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_edit_disabled";
- ENTRY_DEFAULT_TAGS
- ENTRY_PREEDIT_TAGS
- }
- style { "entry_textblock_guide_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_guide";
- ENTRY_DEFAULT_TAGS
- }
- style { "entry_textblock_guide_focused_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_guide_focused";
- ENTRY_DEFAULT_TAGS
- }
- style { "entry_textblock_guide_disabled_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_guide_disabled";
- ENTRY_DEFAULT_TAGS
- }
- style { "entry_textblock_char_wrap_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_edit";
- ENTRY_DEFAULT_TAGS
- ENTRY_PREEDIT_TAGS
- }
- style { "entry_textblock_char_wrap_focused_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_edit_focused";
- ENTRY_DEFAULT_TAGS
- ENTRY_PREEDIT_TAGS
- }
- style { "entry_textblock_char_wrap_disabled_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_edit_disabled";
- ENTRY_DEFAULT_TAGS
- ENTRY_PREEDIT_TAGS
- }
- style { "entry_textblock_char_wrap_guide_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_guide";
- ENTRY_DEFAULT_TAGS
- }
- style { "entry_textblock_char_wrap_guide_focused_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_guide_focused";
- ENTRY_DEFAULT_TAGS
- }
- style { "entry_textblock_char_wrap_guide_disabled_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_guide_disabled";
- ENTRY_DEFAULT_TAGS
- }
- style { "entry_single_textblock_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_edit";
- ENTRY_SINGLELINE_TAGS
- ENTRY_PREEDIT_TAGS
- }
- style { "entry_single_textblock_focused_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_edit_focused";
- ENTRY_SINGLELINE_TAGS
- ENTRY_PREEDIT_TAGS
- }
- style { "entry_single_textblock_disabled_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_edit_disabled";
- ENTRY_SINGLELINE_TAGS
- ENTRY_PREEDIT_TAGS
- }
- style { "entry_single_textblock_guide_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_guide";
- ENTRY_SINGLELINE_TAGS
- }
- style { "entry_single_textblock_guide_focused_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_guide_focused";
- ENTRY_SINGLELINE_TAGS
- }
- style { "entry_single_textblock_guide_disabled_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_guide_disabled";
- ENTRY_SINGLELINE_TAGS
- }
-}
-
-group { "elm/entry/event/default";
- inherit_only: 1;
- parts {
- rect { "event";
- mouse;
- repeat;
- desc { "default";
- color: 0 0 0 0;
- }
- desc { "disabled";
- inherit: "default";
- hid;
- }
- }
- }
- programs {
- program { "clicked";
- signal: "mouse,clicked,1";
- source: "event";
- after: "on_clicked";
- }
- program { "load";
- signal: "load";
- source: "";
- after: "on_load";
- }
- program { "disabled";
- signal: "elm,state,disabled";
- source: "elm";
- action: STATE_SET "disabled";
- target: "event";
- after: "on_disabled";
- }
- program { "enabled";
- signal: "elm,state,disabled";
- source: "elm";
- action: STATE_SET "default";
- target: "event";
- after: "on_enabled";
- }
- program { "focus";
- signal: "elm,action,focus";
- source: "elm";
- after: "on_focus";
- }
- program { "unfocus";
- signal: "elm,action,unfocus";
- source: "elm";
- after: "on_unfocus";
- }
- program { "disabled_guide";
- signal: "elm,guide,disabled";
- source: "elm";
- after: "on_disabled_guide";
- }
- program { "enabled_guide";
- signal: "elm,guide,enabled";
- source: "elm";
- after: "on_enabled_guide";
- }
- }
-}
-
-group { "elm/entry/base/template";
- inherit_only: 1;
- data.item: "default_font_size" ENTRY_FONT_SIZE_INC;
- data.item: "focus_highlight" "on";
- data.item: context_menu_orientation "horizontal";
- parts {
- rect { "bg";
- nomouse;
- desc { "default";
- color_class: "entry/default/bg";
- }
- }
- textblock { "elm.guide";
- nomouse;
- scale;
- desc { "default";
- rel.to: "elm.text";
- text.style: "entry_textblock_guide_style";
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_textblock_guide_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_textblock_guide_disabled_style";
- }
- desc { "hidden";
- inherit: "default";
- hid;
- }
- }
- textblock { "elm.text";
- mouse;
- scale;
- entry_mode: EDITABLE;
- select_mode: EXPLICIT;
- cursor_mode: BEFORE;
- multiline: 1;
- source: "elm/entry/selection/default"; // selection under
- source4: "elm/entry/cursor/default"; // cursorover
- source5: "elm/entry/anchor/default"; // anchor under
- desc { "default";
- text.style: "entry_textblock_style";
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_textblock_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_textblock_disabled_style";
- }
- }
- }
- inherit: "elm/entry/event/default";
- script {
- public focused = 0;
- public disabled = 0;
- public guide_disabled = 0;
- }
- programs {
- program { "on_load";
- action: FOCUS_SET;
- target: "elm.text";
- }
- program { "on_clicked";
- action: RUN_PLUGIN "touch_sound";
- }
- program { "on_focus";
- script {
- set_int(focused, 1);
- if (get_int(disabled) == 0) {
- set_state(PART:"elm.text", "focused", 0.0);
- if (get_int(guide_disabled) == 0)
- set_state(PART:"elm.guide", "focused", 0.0);
- }
- }
- }
- program { "on_unfocus";
- script {
- set_int(focused, 0);
- if (get_int(disabled) == 0) {
- set_state(PART:"elm.text", "default", 0.0);
- if (get_int(guide_disabled) == 0)
- set_state(PART:"elm.guide", "default", 0.0);
- }
- }
- }
- program { "on_disabled";
- script {
- set_int(disabled, 1);
- set_state(PART:"elm.text", "disabled", 0.0);
- if (get_int(guide_disabled) == 0)
- set_state(PART:"elm.guide", "disabled", 0.0);
- }
- }
- program { "on_enabled";
- script {
- set_int(disabled, 0);
- if (get_int(focused))
- set_state(PART:"elm.text", "focused", 0.0);
- else
- set_state(PART:"elm.text", "default", 0.0);
- if (get_int(guide_disabled) == 0) {
- if (get_int(focused))
- set_state(PART:"elm.guide", "focused", 0.0);
- else
- set_state(PART:"elm.guide", "default", 0.0);
- }
- }
- }
- program { "on_disabled_guide";
- script {
- set_int(guide_disabled, 1);
- set_state(PART:"elm.guide", "hidden", 0.0);
- }
- }
- program { "on_enabled_guide";
- script {
- set_int(guide_disabled, 0);
- if (get_int(disabled))
- set_state(PART:"elm.guide", "disabled", 0.0);
- else if (get_int(focused))
- set_state(PART:"elm.guide", "focused", 0.0);
- else
- set_state(PART:"elm.guide", "default", 0.0);
- }
- }
- }
-}
-
-group { "elm/entry/cursor/event/default";
- inherit_only: 1;
- programs {
- program { "selection_start";
- signal: "selection,start";
- source: "elm.text";
- after: "on_selection_start";
- }
- program { "selection_cleared";
- signal: "selection,cleared";
- source: "elm.text";
- after: "on_selection_cleared";
- }
- program { "focus";
- signal: "elm,action,focus";
- source: "elm";
- after: "on_focus";
- }
- program { "unfocus";
- signal: "elm,action,unfocus";
- source: "elm";
- after: "on_unfocus";
- }
- program { "show_cursor";
- signal: "elm,action,show,cursor";
- source: "elm";
- after: "on_show_cursor";
- }
- }
-}
-
-group { "elm/entry/cursor/template";
- inherit: "elm/entry/cursor/event/default";
- inherit_only: 1;
- parts {
- rect { "cursor";
- clip: "clipper";
- desc { "default";
- hid;
- }
- desc { "visible";
- inherit: "default";
- vis;
- }
- }
- rect { "clipper";
- desc { "default";
- }
- desc { "hidden";
- inherit: "default";
- hid;
- }
- }
- }
- programs {
- program { "on_selection_start";
- action: STATE_SET "hidden";
- target: "clipper";
- }
- program { "on_selection_cleared";
- action: STATE_SET "default";
- target: "clipper";
- }
- program { "on_focus";
- action: ACTION_STOP;
- target: "cursor_visible";
- target: "cursor_hidden";
- target: "cursor_visible_timer";
- target: "cursor_hidden_timer";
- after: "cursor_visible";
- }
- program { "on_unfocus";
- action: ACTION_STOP;
- target: "cursor_visible";
- target: "cursor_hidden";
- target: "cursor_visible_timer";
- target: "cursor_hidden_timer";
- after: "cursor_hidden_stop";
- }
- program { "on_show_cursor";
- action: ACTION_STOP;
- target: "cursor_visible";
- target: "cursor_hidden";
- target: "cursor_visible_timer";
- target: "cursor_hidden_timer";
- after: "cursor_visible";
- }
- program { "cursor_hidden_stop";
- action: STATE_SET "default";
- target: "cursor";
- }
- program { "cursor_visible";
- action: STATE_SET "visible";
- target: "cursor";
- after: "cursor_visible_timer";
- }
- program { "cursor_hidden";
- action: STATE_SET "default";
- target: "cursor";
- after: "cursor_hidden_timer";
- }
- program { "cursor_visible_timer";
- in: 0.6 0.0;
- after: "cursor_hidden";
- }
- program { "cursor_hidden_timer";
- in: 0.6 0.0;
- after: "cursor_visible";
- }
- }
-}
-
-group { "elm/entry/cursor/default";
- inherit: "elm/entry/cursor/template";
- parts {
- rect { "cursor";
- nomouse;
- scale;
- clip: "clipper";
- desc { "default";
- min: ENTRY_CURSOR_SIZE_INC;
- color_class: "entry/default/cursor";
- hid;
- }
- desc { "visible";
- inherit: "default";
- vis;
- }
- }
- rect { "clipper";
- desc { "default";
- rel.to: "cursor";
- fixed: 1 1;
- }
- desc { "hidden";
- inherit: "default";
- hid;
- }
- }
- }
-}
-
-group { "elm/entry/base/default";
- inherit: "elm/entry/base/template";
- alias: "elm/entry/base-mixedwrap/default";
- parts {
- textblock { "elm.guide";
- nomouse;
- scale;
- desc { "default";
- rel.to: "elm.text";
- text {
- style: "entry_textblock_guide_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_textblock_guide_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_textblock_guide_disabled_style";
- }
- desc { "hidden";
- inherit: "default";
- hid;
- }
- }
- textblock { "elm.text";
- mouse;
- scale;
- entry_mode: EDITABLE;
- select_mode: EXPLICIT;
- cursor_mode: BEFORE;
- multiline: 1;
- source: "elm/entry/selection/default"; // selection under
- source4: "elm/entry/cursor/default"; // cursorover
- source5: "elm/entry/anchor/default"; // anchor under
- desc { "default";
- fixed: 1 0;
- text {
- style: "entry_textblock_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "focused";
- inherit: "default";
- text {
- style: "entry_textblock_focused_style";
- min: 0 1;
- }
- }
- desc { "disabled";
- inherit: "default";
- text {
- style: "entry_textblock_disabled_style";
- min: 0 1;
- }
- }
- }
- }
-}
-
-group { "elm/entry/base-charwrap/default";
- alias: "elm/entry/base/char_wrap";
- inherit: "elm/entry/base/template";
- parts {
- textblock { "elm.guide";
- nomouse;
- scale;
- desc { "default";
- rel.to: "elm.text";
- text {
- style: "entry_textblock_char_wrap_guide_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_textblock_char_wrap_guide_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_textblock_char_wrap_guide_disabled_style";
- }
- desc { "hidden";
- inherit: "default";
- hid;
- }
- }
- textblock { "elm.text";
- mouse;
- scale;
- entry_mode: EDITABLE;
- select_mode: EXPLICIT;
- cursor_mode: BEFORE;
- multiline: 1;
- source: "elm/entry/selection/default"; // selection under
- source4: "elm/entry/cursor/default"; // cursorover
- source5: "elm/entry/anchor/default"; // anchor under
- desc { "default";
- fixed: 1 0;
- text {
- style: "entry_textblock_char_wrap_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "focused";
- inherit: "default";
- text {
- style: "entry_textblock_char_wrap_focused_style";
- min: 0 1;
- }
- }
- desc { "disabled";
- inherit: "default";
- text {
- style: "entry_textblock_char_wrap_disabled_style";
- min: 0 1;
- }
- }
- }
- }
-}
-
-group { "elm/entry/base-nowrap/default";
- inherit: "elm/entry/base/template";
- parts {
- textblock { "elm.guide";
- nomouse;
- scale;
- desc { "default";
- rel.to: "elm.text";
- text {
- style: "entry_textblock_guide_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_textblock_guide_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_textblock_guide_disabled_style";
- }
- desc { "hidden";
- inherit: "default";
- hid;
- }
- }
- textblock { "elm.text";
- mouse;
- scale;
- entry_mode: EDITABLE;
- select_mode: EXPLICIT;
- cursor_mode: BEFORE;
- multiline: 1;
- source: "elm/entry/selection/default"; // selection under
- source4: "elm/entry/cursor/default"; // cursorover
- source5: "elm/entry/anchor/default"; // anchor under
- desc { "default";
- text {
- style: "entry_textblock_style";
- min: 1 1;
- align: 0.0 0.0;
- }
- }
- desc { "focused";
- inherit: "default";
- text {
- style: "entry_textblock_focused_style";
- min: 1 1;
- }
- }
- desc { "disabled";
- inherit: "default";
- text {
- style: "entry_textblock_disabled_style";
- min: 0 1;
- }
- }
- }
- }
-}
-
-group { "elm/entry/base-single/default";
- inherit: "elm/entry/base/template";
- parts {
- textblock { "elm.guide";
- nomouse;
- scale;
- desc { "default";
- fixed: 1 1;
- rel.to: "elm.text";
- text {
- style: "entry_single_textblock_guide_style";
- min: 0 1;
- max: 0 0;
- align: 0.0 0.5;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_single_textblock_guide_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_single_textblock_guide_disabled_style";
- }
- desc { "hidden";
- inherit: "default";
- hid;
- }
- }
- textblock { "elm.text";
- mouse;
- scale;
- entry_mode: EDITABLE;
- select_mode: EXPLICIT;
- cursor_mode: BEFORE;
- multiline: 0;
- source: "elm/entry/selection/default"; // selection under
- source4: "elm/entry/cursor/default"; // cursorover
- source5: "elm/entry/anchor/default"; // anchor under
- desc { "default";
- text {
- style: "entry_single_textblock_style";
- min: 1 1;
- max: 0 0;
- align: 0.0 0.5;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_single_textblock_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_single_textblock_disabled_style";
- }
- }
- }
-}
-
-group { "elm/entry/base-single-noedit/default";
- inherit: "elm/entry/base/template";
- alias: "elm/entry/base-single-noedit/vcenter_align";
- parts {
- textblock { "elm.guide";
- nomouse;
- scale;
- desc { "default";
- fixed: 1 1;
- rel.to: "elm.text";
- text {
- style: "entry_single_textblock_guide_style";
- min: 0 1;
- max: 0 1;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_single_textblock_guide_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_single_textblock_guide_disabled_style";
- }
- desc { "hidden";
- inherit: "default";
- hid;
- }
- }
- textblock { "elm.text";
- mouse;
- scale;
- entry_mode: PLAIN;
- select_mode: EXPLICIT;
- cursor_mode: BEFORE;
- multiline: 0;
- source: "elm/entry/selection/default"; // selection under
- source5: "elm/entry/anchor/default"; // anchor under
- desc { "default";
- text {
- style: "entry_single_textblock_style";
- min: 1 1;
- max: 0 1;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_single_textblock_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_single_textblock_disabled_style";
- }
- }
- }
-}
-
-group { "elm/entry/base-noedit/default";
- inherit: "elm/entry/base/template";
- parts {
- textblock { "elm.guide";
- nomouse;
- scale;
- desc { "default";
- rel.to: "elm.text";
- text {
- style: "entry_textblock_guide_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_textblock_guide_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_textblock_guide_disabled_style";
- }
- desc { "hidden";
- inherit: "default";
- hid;
- }
- }
- textblock { "elm.text";
- mouse;
- scale;
- entry_mode: PLAIN;
- select_mode: EXPLICIT;
- cursor_mode: BEFORE;
- multiline: 1;
- source: "elm/entry/selection/default"; // selection under
- source5: "elm/entry/anchor/default"; // anchor under
- desc { "default";
- fixed: 1 0;
- text {
- style: "entry_textblock_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_textblock_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_textblock_disabled_style";
- }
- }
- }
-}
-
-group { "elm/entry/base-noedit-charwrap/default";
- inherit: "elm/entry/base/template";
- parts {
- textblock { "elm.guide";
- nomouse;
- scale;
- desc { "default";
- rel.to: "elm.text";
- text {
- style: "entry_textblock_char_wrap_guide_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_textblock_char_wrap_guide_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_textblock_char_wrap_guide_disabled_style";
- }
- desc { "hidden";
- inherit: "default";
- hid;
- }
- }
- textblock { "elm.text";
- mouse;
- scale;
- entry_mode: PLAIN;
- select_mode: EXPLICIT;
- cursor_mode: BEFORE;
- multiline: 1;
- source: "elm/entry/selection/default"; // selection under
- source5: "elm/entry/anchor/default"; // anchor under
- desc { "default";
- fixed: 1 0;
- text {
- style: "entry_textblock_char_wrap_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_textblock_char_wrap_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_textblock_char_wrap_disabled_style";
- }
- }
- }
-}
-
-group { "elm/entry/base-noedit-mixedwrap/default";
- inherit: "elm/entry/base/template";
- parts {
- part { "elm.guide";
- type: TEXTBLOCK;
- nomouse;
- scale;
- desc { "default";
- rel.to: "elm.text";
- text {
- style: "entry_textblock_guide_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_textblock_guide_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_textblock_guide_disabled_style";
- }
- desc { "hidden";
- inherit: "default";
- hid;
- }
- }
- textblock { "elm.text";
- mouse;
- scale;
- entry_mode: PLAIN;
- select_mode: EXPLICIT;
- cursor_mode: BEFORE;
- multiline: 1;
- source: "elm/entry/selection/default"; // selection under
- source5: "elm/entry/anchor/default"; // anchor under
- desc { "default";
- fixed: 1 0;
- text {
- style: "entry_textblock_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_textblock_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_textblock_disabled_style";
- }
- }
- }
-}
-
-group { "elm/entry/base-nowrap-noedit/default";
- inherit: "elm/entry/base/template";
- parts {
- textblock { "elm.guide";
- type: TEXTBLOCK;
- nomouse;
- scale;
- desc { "default";
- rel.to: "elm.text";
- text {
- style: "entry_textblock_guide_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_textblock_guide_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_textblock_guide_disabled_style";
- }
- desc { "hidden";
- inherit: "default";
- hid;
- }
- }
- textblock { "elm.text";
- mouse;
- scale;
- entry_mode: PLAIN;
- select_mode: EXPLICIT;
- cursor_mode: BEFORE;
- multiline: 1;
- source: "elm/entry/selection/default"; // selection under
- source5: "elm/entry/anchor/default"; // anchor under
- desc { "default";
- text {
- style: "entry_textblock_style";
- min: 1 1;
- align: 0.0 0.0;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_textblock_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_textblock_disabled_style";
- }
- }
- }
-}
-
-group { "elm/entry/base-password/default";
- inherit: "elm/entry/base/template";
- parts {
- textblock { "elm.guide";
- nomouse;
- scale;
- desc { "default";
- fixed: 1 1;
- rel.to: "elm.text";
- text {
- style: "entry_single_textblock_guide_style";
- min: 0 1;
- max: 0 1;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_single_textblock_guide_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_single_textblock_guide_disabled_style";
- }
- desc { "hidden";
- inherit: "default";
- hid;
- }
- }
- textblock { "elm.text";
- mouse;
- scale;
- entry_mode: PASSWORD;
- select_mode: EXPLICIT;
- cursor_mode: BEFORE;
- multiline: 0;
- source: "elm/entry/selection/default"; // selection under
- source4: "elm/entry/cursor/default"; // cursorover
- source5: "elm/entry/anchor/default"; // anchor under
- desc { "default";
- text {
- style: "entry_single_textblock_style";
- repch: "•";
- min: 1 1;
- max: 0 1;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_single_textblock_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_single_textblock_disabled_style";
- }
- }
- }
-}
-
-group { "elm/entry/selection/default";
- parts {
- rect { "bg";
- scale;
- nomouse;
- desc { "default";
- color: 0 221 255 153;
- }
- }
- }
-}
-
-group { "elm/entry/anchor/default";
- parts {
- spacer { "bg";
- desc { "default"; }
- }
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#define LIST_PROGRAM_SOUND \
- program { name: "play_sound"; \
- signal: "elm,state,clicked"; \
- source: "elm"; \
- script { \
- run_program(PROGRAM:"touch_sound"); \
- } \
- } \
- program { name: "touch_sound"; \
- action: RUN_PLUGIN "touch_sound"; \
- }
-
-group { "elm/genlist/item/event/default"
- inherit_only: 1;
- parts {
- rect { "event"; nomouse; repeat; scale;
- desc { "default";
- color: 0 0 0 0;
- rel.to: "base";
- }
- desc { "disabled";
- inherit: "default";
- hid;
- }
- }
- }
- programs {
- /* Program for enabled event */
- program { "enabled";
- signal: "elm,state,enabled";
- source: "elm";
- action: STATE_SET "default";
- target: "event";
- after: "on_enabled";
- }
- /* Program for disabled event */
- program { "disabled";
- signal: "elm,state,disabled";
- source: "elm";
- action: STATE_SET "disabled";
- target: "event";
- after: "on_disabled";
- }
- program { "enable_event_pass";
- signal: "elm,event,pass,enabled";
- source: "elm";
- script {
- set_mouse_events(PART:"event", 0);
- }
- }
- program { "disable_event_pass";
- signal: "elm,event,pass,disabled";
- source:"elm";
- script {
- set_mouse_events(PART:"event", 1);
- }
- }
- program { "enable_event_repeat";
- signal: "elm,event,repeat,enabled";
- source: "elm";
- script {
- set_repeat_events(PART:"event", 1);
- }
- }
- program { "disable_event_repeat";
- signal: "elm,event,repeat,disabled";
- source:"elm";
- script {
- set_repeat_events(PART:"event", 0);
- }
- }
- }
-}
-
-group { "elm/genlist/item/full/default";
- alias: "elm/genlist/item_compress/full/default";
- alias: "elm/genlist/tree/full/default";
- alias: "elm/genlist/tree_compress/full/default";
- inherit: "elm/genlist/item/event/default";
-
- data.item: "banded_bg_area" "elm.swallow.bg";
- data.item: "contents" "elm.swallow.content";
-
- parts {
- spacer { "base"; scale;
- desc { "default";
- }
- }
-
- swallow { "elm.swallow.bg"; scale;
- desc { "default";
- rel.to: "base";
- }
- }
- rect { "bg"; scale;
- desc { "default";
- rel.to: "elm.swallow.bg";
- color_class: "genlist_item/full/bg";
- }
- desc { "pressed"; inherit: "default";
- color_class: "genlist_item/full/bg";
- }
- desc { "disabled"; inherit: "default";
- color_class: "genlist_item/full/bg";
- }
- }
- swallow { "elm.swallow.content"; scale;
- desc { "default";
- rel1 { to: "bg"; relative: 0.0 0.0; }
- rel2 { to: "bg"; relative: 1.0 1.0; }
- }
- }
- rect { "elm.bottomline"; scale;
- desc { "default";
- vis;
- min: 0 LIST_BOTTOMLINE_HEIGHT;
- max: -1 LIST_BOTTOMLINE_HEIGHT;
- align: 0.5 0.0;
- fixed: 0 1;
- rel1.relative: 0.0 0.0;
- rel2.relative: 1.0 0.0;
- color_class: "genlist_item/full/bottomline";
- }
- desc { "hidden"; inherit: "default";
- hid;
- }
- }
- rect { "event";
- after: "elm.bottomline";
- desc { "default";
- rel.to: "base";
- }
- desc { "disabled";
- inherit: "default";
- hid;
- }
- }
- }
- programs {
- LIST_PROGRAM_SOUND
- program {
- signal: "elm,state,elm.swallow.bg,visible";
- source: "elm";
- action: STATE_SET "hidden";
- target: "elm.bottomline";
- }
- program {
- signal: "elm,state,elm.swallow.bg,hidden";
- source: "elm";
- action: STATE_SET "default";
- target: "elm.bottomline";
- }
- program { "default";
- signal: "elm,state,default";
- source: "elm";
- action: STATE_SET "default";
- target: "bg";
- target: "elm.bottomline";
- target: "event";
- }
- program { "pressed";
- signal: "elm,state,selected";
- source: "elm";
- action: STATE_SET "pressed";
- target: "bg";
- }
- program { "unpressed";
- signal: "elm,state,unselected";
- source: "elm";
- action: STATE_SET "default";
- target: "bg";
- }
- program { "on_enabled";
- action: STATE_SET "default";
- target: "bg";
- }
- program { "on_disabled";
- action: STATE_SET "disabled";
- target: "bg";
- }
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#define SLIDE_SPEED_WEIGHT 0.5
-#define SLIDE_TEXT_GAP 60
-#define SLIDE_TEXT_CHAR_GAP " " //60 (6 spaces)
-#define SLIDE_TEXT_MAX_LENGTH (2*(1024+6))
-
-styles {
- style { "textblock_style";
- base: "font=Tizen:weight=Normal font_size="LABEL_FONT_SIZE_INC" color=#FFF color_class=label/default/text text_class=label";
- tag: "br" "\n";
- tag: "ps" "ps";
- tag: "hilight" "+ font_weight=Bold";
- tag: "b" "+ font_weight=Bold";
- tag: "tab" "\t";
- }
- style { "textblock_charwrap_style";
- base: "font=Tizen:weight=Normal font_size="LABEL_FONT_SIZE_INC" color=#FFF color_class=label/default/text text_class=label";
- tag: "br" "\n";
- tag: "ps" "ps";
- tag: "hilight" "+ font_weight=Bold";
- tag: "b" "+ font_weight=Bold";
- tag: "tab" "\t";
- }
- style { "textblock_style_marker";
- base: "font=Tizen:weight=Bold font_size=14 align=center color=#FFF wrap=word color_class=label/default/text text_class=tizen";
- tag: "br" "\n";
- tag: "ps" "ps";
- tag: "hilight" "+ font_weight=Bold";
- tag: "b" "+ font_weight=Bold";
- tag: "tab" "\t";
- }
-}
-
-group { "elm/label/event/default";
- inherit_only: 1;
- programs {
- program { "start_slide";
- source: "elm";
- signal: "elm,state,slide,start";
- after: "on_start_slide";
- }
- program { "stop_slide";
- source: "elm";
- signal: "elm,state,slide,stop";
- after: "on_stop_slide";
- }
- }
-}
-
-group { "elm/label/base/template";
- inherit: "elm/label/event/default";
- inherit_only: 1;
- parts {
- rect { "bg";
- desc { "default";
- color_class: "label/default/bg";
- }
- }
- rect { "clipper";
- desc { "default";
- }
- }
- textblock { "elm.text";
- scale;
- clip: "clipper";
- desc { "default";
- text.style: "textblock_style";
- }
- }
- }
- programs {
- program { "on_start_slide";
- }
- program { "on_stop_slide";
- }
- }
-}
-
-group { "elm/label/base/default";
- inherit: "elm/label/base/template";
- parts {
- textblock { "elm.text";
- scale;
- clip: "clipper";
- desc { "default";
- text {
- style: "textblock_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- }
- }
-}
-
-/* default label doesn't use it */
-group { "elm/label/base_wrap/default";
- inherit: "elm/label/base/template";
- parts {
- textblock { "elm.text";
- scale;
- multiline: 1;
- desc { "default";
- text {
- style: "textblock_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "charwrap_mode";
- text {
- style: "textblock_charwrap_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- }
- }
- programs {
- program { "default";
- signal: "elm,state,default";
- source: "elm";
- action: STATE_SET "default";
- target: "elm.text";
- }
- program { "charwrap";
- signal: "elm,state,charwrap";
- source: "elm";
- action: STATE_SET "charwrap_mode";
- target: "elm.text";
- }
- }
-}
-
-/* default label doesn't use it */
-group { "elm/label/base_wrap_ellipsis/default";
- inherit: "elm/label/base/template";
- parts {
- textblock { "elm.text";
- scale;
- multiline: 1;
- desc { "default";
- fixed: 0 1;
- text {
- style: "textblock_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "charwrap_mode";
- fixed: 0 1;
- text {
- style: "textblock_charwrap_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- }
- }
- programs {
- program { "default";
- signal: "elm,state,default";
- source: "elm";
- action: STATE_SET "default";
- target: "elm.text";
- }
- program { "charwrap";
- signal: "elm,state,charwrap";
- source: "elm";
- action: STATE_SET "charwrap_mode";
- target: "elm.text";
- }
- }
-}
-
-group { "elm/label/base/slide_long";
- inherit: "elm/label/base/template";
- script {
- public g_duration = 0, g_stopslide, g_timer_id, g_anim_id;
-
- public message(Msg_Type:type, id, ...) {
- if (type == MSG_FLOAT_SET) {
- new Float:duration;
- duration = getfarg(2);
- if (id == 0)
- set_float(g_duration, duration);
- else
- set_float(g_duration, duration / LABEL_FONT_SIZE_INC * SLIDE_SPEED_WEIGHT);
- }
- }
- public slide_to_end_anim(val, Float:pos) {
- new stopflag;
- new id;
- stopflag = get_int(g_stopslide);
- if (stopflag == 1) return;
- set_tween_state(PART:"elm.text", pos, "slide_begin", 0.0, "slide_end", 0.0);
- if (pos >= 1.0) {
- id = timer(0.5, "slide_to_begin", 1);
- set_int(g_timer_id, id);
- }
- }
- public slide_to_end() {
- new stopflag;
- new id;
- new Float:duration;
- stopflag = get_int(g_stopslide);
- if (stopflag == 1) return;
- duration = get_float(g_duration);
- id = anim(duration, "slide_to_end_anim", 1);
- set_int(g_anim_id, id);
- }
- public slide_to_begin() {
- new stopflag;
- new id;
- stopflag = get_int(g_stopslide);
- if (stopflag == 1) return;
- set_state(PART:"elm.text", "slide_begin", 0.0);
- id = timer(0.5, "slide_to_end", 1);
- set_int(g_timer_id, id);
- }
- public start_slide() {
- set_int(g_stopslide, 0);
- set_state(PART:"elm.text", "slide_begin", 0.0);
- slide_to_end();
- }
- public stop_slide() {
- new id;
- set_int(g_stopslide, 1);
- id = get_int(g_anim_id);
- cancel_anim(id);
- id = get_int(g_timer_id);
- cancel_timer(id);
- set_state(PART:"elm.text", "default", 0.0);
- }
- }
- parts {
- rect { "bg";
- desc { "default";
- color_class: "label/slide_long/bg";
- }
- }
- textblock { "elm.text";
- scale;
- clip: "clipper";
- desc { "default";
- align: 0.0 0.0;
- text {
- style: "textblock_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "slide_end";
- inherit: "default";
- rel2.relative: 0.0 1.0;
- align: 1.0 0.0;
- text {
- style: "textblock_style";
- min: 1 1;
- align: 0.0 0.0;
- }
- }
- desc { "slide_begin";
- inherit: "default";
- rel1.relative: 1.0 0.0;
- text {
- style: "textblock_style";
- min: 1 1;
- align: 0.0 0.0;
- }
- }
- }
- }
- programs {
- program { "on_start_slide";
- script {
- start_slide();
- }
- }
- program { "on_stop_slide";
- script {
- stop_slide();
- }
- }
- }
-}
-
-group { "elm/label/base/slide_roll";
- inherit: "elm/label/base/template";
- script {
- public g_duration = 0;
- public g_stopslide = 0;
- public g_timer_id = 0;
- public g_anim_id = 0;
- public g_tb_w = 0;
- public g_tb_h = LABEL_FONT_SIZE_INC;
- public org_text = 0;
- public message(Msg_Type:type, id, ...) {
- if (type == MSG_FLOAT_SET) {
- new Float:duration;
- duration = getfarg(2);
- if (id == 0)
- set_float(g_duration, duration);
- else
- set_float(g_duration, duration / get_int(g_tb_h) * SLIDE_SPEED_WEIGHT);
- }
- }
- public get_tb_width() {
- new x, y, w, h;
- set_state(PART:"elm.text", "no_ellipsis", 0.0);
- get_geometry(PART:"elm.text", x, y, w, h);
- set_int(g_tb_w, w);
- set_int(g_tb_h, h);
- set_state(PART:"clipper_elm.text", "default", 0.0);
- get_geometry(PART:"clipper_elm.text", x, y, w, h);
- set_int(org_text, w);
- }
- public slide_to_end_anim(val, Float:pos) {
- if (get_int(g_stopslide)) return;
- set_tween_state(PART:"elm.text.slide", pos*0.5, "slide_begin", 0.0, "slide_end", 0.0);
- if (pos >= 1.0) {
- set_int(g_timer_id, timer(1.5, "start_slide", 0));
- }
- }
- public slide_to_end() {
- if (get_int(g_stopslide)) return;
- set_int(g_anim_id, anim(get_float(g_duration), "slide_to_end_anim", 0));
- }
- public start_slide(val) {
- new Float:len;
- set_int(g_stopslide, 0);
- get_tb_width();
- if (!get_float(g_duration)) {
- len = get_int(g_tb_w);
- set_float(g_duration, len / get_int(g_tb_h) * SLIDE_SPEED_WEIGHT);
- }
- if(get_int(g_tb_w) > get_int(org_text)) {
- run_program(PROGRAM:"slide_text_set");
- set_state(PART:"elm.text.slide", "slide_begin", 0.0);
- set_state(PART:"clipper_elm.text", "hide", 0.0);
- set_state(PART:"clipper_elm.text.slide", "show", 0.0);
- slide_to_end();
- }
- }
- public stop_slide() {
- new slide_start_timer;
- new slide_anim_id;
- set_int(g_stopslide, 1);
- set_float(g_duration, 0);
- slide_start_timer = get_int(g_timer_id);
- if (slide_start_timer) {
- cancel_timer(slide_start_timer);
- set_int(g_timer_id, 0);
- }
- slide_anim_id = get_int(g_anim_id);
- if (slide_anim_id) {
- cancel_anim(slide_anim_id);
- set_int(g_anim_id, 0);
- }
- set_text(PART:"elm.text.slide", "");
- set_state(PART:"elm.text", "default", 0.0);
- set_state(PART:"elm.text.slide", "default", 0.0);
- set_state(PART:"clipper_elm.text", "default", 0.0);
- set_state(PART:"clipper_elm.text.slide", "default", 0.0);
- }
- }
- parts {
- rect { "bg";
- desc { "default";
- color_class: "label/slide_roll/bg";
- }
- }
- rect { "clipper_elm.text";
- nomouse;
- clip: "clipper";
- desc { "default";
- }
- desc { "hide";
- inherit: "default";
- hid;
- }
- }
- textblock { "elm.text";
- scale;
- clip: "clipper_elm.text";
- desc { "default";
- align: 0.0 0.5;
- text {
- style: "textblock_style";
- min: 0 1;
- }
- }
- desc { "no_ellipsis";
- inherit: "default";
- text.min: 1 1;
- }
- }
- rect { "clipper_elm.text.slide";
- nomouse;
- clip: "clipper";
- desc { "default";
- hid;
- }
- desc { "show";
- inherit: "default";
- vis;
- }
- }
- spacer { "slide_text_gap";
- scale;
- desc { "default";
- fixed: 1 0;
- min: SLIDE_TEXT_GAP 0;
- max: SLIDE_TEXT_GAP -1;
- align: 1.0 0.5;
- rel2.relative: 0.0 1.0;
- }
- }
- textblock { "elm.text.slide";
- scale;
- clip: "clipper_elm.text.slide";
- desc { "default";
- align: 0.0 0.5;
- text {
- style: "textblock_style";
- min: 0 1;
- }
- }
- desc { "slide_begin";
- inherit: "default";
- text.min: 1 1;
- rel2.relative: 0.0 1.0;
- }
- desc { "slide_end";
- inherit: "default";
- align: 1.0 0.5;
- text.min: 1 1;
- text.align: 1.0 0.5;
- rel.to: "slide_text_gap";
- }
- }
- }
- programs {
- program { "slide_text_set";
- script {
- new buf[1024];
- new buffer[SLIDE_TEXT_MAX_LENGTH];
- get_text(PART:"elm.text", buf, 1024);
- snprintf(buffer, SLIDE_TEXT_MAX_LENGTH, "%s", buf);
- strcat(buffer, SLIDE_TEXT_CHAR_GAP);
- strcat(buffer, buf);
- strcat(buffer, SLIDE_TEXT_CHAR_GAP);
- set_text(PART:"elm.text.slide", buffer);
- }
- }
- program { "on_start_slide";
- script {
- run_program(PROGRAM:"stop_slide");
- set_int(g_timer_id, timer(1.5, "start_slide", 0));
- }
- }
- program { "on_stop_slide";
- script {
- stop_slide();
- }
- }
- }
-}
-
-group { "elm/label/base/slide_short";
- inherit: "elm/label/base/template";
- script {
- public g_duration = 0, g_stopslide, g_timer_id, g_anim_id;
-
- public message(Msg_Type:type, id, ...) {
- if (type == MSG_FLOAT_SET) {
- new Float:duration;
- duration = getfarg(2);
- if (id == 0)
- set_float(g_duration, duration);
- else
- set_float(g_duration, duration / LABEL_FONT_SIZE_INC * SLIDE_SPEED_WEIGHT);
- }
- }
- public slide_to_end_anim(val, Float:pos) {
- new stopflag;
- new id;
- stopflag = get_int(g_stopslide);
- if (stopflag == 1) return;
- set_tween_state(PART:"elm.text", pos, "slide_begin", 0.0, "slide_end", 0.0);
- if (pos >= 1.0) {
- id = timer(0.5, "slide_to_begin", 1);
- set_int(g_timer_id, id);
- }
- }
- public slide_to_end() {
- new stopflag;
- new id;
- new Float:duration;
- stopflag = get_int(g_stopslide);
- if (stopflag == 1) return;
- duration = get_float(g_duration);
- id = anim(duration, "slide_to_end_anim", 1);
- set_int(g_anim_id, id);
- }
- public slide_to_begin() {
- new stopflag;
- new id;
- stopflag = get_int(g_stopslide);
- if (stopflag == 1) return;
- set_state(PART:"elm.text", "slide_begin", 0.0);
- id = timer(0.5, "slide_to_end", 1);
- set_int(g_timer_id, id);
- }
- public start_slide() {
- set_int(g_stopslide, 0);
- set_state(PART:"elm.text", "slide_begin", 0.0);
- slide_to_end();
- }
- public stop_slide() {
- new id;
- set_int(g_stopslide, 1);
- id = get_int(g_anim_id);
- cancel_anim(id);
- id = get_int(g_timer_id);
- cancel_timer(id);
- set_state(PART:"elm.text", "default", 0.0);
- }
- }
- parts {
- rect { "bg";
- desc { "default";
- color_class: "label/slide_short/bg";
- }
- }
- textblock { "elm.text";
- scale;
- clip: "clipper";
- desc { "default";
- align: 0.0 0.0;
- text {
- style: "textblock_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "slide_end";
- inherit: "default";
- rel1.relative: 1.0 0.0;
- align: 1.0 0.0;
- text {
- style: "textblock_style";
- min: 1 1;
- align: 0.0 0.0;
- }
- }
- desc { "slide_begin";
- inherit: "default";
- rel2.relative: 0.0 1.0;
- align: 0.0 0.0;
- text {
- style: "textblock_style";
- min: 1 1;
- align: 0.0 0.0;
- }
- }
- }
- }
- programs {
- program { "on_start_slide";
- script {
- start_slide();
- }
- }
- program { "on_stop_slide";
- script {
- stop_slide();
- }
- }
- }
-}
-
-group { "elm/label/base/slide_bounce";
- inherit: "elm/label/base/template";
- script {
- public g_duration = 0, g_stopslide, g_timer_id, g_anim_id;
-
- public message(Msg_Type:type, id, ...) {
- if (type == MSG_FLOAT_SET) {
- new Float:duration;
- duration = getfarg(2);
- if (id == 0)
- set_float(g_duration, duration);
- else
- set_float(g_duration, duration / LABEL_FONT_SIZE_INC * SLIDE_SPEED_WEIGHT);
- }
- }
- public slide_to_end_anim(val, Float:pos) {
- new stopflag;
- new id;
- stopflag = get_int(g_stopslide);
- if (stopflag == 1) return;
- set_tween_state(PART:"elm.text", pos, "slide_begin", 0.0, "slide_end", 0.0);
- if (pos >= 1.0) {
- id = timer(0.5, "slide_to_begin", 1);
- set_int(g_timer_id, id);
- }
- }
- public slide_to_end() {
- new stopflag;
- new id;
- new Float:duration;
- stopflag = get_int(g_stopslide);
- if (stopflag == 1) return;
- duration = get_float(g_duration);
- id = anim(duration, "slide_to_end_anim", 1);
- set_int(g_anim_id, id);
- }
- public slide_to_begin_anim(val, Float:pos) {
- new stopflag;
- new id;
- stopflag = get_int(g_stopslide);
- if (stopflag == 1) return;
- set_tween_state(PART:"elm.text", pos, "slide_end", 0.0, "slide_begin", 0.0);
- if (pos >= 1.0) {
- id = timer(0.5, "slide_to_end", 1);
- set_int(g_timer_id, id);
- }
- }
- public slide_to_begin() {
- new stopflag;
- new id;
- new Float:duration;
- stopflag = get_int(g_stopslide);
- if (stopflag == 1) return;
- duration = get_float(g_duration);
- id = anim(duration, "slide_to_begin_anim", 1);
- set_int(g_anim_id, id);
- }
- public start_slide() {
- set_int(g_stopslide, 0);
- set_state(PART:"elm.text", "slide_begin", 0.0);
- slide_to_end();
- }
- public stop_slide() {
- new id;
- set_int(g_stopslide, 1);
- id = get_int(g_anim_id);
- cancel_anim(id);
- id = get_int(g_timer_id);
- cancel_timer(id);
- set_state(PART:"elm.text", "default", 0.0);
- }
- }
- parts {
- rect { "bg";
- desc { "default";
- color_class: "label/slide_bounce/bg";
- }
- }
- textblock { "elm.text";
- scale;
- clip: "clipper";
- desc { "default";
- align: 0.0 0.0;
- text {
- style: "textblock_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "slide_end";
- inherit: "default";
- rel1.relative: 1.0 0.0;
- align: 1.0 0.0;
- text.min: 1 1;
- }
- desc { "slide_begin";
- inherit: "default";
- rel2.relative: 0.0 1.0;
- text.min: 1 1;
- }
- }
- }
- programs {
- program { "on_start_slide";
- script {
- start_slide();
- }
- }
- program { "on_stop_slide";
- script {
- stop_slide();
- }
- }
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-group { "elm/layout/background/default";
- parts {
- rect { "bg";
- scale;
- desc { "default";
- color_class: "layout/background/bg";
- }
- }
- swallow { "elm.swallow.content";
- scale;
- desc { "default"; }
- }
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-#define STYLE_TAGS \
- tag: "br" "\n";\
- tag: "ps" "ps";\
- tag: "tab" "\t";\
- tag: "b" "+ font_weight=Bold";
-
-styles{
- style { name: "radio_default";
- base: "color=#000000FF font=Tizen:weight=Light font_size=40 text_class=tizen ellipsis=1.0";
- STYLE_TAGS
- }
- style { name: "radio_default_dim";
- base: "color=#000000A3 font=Tizen:weight=Light font_size=40 text_class=tizen ellipsis=1.0";
- STYLE_TAGS
- }
- style { name: "radio_default_press";
- base: "color=#000000FF font=Tizen:weight=Light font_size=40 text_class=tizen ellipsis=1.0";
- STYLE_TAGS
- }
-}
-#undef STYLE_TAGS
-
-group { "elm/radio/event/default";
- inherit_only: 1;
- parts {
- rect { "event";
- mouse;
- desc { "default";
- color: 0 0 0 0 ;
- rel.to: "base";
- }
- desc { "disabled";
- inherit: "default";
- hid;
- }
- }
- }
- programs {
- program { "clicked";
- signal: "mouse,clicked,1";
- source: "event";
- action: SIGNAL_EMIT "elm,action,click" "";
- after: "on_clicked";
- }
- program { "pressed";
- signal: "mouse,down,1*";
- source: "event";
- action: SIGNAL_EMIT "elm,action,press" "";
- after: "on_pressed";
- }
- program { "unpressed";
- signal: "mouse,up,1";
- source: "event";
- action: SIGNAL_EMIT "elm,action,unpress" "";
- after: "on_unpressed";
- }
- program { "set_radio";
- signal: "elm,state,radio,on";
- source: "elm";
- after: "on_set_radio";
- }
- program { "unset_radio";
- signal: "elm,state,radio,off";
- source: "elm";
- after: "on_unset_radio";
- }
- program { "disabled";
- signal: "elm,state,disabled";
- source: "elm";
- after: "on_disabled";
- }
- program { "enabled";
- signal: "elm,state,enabled";
- source: "elm";
- after: "on_enabled";
- }
- program { "enable_event_pass";
- signal: "elm,event,pass,enabled";
- source: "elm";
- script {
- set_mouse_events(PART:"event", 0);
- }
- }
- program { "disable_event_pass";
- signal: "elm,event,pass,disabled";
- source: "elm";
- script {
- set_mouse_events(PART:"event", 1);
- }
- }
- program { "enable_event_repeat";
- signal: "elm,event,repeat,enabled";
- source: "elm";
- script {
- set_repeat_events(PART:"event", 1);
- }
- }
- program { "disable_event_repeat";
- signal: "elm,event,repeat,disabled";
- source: "elm";
- script {
- set_repeat_events(PART:"event", 0);
- }
- }
- }
-}
-group { "elm/radio/base/template";
- parts {
- spacer { "base";
- desc { "default";
- }
- }
- }
- inherit: "elm/radio/event/default";
- programs {
- program { "on_clicked";
- }
- program { "on_pressed";
- }
- program { "on_unpressed";
- }
- program { "on_disabled";
- }
- program { "on_enabled";
- }
- program { "on_set_radio";
- }
- program { "on_unset_radio";
- }
- }
-}
-group { "elm/radio/base/default";
- images{
- vector: core_radio_stroke.svg;
- vector: core_radio_icon.svg;
- vector: core_radio_bg_01.svg;
- vector: core_radio_bg_02.svg;
- vector: core_radio_white_bg.svg;
- }
- nomouse;
- target_group: "vector_group" "clipper_bg_vector" "clipper_icon" "clipper_icon_inner" "clipper_icon_outer" "clipper_icon_stroke";
- parts {
- spacer { "base";
- scale;
- desc { "default";
- min: RADIO_DEFAULT_SIZE_INC;
- }
- }
- //bg shape
- vector { "bg_vector";
- scale;
- clip: "clipper_bg_vector";
- desc { "default";
- image.normal: "core_radio_white_bg.svg";
- min: RADIO_DEFAULT_SIZE_INC;
- rel1.relative: 0 0.5;
- rel2.relative: 0 0.5;
- align: 0 0.5;
- fixed: 1 1;
- }
- }
- rect { "clipper_bg_vector";
- desc { "default";
- color_class: "radio/default/bg";
- }
- desc { "on";
- color_class: "radio/default/bg_border_on";
- }
- desc { "off";
- inherit: "default";
- }
- desc { "disabled_on";
- color_class: "radio/default/bg_border_on_disabled";
- }
- desc { "disabled_off";
- color_class: "radio/default/bg_disabled";
- }
- }
- vector { "icon";
- scale;
- clip: "clipper_icon";
- desc { "default";
- image.normal: "core_radio_icon.svg";
- rel1.to: "bg_vector";
- rel2.to: "bg_vector";
- }
- }
- rect { "clipper_icon";
- desc { "default";
- color: 250 250 250 0;
- }
- desc { "on";
- color_class: "radio/default/bg_on" ;
- }
- desc { "off";
- inherit: "default";
- }
- desc { "disabled_off";
- inherit: "default";
- }
- desc { "disabled_on";
- color_class: "radio/default/bg_on_disabled" ;
- }
- }
- vector { "icon_inner";
- scale;
- clip: "clipper_icon_inner";
- desc { "default";
- image.normal: "core_radio_bg_01.svg";
- rel.to: "bg_vector";
- }
- }
- rect { "clipper_icon_inner";
- desc { "default";
- rel1.relative: 0.5 0.5;
- rel2.relative: 0.5 0.5;
- rel.to: "bg_vector";
- }
- desc { "on";
- rel.to: "bg_vector";
- color_class: "radio/default/icon";
- }
- desc { "off";
- inherit: "default";
- }
- desc { "disabled_off";
- inherit: "default";
- }
- desc { "disabled_on";
- rel.to: "bg_vector";
- color_class: "radio/default/icon_disabled";
- }
- }
- vector { "icon_outer";
- scale;
- clip: "clipper_icon_outer";
- desc { "default";
- image.normal: "core_radio_bg_02.svg";
- rel1.to: "bg_vector";
- rel2.to: "bg_vector";
- }
- }
- rect { "clipper_icon_outer";
- desc { "default";
- color: 61 185 204 0;
- }
- desc { "on";
- color_class: "radio/default/icon";
- }
- desc { "off";
- inherit: "default";
- }
- desc { "disabled_off";
- inherit: "default";
- }
- desc { "disabled_on";
- color_class: "radio/default/icon_disabled";
- }
- }
- vector { "icon_stroke";
- scale;
- clip: "clipper_icon_stroke";
- desc { "default";
- image.normal: "core_radio_stroke.svg";
- rel1.to: "bg_vector";
- rel2.to: "bg_vector";
- }
- }
- rect { "clipper_icon_stroke";
- desc { "default";
- color_class: "radio/default/stroke";
- }
- desc { "on";
- color: 61 185 204 0;
- }
- desc { "off";
- inherit: "default";
- }
- desc { "disabled_off";
- color_class: "radio/default/stroke_disabled";
- }
- desc { "disabled_on";
- inherit: "on";
- }
- }
- spacer { "padding_before_text";
- scale;
- desc { "default";
- align: 0.0 0.5;
- min: 0 0;
- rel1 {
- to: "bg_vector";
- relative: 1.0 0.0;
- }
- rel2 {
- to: "bg_vector";
- relative: 1.0 1.0;
- }
- }
- desc { "visible";
- inherit: "default" 0.0;
- min: RADIO_PAD_BEFORE_TEXT_INC;
- fixed: 1 1;
- }
- }
- textblock { "elm.text";
- scale;
- desc { "default";
- hid;
- fixed: 0 1;
- rel1 {
- relative: 1.0 0.5;
- to_x: "padding_before_text";
- }
- rel2 {
- relative: 1.0 0.5;
- }
- align: 0.0 0.5;
- text {
- style: "radio_default";
- min: 0 0;
- }
- }
- desc { "visible";
- inherit: "default" 0.0;
- vis;
- text.min: 0 1;
- }
- desc { "disabled";
- inherit: "default" 0.0;
- vis;
- text {
- style: "radio_default_dim";
- min: 0 1;
- }
- }
- desc { "pressed";
- inherit: "default" 0.0;
- vis;
- text {
- style: "radio_default_press";
- min: 0 1;
- }
- }
- }
- }
- inherit: "elm/radio/event/default";
- script {
- public radio_state;
- public disabled;
- public text;
- public animate = 0;
- }
- programs {
- program { "on_clicked";
- script {
- if (get_int(disabled) == 1) return;
- emit("elm,action,radio,toggle", "");
- run_program(PROGRAM:"touch_sound");
- }
- }
- program { "on_pressed";
- script {
- if (get_int(disabled) == 1) return;
- if (get_int(text) == 1) {
- set_state(PART:"elm.text", "pressed", 0.0);
- }
- }
- }
- program { "on_unpressed";
- script {
- if (get_int(disabled) == 1) return;
- if (get_int(radio_state) == 1) {
- run_program(PROGRAM:"toggle_on_without_effect");
- }else {
- run_program(PROGRAM:"toggle_off_without_effect");
- }
- if (get_int(text) == 1) {
- set_state(PART:"elm.text", "visible", 0.0);
- }
- }
- }
- program { "on_disabled";
- script {
- set_int(disabled, 1);
- if (get_int(radio_state) == 1) {
- run_program(PROGRAM:"toggle_disabled_on_without_effect");
- }else {
- run_program(PROGRAM:"toggle_disabled_off_without_effect");
- }
- if (get_int(text) == 1) {
- set_state(PART:"elm.text", "disabled", 0.0);
- }
- }
- }
- program { "on_enabled";
- script {
- set_int(disabled, 0);
- if (get_int(radio_state) == 1) {
- run_program(PROGRAM:"toggle_on_without_effect");
- } else {
- run_program(PROGRAM:"toggle_off_without_effect");
- }
- if (get_int(text) == 1) {
- set_state(PART:"elm.text", "visible", 0.0);
- }
- }
- }
- program { "on_set_radio";
- script {
- if (get_int(disabled) == 1) {
- if (get_int(animate) == 0) {
- run_program(PROGRAM:"toggle_disabled_on_without_effect");
- } else {
- run_program(PROGRAM:"toggle_disabled_on_with_effect");
- }
- }else {
- if (get_int(animate) == 0) {
- run_program(PROGRAM:"toggle_on_without_effect");
- emit("elm,radio,state,toggle", "tizen_vg");
- } else {
- run_program(PROGRAM:"toggle_on_with_effect");
- emit("elm,radio,action,toggle", "tizen_vg");
- }
- }
- set_int(animate, 0);
- set_int(radio_state, 1);
- }
- }
- program { "on_unset_radio";
- script {
- if (get_int(disabled) == 1) {
- if (get_int(animate) == 0) {
- run_program(PROGRAM:"toggle_disabled_off_without_effect");
- } else {
- run_program(PROGRAM:"toggle_disabled_off_with_effect");
- }
- }else {
- if (get_int(animate) == 0) {
- run_program(PROGRAM:"toggle_off_without_effect");
- emit("elm,radio,state,toggle", "tizen_vg");
- } else {
- run_program(PROGRAM:"toggle_off_with_effect");
- emit("elm,radio,action,toggle", "tizen_vg");
- }
- }
- set_int(animate, 0);
- set_int(radio_state, 0);
- }
- }
- program { "touch_sound";
- action: RUN_PLUGIN "touch_sound";
- }
- program { "activate_animate_radio";
- signal: "elm,activate,radio,on";
- source: "elm";
- script {
- set_int(animate, 1);
- }
- }
- program { "deactivate_animate_radio";
- signal: "elm,activate,radio,off";
- source: "elm";
- script {
- set_int(animate, 1);
- }
- }
- program { "toggle_on_with_effect";
- action: STATE_SET "on";
- transition: DECELERATE 0.3;
- target_groups: "vector_group";
- after: "finished_animation";
- }
- program { "toggle_off_with_effect";
- action: STATE_SET "default";
- target_groups: "vector_group";
- transition: DECELERATE 0.3;
- after: "finished_animation";
- }
- program { "toggle_disabled_on_with_effect";
- action: STATE_SET "disabled_on";
- target_groups: "vector_group";
- transition: DECELERATE 0.3;
- after: "finished_animation";
- }
- program { "toggle_disabled_off_with_effect";
- action: STATE_SET "disabled_off";
- target_groups: "vector_group";
- transition: DECELERATE 0.3;
- after: "finished_animation";
- }
- program { "toggle_on_without_effect";
- action: STATE_SET "on";
- target_groups: "vector_group";
- }
- program { "toggle_off_without_effect";
- action: STATE_SET "default";
- target_groups: "vector_group";
- }
- program { "toggle_disabled_on_without_effect";
- action: STATE_SET "disabled_on";
- target_groups: "vector_group";
- }
- program { "toggle_disabled_off_without_effect";
- action: STATE_SET "disabled_off";
- target_groups: "vector_group";
- }
- program { "finished_animation";
- action: SIGNAL_EMIT "animation,finished" "";
- }
- program { "visible_text";
- signal: "elm,state,text,visible";
- source: "elm";
- script {
- set_int(text, 1);
- set_state(PART:"padding_before_text", "visible", 0.0);
- if (get_int(disabled) == 1) {
- set_state(PART:"elm.text", "disabled", 0.0);
- }else {
- set_state(PART:"elm.text", "visible", 0.0);
- }
- }
- }
- program { "hidden_text";
- signal: "elm,state,text,hidden";
- source: "elm";
- script {
- set_int(text, 0);
- set_state(PART:"padding_before_text", "default", 0.0);
- set_state(PART:"elm.text", "default", 0.0);
- }
- }
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-//****************************************************************************//
-// This file defines the width, height (not color!) for each widgets
-// We can define different INC file by Resolution (HD, qHD, WVGA, HVGA)
-//
-// ************* Naming Rule ************ //
-// {WIDGET}_{GROUP}_{PART}_{STATE}_{TYPE}
-// WIDGET: NAVIFRAME, LIST, DATETIME, POPUP, etc.
-// GROUP: INDEX
-// PART: TEXT, ICON, BG, PADDING, DIVIDER, ICON, etc.
-// STATE: LEFT, RIGHT, TOP, BOTTOM, MIN, MAX,
-// TYPE: HEIGHT, WIDTH, SIZE
-// e.g. LIST_PADDING_LEFT_HEIGHT
-//****************************************************************************//
-
-#define BASE_SCALE_INC 2.6
-
-//****************************************************************************//
-// Colorselector
-//****************************************************************************//
-#define COLORSELECTOR_PALETTE_COLORPLANE_HEIGHT_INC 238
-#define COLORSELECTOR_PALETTE_COLORPLANE_WIDTH_INC 678
-#define COLORSELECTOR_PORTRAIT_HOR_PAD_COLORPLANE_INC "8"
-#define COLORSELECTOR_PORTRAIT_VER_PAD_COLORPLANE_INC "8"
-#define COLORSELECTOR_TOPBOTTOM_PAD_COLORPLANE_INC 24
-
-//****************************************************************************//
-// Entry
-//****************************************************************************//
-#define ENTRY_PREEDIT_BACKGROUND_COLOR_INC "#000000"
-#define ENTRY_PREEDIT_HIGHLIGHT_BACKGROUND_COLOR_INC "#8bd8ff99"
-#define ENTRY_PREEDIT_TEXT_COLOR_INC "#FAFAFA"
-#define ENTRY_PREEDIT_UNDERLINE_COLOR_INC "#000000"
-#define ENTRY_PREEDIT_SUB1_COLOR_INC "#2EA8E1"
-#define ENTRY_PREEDIT_SUB2_COLOR_INC "#9962C3"
-#define ENTRY_PREEDIT_SUB3_COLOR_INC "#76DE37"
-#define ENTRY_PREEDIT_SUB4_COLOR_INC "#999999"
-#define ENTRY_LEFT_RIGHT_MARGIN_INC 5
-#define ENTRY_FONT_SIZE_INC 40
-#define ENTRY_CURSOR_SIZE_INC 3 0
-
-//****************************************************************************//
-// Label
-//****************************************************************************//
-#define LABEL_FONT_SIZE_INC 24
-
-//****************************************************************************//
-// RADIO
-//****************************************************************************//
-#define RADIO_DEFAULT_SIZE_INC 50 50
-#define RADIO_PAD_BEFORE_TEXT_INC 32 0
-
-//****************************************************************************//
-// GENLIST
-//****************************************************************************//
-#define LIST_BOTTOMLINE_HEIGHT 2
+++ /dev/null
-This is reserved directory for mobile images. Please delete this file when any file is added.
+++ /dev/null
-This is reserved space for mobile images. Please erase this file if any image is added.
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Generator: Adobe Illustrator 16.0.3, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
-<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
- width="50px" height="50px" viewBox="0 0 50 50" enable-background="new 0 0 50 50" xml:space="preserve">
-<path fill="#FFFFFF" d="M25.001,13c-6.617,0-12,5.383-12,12s5.383,12.001,12,12.001C31.617,37,37,31.616,37,24.999
- S31.617,13,25.001,13z"/>
-</svg>
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Generator: Adobe Illustrator 16.0.3, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
-<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
- width="50px" height="50px" viewBox="0 0 50 50" enable-background="new 0 0 50 50" xml:space="preserve">
-<path fill="#FFFFFF" d="M25.001,2c-12.703,0-23,10.297-23,22.999c0,12.704,10.297,23.001,23,23.001C37.703,48,48,37.703,48,24.999
- C48,12.297,37.703,2,25.001,2z M25.001,41c-8.822,0-16-7.178-16-16.001c0-8.822,7.178-16,16-16c8.822,0,15.999,7.178,15.999,16
- C41,33.822,33.823,41,25.001,41z"/>
-</svg>
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Generator: Adobe Illustrator 16.0.3, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
-<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
- width="50px" height="50px" viewBox="0 0 50 50" enable-background="new 0 0 50 50" xml:space="preserve">
-<circle fill="#FFFFFF" cx="25.001" cy="25" r="23"/>
-</svg>
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
-<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
- width="50px" height="50px" viewBox="0 0 50 50" enable-background="new 0 0 50 50" xml:space="preserve">
-<path fill="#FFFFFF" d="M25.001,49c-13.233,0-24-10.767-24-24s10.767-24,24-24s24,10.767,24,24S38.234,49,25.001,49z M25.001,4
- c-11.58,0-21,9.42-21,21c0,11.579,9.42,21,21,21c11.579,0,21-9.421,21-21C46.001,13.42,36.58,4,25.001,4z"/>
-</svg>
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Generator: Adobe Illustrator 16.0.3, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
-<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
- width="50px" height="50px" viewBox="0 0 50 50" enable-background="new 0 0 50 50" xml:space="preserve">
-<path fill="#FFFFFF" d="M25.001,49c-13.233,0-24-10.766-24-24.001C1.001,11.767,11.768,1,25.001,1C38.234,1,49,11.767,49,24.999
- C49,38.234,38.234,49,25.001,49z"/>
-</svg>
+++ /dev/null
-color_classes {
- /*
- * Layout
- */
- color_class {
- name: "layout/background/bg";
- color: 0 0 0 0;
- }
- /*
- * Colorselector
- */
- color_class {
- name: "colorselector/default/bg";
- color: 250 250 250 255;
- }
- /*
- * Entry
- */
- color_class { "entry/default/text_edit";
- color: 0 0 0 255;
- }
- color_class { "entry/default/text_edit_focused";
- color: 0 0 0 255;
- }
- color_class { "entry/default/text_edit_disabled";
- color: 0 0 0 110;
- }
- color_class { "entry/default/text_guide";
- color: 0 0 0 145;
- }
- color_class { "entry/default/text_guide_focused";
- color: 0 0 0 145;
- }
- color_class { "entry/default/text_guide_disabled";
- color: 0 0 0 110;
- }
- color_class {
- name: "entry/default/bg";
- color: 0 0 0 0;
- }
- color_class { "entry/default/cursor";
- color: 0 184 230 110;
- }
- /*
- * Label
- */
- color_class {
- name: "label/default/bg";
- color: 0 0 0 0;
- }
- color_class {
- name: "label/slide_long/bg";
- color: 0 0 0 0;
- }
- color_class {
- name: "label/slide_short/bg";
- color: 0 0 0 0;
- }
- color_class {
- name: "label/slide_roll/bg";
- color: 0 0 0 0;
- }
- color_class {
- name: "label/slide_bounce/bg";
- color: 0 0 0 0;
- }
-
- /*
- * Radio
- */
- color_class { "radio/default/icon";
- color: 61 185 204 255;
- }
- color_class { "radio/default/bg";
- color: 250 250 250 51;
- }
- color_class { "radio/default/icon_disabled";
- color: 61 185 204 77;
- }
- color_class { "radio/default/bg_disabled";
- color: 250 250 250 38;
- }
- color_class { "radio/default/bg_border_on";
- color: 250 250 250 77;
- }
- color_class { "radio/default/bg_border_on_disabled";
- color: 250 250 250 38;
- }
- color_class { "radio/default/stroke";
- color: 61 185 204 255;
- }
- color_class { "radio/default/stroke_disabled";
- color: 61 185 204 77;
- }
- color_class { "radio/default/bg_on";
- color: 250 250 250 255;
- }
- color_class { "radio/default/bg_on_disabled";
- color: 250 250 250 255;
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-// 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.
-
-//****************************************************************************************//
-// This is theme body including all widget bodys
-// Define shared descriptions (e.g. sound samples, color classes, textblock styles) in here
-// Do not define size(width, height) in here!!!!
-//****************************************************************************************//
-
-// Include INC (e.g. HD-inc.edc, HVGA-inc.edc for each resolution) file
-#include "HD-inc.edc"
-
-externals {
- external: "elm";
-}
-
-// BUILD_FIX: Add version to edc as 110.
-data.item: "version" "110";
-//
-
-collections {
- base_scale: BASE_SCALE_INC;
- plugins {
- plugin {
- name: "touch_sound";
- source: "feedback";
- param: "FEEDBACK_TYPE_SOUND FEEDBACK_PATTERN_TAP"; // FEEDBACK_TYPE_SOUND, FEEDBACK_PATTERN_TOUCH_TAP
-
- /* 2014.06.11 updated from libsvi(feedback)
- Above plugin will run below external function:
- int feedback_play_type(feedback_type_e type, feedback_pattern_e pattern);
-
- param1: feedback_type_e
- FEEDBACK_TYPE_NONE = 0,
- FEEDBACK_TYPE_SOUND = 1,
- FEEDBACK_TYPE_VIBRATION,
- FEEDBACK_TYPE_LED,
- FEEDBACK_TYPE_END
-
- * param2 enumeration:
- FEEDBACK_PATTERN_TAP = 0,
- FEEDBACK_PATTERN_SIP,
- FEEDBACK_PATTERN_SIP_BACKSPACE,
- FEEDBACK_PATTERN_SIP_FUNCTION,
- FEEDBACK_PATTERN_SIP_FJKEY,
- ...
-
- * For more information please refer libsvi.
- */
- }
- }
-
-#include "color_classes.edc"
-
-#include "widgets/colorselector.edc"
-#include "widgets/entry.edc"
-#include "widgets/genlist.edc"
-#include "widgets/label.edc"
-#include "widgets/radio.edc"
-#include "widgets/layout.edc"
-
-}
-
+++ /dev/null
-/*
- * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-group { "elm/colorselector/palette/colorplane";
- alias: "elm/colorselector/palette/default";
- data.item: "horizontal_pad" COLORSELECTOR_PORTRAIT_HOR_PAD_COLORPLANE_INC;
- data.item: "vertical_pad" COLORSELECTOR_PORTRAIT_VER_PAD_COLORPLANE_INC;
-
- parts {
- spacer { "base";
- scale;
- desc { "default";
- min: COLORSELECTOR_PALETTE_COLORPLANE_WIDTH_INC COLORSELECTOR_PALETTE_COLORPLANE_HEIGHT_INC;
- max: -1 -1;
- }
- }
- rect { "bg";
- nomouse;
- desc { "default";
- rel.to: "base";
- color_class: "colorselector/default/bg";
- }
- }
- spacer { "padding_top";
- scale;
- desc { "default";
- min: 0 COLORSELECTOR_TOPBOTTOM_PAD_COLORPLANE_INC;
- fixed: 0 1;
- rel1 {
- relative: 0.0 0.0;
- to: "base";
- }
- rel2 {
- relative: 1.0 0.0;
- to: "base";
- }
- align: 0.0 0.0;
- }
- }
- swallow { "palette";
- scale;
- mouse;
- desc { state: "default";
- align: 0.5 0.0;
- fixed: 0 1;
- rel1 {
- relative: 0.0 1.0;
- to_y: "padding_top";
- }
- rel2.to_y: "padding_top";
- }
- }
- spacer { "padding_palette";
- scale;
- desc { "default";
- min: 0 COLORSELECTOR_TOPBOTTOM_PAD_COLORPLANE_INC;
- fixed: 0 1;
- rel1 {
- relative: 0.0 1.0;
- to: "palette";
- }
- rel2.to: "palette";
- align: 0.0 0.0;
- }
- }
- }
-}
-
+++ /dev/null
-/*
- * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#define ENTRY_DEFAULT_TAGS \
- tag: "em" "+ font_style=Oblique"; \
- tag: "b" "+ font_weight=Bold"; \
- tag: "link" "+ color=#800 underline=on underline_color=#8008"; \
- tag: "hilight" "+ font_weight=Bold";
-
-#define ENTRY_SINGLELINE_TAGS \
- tag: "br" ""; \
- tag: "em" "+ font_style=Oblique"; \
- tag: "b" "+ font_weight=Bold"; \
- tag: "link" "+ color=#800 underline=on underline_color=#8008"; \
- tag: "hilight" "+ font_weight=Bold";
-
-#define ENTRY_PREEDIT_TAGS \
- tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; \
- tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC; \
- tag: "preedit_highlight" "+ backing=on backing_color="ENTRY_PREEDIT_HIGHLIGHT_BACKGROUND_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC; \
- tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; \
- tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; \
- tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC; \
- tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
-
-styles {
- style { "entry_textblock_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_edit";
- ENTRY_DEFAULT_TAGS
- ENTRY_PREEDIT_TAGS
- }
- style { "entry_textblock_focused_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_edit_focused";
- ENTRY_DEFAULT_TAGS
- ENTRY_PREEDIT_TAGS
- }
- style { "entry_textblock_disabled_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_edit_disabled";
- ENTRY_DEFAULT_TAGS
- ENTRY_PREEDIT_TAGS
- }
- style { "entry_textblock_guide_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_guide";
- ENTRY_DEFAULT_TAGS
- }
- style { "entry_textblock_guide_focused_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_guide_focused";
- ENTRY_DEFAULT_TAGS
- }
- style { "entry_textblock_guide_disabled_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=mixed text_class=entry color_class=entry/default/text_guide_disabled";
- ENTRY_DEFAULT_TAGS
- }
- style { "entry_textblock_char_wrap_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_edit";
- ENTRY_DEFAULT_TAGS
- ENTRY_PREEDIT_TAGS
- }
- style { "entry_textblock_char_wrap_focused_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_edit_focused";
- ENTRY_DEFAULT_TAGS
- ENTRY_PREEDIT_TAGS
- }
- style { "entry_textblock_char_wrap_disabled_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_edit_disabled";
- ENTRY_DEFAULT_TAGS
- ENTRY_PREEDIT_TAGS
- }
- style { "entry_textblock_char_wrap_guide_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_guide";
- ENTRY_DEFAULT_TAGS
- }
- style { "entry_textblock_char_wrap_guide_focused_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_guide_focused";
- ENTRY_DEFAULT_TAGS
- }
- style { "entry_textblock_char_wrap_guide_disabled_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=char text_class=entry color_class=entry/default/text_guide_disabled";
- ENTRY_DEFAULT_TAGS
- }
- style { "entry_single_textblock_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_edit";
- ENTRY_SINGLELINE_TAGS
- ENTRY_PREEDIT_TAGS
- }
- style { "entry_single_textblock_focused_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_edit_focused";
- ENTRY_SINGLELINE_TAGS
- ENTRY_PREEDIT_TAGS
- }
- style { "entry_single_textblock_disabled_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_edit_disabled";
- ENTRY_SINGLELINE_TAGS
- ENTRY_PREEDIT_TAGS
- }
- style { "entry_single_textblock_guide_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_guide";
- ENTRY_SINGLELINE_TAGS
- }
- style { "entry_single_textblock_guide_focused_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_guide_focused";
- ENTRY_SINGLELINE_TAGS
- }
- style { "entry_single_textblock_guide_disabled_style";
- base: "font=Tizen:weight=Light font_size="ENTRY_FONT_SIZE_INC" color=#fff left_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" right_margin="ENTRY_LEFT_RIGHT_MARGIN_INC" wrap=none text_class=entry color_class=entry/default/text_guide_disabled";
- ENTRY_SINGLELINE_TAGS
- }
-}
-
-group { "elm/entry/event/default";
- inherit_only: 1;
- parts {
- rect { "event";
- mouse;
- repeat;
- desc { "default";
- color: 0 0 0 0;
- }
- desc { "disabled";
- inherit: "default";
- hid;
- }
- }
- }
- programs {
- program { "clicked";
- signal: "mouse,clicked,1";
- source: "event";
- after: "on_clicked";
- }
- program { "load";
- signal: "load";
- source: "";
- after: "on_load";
- }
- program { "disabled";
- signal: "elm,state,disabled";
- source: "elm";
- action: STATE_SET "disabled";
- target: "event";
- after: "on_disabled";
- }
- program { "enabled";
- signal: "elm,state,disabled";
- source: "elm";
- action: STATE_SET "default";
- target: "event";
- after: "on_enabled";
- }
- program { "focus";
- signal: "elm,action,focus";
- source: "elm";
- after: "on_focus";
- }
- program { "unfocus";
- signal: "elm,action,unfocus";
- source: "elm";
- after: "on_unfocus";
- }
- program { "disabled_guide";
- signal: "elm,guide,disabled";
- source: "elm";
- after: "on_disabled_guide";
- }
- program { "enabled_guide";
- signal: "elm,guide,enabled";
- source: "elm";
- after: "on_enabled_guide";
- }
- }
-}
-
-group { "elm/entry/base/template";
- inherit_only: 1;
- data.item: "default_font_size" ENTRY_FONT_SIZE_INC;
- data.item: "focus_highlight" "on";
- data.item: context_menu_orientation "horizontal";
- parts {
- rect { "bg";
- nomouse;
- desc { "default";
- color_class: "entry/default/bg";
- }
- }
- textblock { "elm.guide";
- nomouse;
- scale;
- desc { "default";
- rel.to: "elm.text";
- text.style: "entry_textblock_guide_style";
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_textblock_guide_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_textblock_guide_disabled_style";
- }
- desc { "hidden";
- inherit: "default";
- hid;
- }
- }
- textblock { "elm.text";
- mouse;
- scale;
- entry_mode: EDITABLE;
- select_mode: EXPLICIT;
- cursor_mode: BEFORE;
- multiline: 1;
- source: "elm/entry/selection/default"; // selection under
- source4: "elm/entry/cursor/default"; // cursorover
- source5: "elm/entry/anchor/default"; // anchor under
- desc { "default";
- text.style: "entry_textblock_style";
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_textblock_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_textblock_disabled_style";
- }
- }
- }
- inherit: "elm/entry/event/default";
- script {
- public focused = 0;
- public disabled = 0;
- public guide_disabled = 0;
- }
- programs {
- program { "on_load";
- action: FOCUS_SET;
- target: "elm.text";
- }
- program { "on_clicked";
- action: RUN_PLUGIN "touch_sound";
- }
- program { "on_focus";
- script {
- set_int(focused, 1);
- if (get_int(disabled) == 0) {
- set_state(PART:"elm.text", "focused", 0.0);
- if (get_int(guide_disabled) == 0)
- set_state(PART:"elm.guide", "focused", 0.0);
- }
- }
- }
- program { "on_unfocus";
- script {
- set_int(focused, 0);
- if (get_int(disabled) == 0) {
- set_state(PART:"elm.text", "default", 0.0);
- if (get_int(guide_disabled) == 0)
- set_state(PART:"elm.guide", "default", 0.0);
- }
- }
- }
- program { "on_disabled";
- script {
- set_int(disabled, 1);
- set_state(PART:"elm.text", "disabled", 0.0);
- if (get_int(guide_disabled) == 0)
- set_state(PART:"elm.guide", "disabled", 0.0);
- }
- }
- program { "on_enabled";
- script {
- set_int(disabled, 0);
- if (get_int(focused))
- set_state(PART:"elm.text", "focused", 0.0);
- else
- set_state(PART:"elm.text", "default", 0.0);
- if (get_int(guide_disabled) == 0) {
- if (get_int(focused))
- set_state(PART:"elm.guide", "focused", 0.0);
- else
- set_state(PART:"elm.guide", "default", 0.0);
- }
- }
- }
- program { "on_disabled_guide";
- script {
- set_int(guide_disabled, 1);
- set_state(PART:"elm.guide", "hidden", 0.0);
- }
- }
- program { "on_enabled_guide";
- script {
- set_int(guide_disabled, 0);
- if (get_int(disabled))
- set_state(PART:"elm.guide", "disabled", 0.0);
- else if (get_int(focused))
- set_state(PART:"elm.guide", "focused", 0.0);
- else
- set_state(PART:"elm.guide", "default", 0.0);
- }
- }
- }
-}
-
-group { "elm/entry/cursor/event/default";
- inherit_only: 1;
- programs {
- program { "selection_start";
- signal: "selection,start";
- source: "elm.text";
- after: "on_selection_start";
- }
- program { "selection_cleared";
- signal: "selection,cleared";
- source: "elm.text";
- after: "on_selection_cleared";
- }
- program { "focus";
- signal: "elm,action,focus";
- source: "elm";
- after: "on_focus";
- }
- program { "unfocus";
- signal: "elm,action,unfocus";
- source: "elm";
- after: "on_unfocus";
- }
- program { "show_cursor";
- signal: "elm,action,show,cursor";
- source: "elm";
- after: "on_show_cursor";
- }
- }
-}
-
-group { "elm/entry/cursor/template";
- inherit: "elm/entry/cursor/event/default";
- inherit_only: 1;
- parts {
- rect { "cursor";
- clip: "clipper";
- desc { "default";
- hid;
- }
- desc { "visible";
- inherit: "default";
- vis;
- }
- }
- rect { "clipper";
- desc { "default";
- }
- desc { "hidden";
- inherit: "default";
- hid;
- }
- }
- }
- programs {
- program { "on_selection_start";
- action: STATE_SET "hidden";
- target: "clipper";
- }
- program { "on_selection_cleared";
- action: STATE_SET "default";
- target: "clipper";
- }
- program { "on_focus";
- action: ACTION_STOP;
- target: "cursor_visible";
- target: "cursor_hidden";
- target: "cursor_visible_timer";
- target: "cursor_hidden_timer";
- after: "cursor_visible";
- }
- program { "on_unfocus";
- action: ACTION_STOP;
- target: "cursor_visible";
- target: "cursor_hidden";
- target: "cursor_visible_timer";
- target: "cursor_hidden_timer";
- after: "cursor_hidden_stop";
- }
- program { "on_show_cursor";
- action: ACTION_STOP;
- target: "cursor_visible";
- target: "cursor_hidden";
- target: "cursor_visible_timer";
- target: "cursor_hidden_timer";
- after: "cursor_visible";
- }
- program { "cursor_hidden_stop";
- action: STATE_SET "default";
- target: "cursor";
- }
- program { "cursor_visible";
- action: STATE_SET "visible";
- target: "cursor";
- after: "cursor_visible_timer";
- }
- program { "cursor_hidden";
- action: STATE_SET "default";
- target: "cursor";
- after: "cursor_hidden_timer";
- }
- program { "cursor_visible_timer";
- in: 0.6 0.0;
- after: "cursor_hidden";
- }
- program { "cursor_hidden_timer";
- in: 0.6 0.0;
- after: "cursor_visible";
- }
- }
-}
-
-group { "elm/entry/cursor/default";
- inherit: "elm/entry/cursor/template";
- parts {
- rect { "cursor";
- nomouse;
- scale;
- clip: "clipper";
- desc { "default";
- min: ENTRY_CURSOR_SIZE_INC;
- color_class: "entry/default/cursor";
- hid;
- }
- desc { "visible";
- inherit: "default";
- vis;
- }
- }
- rect { "clipper";
- desc { "default";
- rel.to: "cursor";
- fixed: 1 1;
- }
- desc { "hidden";
- inherit: "default";
- hid;
- }
- }
- }
-}
-
-group { "elm/entry/base/default";
- inherit: "elm/entry/base/template";
- alias: "elm/entry/base-mixedwrap/default";
- parts {
- textblock { "elm.guide";
- nomouse;
- scale;
- desc { "default";
- rel.to: "elm.text";
- text {
- style: "entry_textblock_guide_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_textblock_guide_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_textblock_guide_disabled_style";
- }
- desc { "hidden";
- inherit: "default";
- hid;
- }
- }
- textblock { "elm.text";
- mouse;
- scale;
- entry_mode: EDITABLE;
- select_mode: EXPLICIT;
- cursor_mode: BEFORE;
- multiline: 1;
- source: "elm/entry/selection/default"; // selection under
- source4: "elm/entry/cursor/default"; // cursorover
- source5: "elm/entry/anchor/default"; // anchor under
- desc { "default";
- fixed: 1 0;
- text {
- style: "entry_textblock_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "focused";
- inherit: "default";
- text {
- style: "entry_textblock_focused_style";
- min: 0 1;
- }
- }
- desc { "disabled";
- inherit: "default";
- text {
- style: "entry_textblock_disabled_style";
- min: 0 1;
- }
- }
- }
- }
-}
-
-group { "elm/entry/base-charwrap/default";
- alias: "elm/entry/base/char_wrap";
- inherit: "elm/entry/base/template";
- parts {
- textblock { "elm.guide";
- nomouse;
- scale;
- desc { "default";
- rel.to: "elm.text";
- text {
- style: "entry_textblock_char_wrap_guide_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_textblock_char_wrap_guide_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_textblock_char_wrap_guide_disabled_style";
- }
- desc { "hidden";
- inherit: "default";
- hid;
- }
- }
- textblock { "elm.text";
- mouse;
- scale;
- entry_mode: EDITABLE;
- select_mode: EXPLICIT;
- cursor_mode: BEFORE;
- multiline: 1;
- source: "elm/entry/selection/default"; // selection under
- source4: "elm/entry/cursor/default"; // cursorover
- source5: "elm/entry/anchor/default"; // anchor under
- desc { "default";
- fixed: 1 0;
- text {
- style: "entry_textblock_char_wrap_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "focused";
- inherit: "default";
- text {
- style: "entry_textblock_char_wrap_focused_style";
- min: 0 1;
- }
- }
- desc { "disabled";
- inherit: "default";
- text {
- style: "entry_textblock_char_wrap_disabled_style";
- min: 0 1;
- }
- }
- }
- }
-}
-
-group { "elm/entry/base-nowrap/default";
- inherit: "elm/entry/base/template";
- parts {
- textblock { "elm.guide";
- nomouse;
- scale;
- desc { "default";
- rel.to: "elm.text";
- text {
- style: "entry_textblock_guide_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_textblock_guide_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_textblock_guide_disabled_style";
- }
- desc { "hidden";
- inherit: "default";
- hid;
- }
- }
- textblock { "elm.text";
- mouse;
- scale;
- entry_mode: EDITABLE;
- select_mode: EXPLICIT;
- cursor_mode: BEFORE;
- multiline: 1;
- source: "elm/entry/selection/default"; // selection under
- source4: "elm/entry/cursor/default"; // cursorover
- source5: "elm/entry/anchor/default"; // anchor under
- desc { "default";
- text {
- style: "entry_textblock_style";
- min: 1 1;
- align: 0.0 0.0;
- }
- }
- desc { "focused";
- inherit: "default";
- text {
- style: "entry_textblock_focused_style";
- min: 1 1;
- }
- }
- desc { "disabled";
- inherit: "default";
- text {
- style: "entry_textblock_disabled_style";
- min: 0 1;
- }
- }
- }
- }
-}
-
-group { "elm/entry/base-single/default";
- inherit: "elm/entry/base/template";
- parts {
- textblock { "elm.guide";
- nomouse;
- scale;
- desc { "default";
- fixed: 1 1;
- rel.to: "elm.text";
- text {
- style: "entry_single_textblock_guide_style";
- min: 0 1;
- max: 0 0;
- align: 0.0 0.5;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_single_textblock_guide_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_single_textblock_guide_disabled_style";
- }
- desc { "hidden";
- inherit: "default";
- hid;
- }
- }
- textblock { "elm.text";
- mouse;
- scale;
- entry_mode: EDITABLE;
- select_mode: EXPLICIT;
- cursor_mode: BEFORE;
- multiline: 0;
- source: "elm/entry/selection/default"; // selection under
- source4: "elm/entry/cursor/default"; // cursorover
- source5: "elm/entry/anchor/default"; // anchor under
- desc { "default";
- text {
- style: "entry_single_textblock_style";
- min: 1 1;
- max: 0 0;
- align: 0.0 0.5;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_single_textblock_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_single_textblock_disabled_style";
- }
- }
- }
-}
-
-group { "elm/entry/base-single-noedit/default";
- inherit: "elm/entry/base/template";
- alias: "elm/entry/base-single-noedit/vcenter_align";
- parts {
- textblock { "elm.guide";
- nomouse;
- scale;
- desc { "default";
- fixed: 1 1;
- rel.to: "elm.text";
- text {
- style: "entry_single_textblock_guide_style";
- min: 0 1;
- max: 0 1;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_single_textblock_guide_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_single_textblock_guide_disabled_style";
- }
- desc { "hidden";
- inherit: "default";
- hid;
- }
- }
- textblock { "elm.text";
- mouse;
- scale;
- entry_mode: PLAIN;
- select_mode: EXPLICIT;
- cursor_mode: BEFORE;
- multiline: 0;
- source: "elm/entry/selection/default"; // selection under
- source5: "elm/entry/anchor/default"; // anchor under
- desc { "default";
- text {
- style: "entry_single_textblock_style";
- min: 1 1;
- max: 0 1;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_single_textblock_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_single_textblock_disabled_style";
- }
- }
- }
-}
-
-group { "elm/entry/base-noedit/default";
- inherit: "elm/entry/base/template";
- parts {
- textblock { "elm.guide";
- nomouse;
- scale;
- desc { "default";
- rel.to: "elm.text";
- text {
- style: "entry_textblock_guide_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_textblock_guide_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_textblock_guide_disabled_style";
- }
- desc { "hidden";
- inherit: "default";
- hid;
- }
- }
- textblock { "elm.text";
- mouse;
- scale;
- entry_mode: PLAIN;
- select_mode: EXPLICIT;
- cursor_mode: BEFORE;
- multiline: 1;
- source: "elm/entry/selection/default"; // selection under
- source5: "elm/entry/anchor/default"; // anchor under
- desc { "default";
- fixed: 1 0;
- text {
- style: "entry_textblock_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_textblock_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_textblock_disabled_style";
- }
- }
- }
-}
-
-group { "elm/entry/base-noedit-charwrap/default";
- inherit: "elm/entry/base/template";
- parts {
- textblock { "elm.guide";
- nomouse;
- scale;
- desc { "default";
- rel.to: "elm.text";
- text {
- style: "entry_textblock_char_wrap_guide_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_textblock_char_wrap_guide_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_textblock_char_wrap_guide_disabled_style";
- }
- desc { "hidden";
- inherit: "default";
- hid;
- }
- }
- textblock { "elm.text";
- mouse;
- scale;
- entry_mode: PLAIN;
- select_mode: EXPLICIT;
- cursor_mode: BEFORE;
- multiline: 1;
- source: "elm/entry/selection/default"; // selection under
- source5: "elm/entry/anchor/default"; // anchor under
- desc { "default";
- fixed: 1 0;
- text {
- style: "entry_textblock_char_wrap_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_textblock_char_wrap_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_textblock_char_wrap_disabled_style";
- }
- }
- }
-}
-
-group { "elm/entry/base-noedit-mixedwrap/default";
- inherit: "elm/entry/base/template";
- parts {
- part { "elm.guide";
- type: TEXTBLOCK;
- nomouse;
- scale;
- desc { "default";
- rel.to: "elm.text";
- text {
- style: "entry_textblock_guide_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_textblock_guide_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_textblock_guide_disabled_style";
- }
- desc { "hidden";
- inherit: "default";
- hid;
- }
- }
- textblock { "elm.text";
- mouse;
- scale;
- entry_mode: PLAIN;
- select_mode: EXPLICIT;
- cursor_mode: BEFORE;
- multiline: 1;
- source: "elm/entry/selection/default"; // selection under
- source5: "elm/entry/anchor/default"; // anchor under
- desc { "default";
- fixed: 1 0;
- text {
- style: "entry_textblock_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_textblock_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_textblock_disabled_style";
- }
- }
- }
-}
-
-group { "elm/entry/base-nowrap-noedit/default";
- inherit: "elm/entry/base/template";
- parts {
- textblock { "elm.guide";
- type: TEXTBLOCK;
- nomouse;
- scale;
- desc { "default";
- rel.to: "elm.text";
- text {
- style: "entry_textblock_guide_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_textblock_guide_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_textblock_guide_disabled_style";
- }
- desc { "hidden";
- inherit: "default";
- hid;
- }
- }
- textblock { "elm.text";
- mouse;
- scale;
- entry_mode: PLAIN;
- select_mode: EXPLICIT;
- cursor_mode: BEFORE;
- multiline: 1;
- source: "elm/entry/selection/default"; // selection under
- source5: "elm/entry/anchor/default"; // anchor under
- desc { "default";
- text {
- style: "entry_textblock_style";
- min: 1 1;
- align: 0.0 0.0;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_textblock_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_textblock_disabled_style";
- }
- }
- }
-}
-
-group { "elm/entry/base-password/default";
- inherit: "elm/entry/base/template";
- parts {
- textblock { "elm.guide";
- nomouse;
- scale;
- desc { "default";
- fixed: 1 1;
- rel.to: "elm.text";
- text {
- style: "entry_single_textblock_guide_style";
- min: 0 1;
- max: 0 1;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_single_textblock_guide_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_single_textblock_guide_disabled_style";
- }
- desc { "hidden";
- inherit: "default";
- hid;
- }
- }
- textblock { "elm.text";
- mouse;
- scale;
- entry_mode: PASSWORD;
- select_mode: EXPLICIT;
- cursor_mode: BEFORE;
- multiline: 0;
- source: "elm/entry/selection/default"; // selection under
- source4: "elm/entry/cursor/default"; // cursorover
- source5: "elm/entry/anchor/default"; // anchor under
- desc { "default";
- text {
- style: "entry_single_textblock_style";
- repch: "•";
- min: 1 1;
- max: 0 1;
- }
- }
- desc { "focused";
- inherit: "default";
- text.style: "entry_single_textblock_focused_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "entry_single_textblock_disabled_style";
- }
- }
- }
-}
-
-group { "elm/entry/selection/default";
- parts {
- rect { "bg";
- scale;
- nomouse;
- desc { "default";
- color: 0 221 255 153;
- }
- }
- }
-}
-
-group { "elm/entry/anchor/default";
- parts {
- spacer { "bg";
- desc { "default"; }
- }
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#define LIST_PROGRAM_SOUND \
- program { name: "play_sound"; \
- signal: "elm,state,clicked"; \
- source: "elm"; \
- script { \
- run_program(PROGRAM:"touch_sound"); \
- } \
- } \
- program { name: "touch_sound"; \
- action: RUN_PLUGIN "touch_sound"; \
- }
-
-group { "elm/genlist/item/event/default"
- inherit_only: 1;
- parts {
- rect { "event"; nomouse; repeat; scale;
- desc { "default";
- color: 0 0 0 0;
- rel.to: "base";
- }
- desc { "disabled";
- inherit: "default";
- hid;
- }
- }
- }
- programs {
- /* Program for enabled event */
- program { "enabled";
- signal: "elm,state,enabled";
- source: "elm";
- action: STATE_SET "default";
- target: "event";
- after: "on_enabled";
- }
- /* Program for disabled event */
- program { "disabled";
- signal: "elm,state,disabled";
- source: "elm";
- action: STATE_SET "disabled";
- target: "event";
- after: "on_disabled";
- }
- program { "enable_event_pass";
- signal: "elm,event,pass,enabled";
- source: "elm";
- script {
- set_mouse_events(PART:"event", 0);
- }
- }
- program { "disable_event_pass";
- signal: "elm,event,pass,disabled";
- source:"elm";
- script {
- set_mouse_events(PART:"event", 1);
- }
- }
- program { "enable_event_repeat";
- signal: "elm,event,repeat,enabled";
- source: "elm";
- script {
- set_repeat_events(PART:"event", 1);
- }
- }
- program { "disable_event_repeat";
- signal: "elm,event,repeat,disabled";
- source:"elm";
- script {
- set_repeat_events(PART:"event", 0);
- }
- }
- }
-}
-
-group { "elm/genlist/item/full/default";
- alias: "elm/genlist/item_compress/full/default";
- alias: "elm/genlist/tree/full/default";
- alias: "elm/genlist/tree_compress/full/default";
- inherit: "elm/genlist/item/event/default";
-
- data.item: "banded_bg_area" "elm.swallow.bg";
- data.item: "contents" "elm.swallow.content";
-
- parts {
- spacer { "base"; scale;
- desc { "default";
- }
- }
-
- swallow { "elm.swallow.bg"; scale;
- desc { "default";
- rel.to: "base";
- }
- }
- rect { "bg"; scale;
- desc { "default";
- rel.to: "elm.swallow.bg";
- color_class: "genlist_item/full/bg";
- }
- desc { "pressed"; inherit: "default";
- color_class: "genlist_item/full/bg";
- }
- desc { "disabled"; inherit: "default";
- color_class: "genlist_item/full/bg";
- }
- }
- swallow { "elm.swallow.content"; scale;
- desc { "default";
- rel1 { to: "bg"; relative: 0.0 0.0; }
- rel2 { to: "bg"; relative: 1.0 1.0; }
- }
- }
- rect { "elm.bottomline"; scale;
- desc { "default";
- vis;
- min: 0 LIST_BOTTOMLINE_HEIGHT;
- max: -1 LIST_BOTTOMLINE_HEIGHT;
- align: 0.5 0.0;
- fixed: 0 1;
- rel1.relative: 0.0 0.0;
- rel2.relative: 1.0 0.0;
- color_class: "genlist_item/full/bottomline";
- }
- desc { "hidden"; inherit: "default";
- hid;
- }
- }
- rect { "event";
- after: "elm.bottomline";
- desc { "default";
- rel.to: "base";
- }
- desc { "disabled";
- inherit: "default";
- hid;
- }
- }
- }
- programs {
- LIST_PROGRAM_SOUND
- program {
- signal: "elm,state,elm.swallow.bg,visible";
- source: "elm";
- action: STATE_SET "hidden";
- target: "elm.bottomline";
- }
- program {
- signal: "elm,state,elm.swallow.bg,hidden";
- source: "elm";
- action: STATE_SET "default";
- target: "elm.bottomline";
- }
- program { "default";
- signal: "elm,state,default";
- source: "elm";
- action: STATE_SET "default";
- target: "bg";
- target: "elm.bottomline";
- target: "event";
- }
- program { "pressed";
- signal: "elm,state,selected";
- source: "elm";
- action: STATE_SET "pressed";
- target: "bg";
- }
- program { "unpressed";
- signal: "elm,state,unselected";
- source: "elm";
- action: STATE_SET "default";
- target: "bg";
- }
- program { "on_enabled";
- action: STATE_SET "default";
- target: "bg";
- }
- program { "on_disabled";
- action: STATE_SET "disabled";
- target: "bg";
- }
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#define SLIDE_SPEED_WEIGHT 0.5
-#define SLIDE_TEXT_GAP 60
-#define SLIDE_TEXT_CHAR_GAP " " //60 (6 spaces)
-#define SLIDE_TEXT_MAX_LENGTH (2*(1024+6))
-
-styles {
- style { "textblock_style";
- base: "font=Tizen:weight=Normal font_size="LABEL_FONT_SIZE_INC" color=#FFF color_class=label/default/text text_class=label";
- tag: "br" "\n";
- tag: "ps" "ps";
- tag: "hilight" "+ font_weight=Bold";
- tag: "b" "+ font_weight=Bold";
- tag: "tab" "\t";
- }
- style { "textblock_charwrap_style";
- base: "font=Tizen:weight=Normal font_size="LABEL_FONT_SIZE_INC" color=#FFF color_class=label/default/text text_class=label";
- tag: "br" "\n";
- tag: "ps" "ps";
- tag: "hilight" "+ font_weight=Bold";
- tag: "b" "+ font_weight=Bold";
- tag: "tab" "\t";
- }
- style { "textblock_style_marker";
- base: "font=Tizen:weight=Bold font_size=14 align=center color=#FFF wrap=word color_class=label/default/text text_class=tizen";
- tag: "br" "\n";
- tag: "ps" "ps";
- tag: "hilight" "+ font_weight=Bold";
- tag: "b" "+ font_weight=Bold";
- tag: "tab" "\t";
- }
-}
-
-group { "elm/label/event/default";
- inherit_only: 1;
- programs {
- program { "start_slide";
- source: "elm";
- signal: "elm,state,slide,start";
- after: "on_start_slide";
- }
- program { "stop_slide";
- source: "elm";
- signal: "elm,state,slide,stop";
- after: "on_stop_slide";
- }
- }
-}
-
-group { "elm/label/base/template";
- inherit: "elm/label/event/default";
- inherit_only: 1;
- parts {
- rect { "bg";
- desc { "default";
- color_class: "label/default/bg";
- }
- }
- rect { "clipper";
- desc { "default";
- }
- }
- textblock { "elm.text";
- scale;
- clip: "clipper";
- desc { "default";
- text.style: "textblock_style";
- }
- }
- }
- programs {
- program { "on_start_slide";
- }
- program { "on_stop_slide";
- }
- }
-}
-
-group { "elm/label/base/default";
- inherit: "elm/label/base/template";
- parts {
- textblock { "elm.text";
- scale;
- clip: "clipper";
- desc { "default";
- text {
- style: "textblock_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- }
- }
-}
-
-/* default label doesn't use it */
-group { "elm/label/base_wrap/default";
- inherit: "elm/label/base/template";
- parts {
- textblock { "elm.text";
- scale;
- multiline: 1;
- desc { "default";
- text {
- style: "textblock_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "charwrap_mode";
- text {
- style: "textblock_charwrap_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- }
- }
- programs {
- program { "default";
- signal: "elm,state,default";
- source: "elm";
- action: STATE_SET "default";
- target: "elm.text";
- }
- program { "charwrap";
- signal: "elm,state,charwrap";
- source: "elm";
- action: STATE_SET "charwrap_mode";
- target: "elm.text";
- }
- }
-}
-
-/* default label doesn't use it */
-group { "elm/label/base_wrap_ellipsis/default";
- inherit: "elm/label/base/template";
- parts {
- textblock { "elm.text";
- scale;
- multiline: 1;
- desc { "default";
- fixed: 0 1;
- text {
- style: "textblock_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "charwrap_mode";
- fixed: 0 1;
- text {
- style: "textblock_charwrap_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- }
- }
- programs {
- program { "default";
- signal: "elm,state,default";
- source: "elm";
- action: STATE_SET "default";
- target: "elm.text";
- }
- program { "charwrap";
- signal: "elm,state,charwrap";
- source: "elm";
- action: STATE_SET "charwrap_mode";
- target: "elm.text";
- }
- }
-}
-
-group { "elm/label/base/slide_long";
- inherit: "elm/label/base/template";
- script {
- public g_duration = 0, g_stopslide, g_timer_id, g_anim_id;
-
- public message(Msg_Type:type, id, ...) {
- if (type == MSG_FLOAT_SET) {
- new Float:duration;
- duration = getfarg(2);
- if (id == 0)
- set_float(g_duration, duration);
- else
- set_float(g_duration, duration / LABEL_FONT_SIZE_INC * SLIDE_SPEED_WEIGHT);
- }
- }
- public slide_to_end_anim(val, Float:pos) {
- new stopflag;
- new id;
- stopflag = get_int(g_stopslide);
- if (stopflag == 1) return;
- set_tween_state(PART:"elm.text", pos, "slide_begin", 0.0, "slide_end", 0.0);
- if (pos >= 1.0) {
- id = timer(0.5, "slide_to_begin", 1);
- set_int(g_timer_id, id);
- }
- }
- public slide_to_end() {
- new stopflag;
- new id;
- new Float:duration;
- stopflag = get_int(g_stopslide);
- if (stopflag == 1) return;
- duration = get_float(g_duration);
- id = anim(duration, "slide_to_end_anim", 1);
- set_int(g_anim_id, id);
- }
- public slide_to_begin() {
- new stopflag;
- new id;
- stopflag = get_int(g_stopslide);
- if (stopflag == 1) return;
- set_state(PART:"elm.text", "slide_begin", 0.0);
- id = timer(0.5, "slide_to_end", 1);
- set_int(g_timer_id, id);
- }
- public start_slide() {
- set_int(g_stopslide, 0);
- set_state(PART:"elm.text", "slide_begin", 0.0);
- slide_to_end();
- }
- public stop_slide() {
- new id;
- set_int(g_stopslide, 1);
- id = get_int(g_anim_id);
- cancel_anim(id);
- id = get_int(g_timer_id);
- cancel_timer(id);
- set_state(PART:"elm.text", "default", 0.0);
- }
- }
- parts {
- rect { "bg";
- desc { "default";
- color_class: "label/slide_long/bg";
- }
- }
- textblock { "elm.text";
- scale;
- clip: "clipper";
- desc { "default";
- align: 0.0 0.0;
- text {
- style: "textblock_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "slide_end";
- inherit: "default";
- rel2.relative: 0.0 1.0;
- align: 1.0 0.0;
- text {
- style: "textblock_style";
- min: 1 1;
- align: 0.0 0.0;
- }
- }
- desc { "slide_begin";
- inherit: "default";
- rel1.relative: 1.0 0.0;
- text {
- style: "textblock_style";
- min: 1 1;
- align: 0.0 0.0;
- }
- }
- }
- }
- programs {
- program { "on_start_slide";
- script {
- start_slide();
- }
- }
- program { "on_stop_slide";
- script {
- stop_slide();
- }
- }
- }
-}
-
-group { "elm/label/base/slide_roll";
- inherit: "elm/label/base/template";
- script {
- public g_duration = 0;
- public g_stopslide = 0;
- public g_timer_id = 0;
- public g_anim_id = 0;
- public g_tb_w = 0;
- public g_tb_h = LABEL_FONT_SIZE_INC;
- public org_text = 0;
- public message(Msg_Type:type, id, ...) {
- if (type == MSG_FLOAT_SET) {
- new Float:duration;
- duration = getfarg(2);
- if (id == 0)
- set_float(g_duration, duration);
- else
- set_float(g_duration, duration / get_int(g_tb_h) * SLIDE_SPEED_WEIGHT);
- }
- }
- public get_tb_width() {
- new x, y, w, h;
- set_state(PART:"elm.text", "no_ellipsis", 0.0);
- get_geometry(PART:"elm.text", x, y, w, h);
- set_int(g_tb_w, w);
- set_int(g_tb_h, h);
- set_state(PART:"clipper_elm.text", "default", 0.0);
- get_geometry(PART:"clipper_elm.text", x, y, w, h);
- set_int(org_text, w);
- }
- public slide_to_end_anim(val, Float:pos) {
- if (get_int(g_stopslide)) return;
- set_tween_state(PART:"elm.text.slide", pos*0.5, "slide_begin", 0.0, "slide_end", 0.0);
- if (pos >= 1.0) {
- set_int(g_timer_id, timer(1.5, "start_slide", 0));
- }
- }
- public slide_to_end() {
- if (get_int(g_stopslide)) return;
- set_int(g_anim_id, anim(get_float(g_duration), "slide_to_end_anim", 0));
- }
- public start_slide(val) {
- new Float:len;
- set_int(g_stopslide, 0);
- get_tb_width();
- if (!get_float(g_duration)) {
- len = get_int(g_tb_w);
- set_float(g_duration, len / get_int(g_tb_h) * SLIDE_SPEED_WEIGHT);
- }
- if(get_int(g_tb_w) > get_int(org_text)) {
- run_program(PROGRAM:"slide_text_set");
- set_state(PART:"elm.text.slide", "slide_begin", 0.0);
- set_state(PART:"clipper_elm.text", "hide", 0.0);
- set_state(PART:"clipper_elm.text.slide", "show", 0.0);
- slide_to_end();
- }
- }
- public stop_slide() {
- new slide_start_timer;
- new slide_anim_id;
- set_int(g_stopslide, 1);
- set_float(g_duration, 0);
- slide_start_timer = get_int(g_timer_id);
- if (slide_start_timer) {
- cancel_timer(slide_start_timer);
- set_int(g_timer_id, 0);
- }
- slide_anim_id = get_int(g_anim_id);
- if (slide_anim_id) {
- cancel_anim(slide_anim_id);
- set_int(g_anim_id, 0);
- }
- set_text(PART:"elm.text.slide", "");
- set_state(PART:"elm.text", "default", 0.0);
- set_state(PART:"elm.text.slide", "default", 0.0);
- set_state(PART:"clipper_elm.text", "default", 0.0);
- set_state(PART:"clipper_elm.text.slide", "default", 0.0);
- }
- }
- parts {
- rect { "bg";
- desc { "default";
- color_class: "label/slide_roll/bg";
- }
- }
- rect { "clipper_elm.text";
- nomouse;
- clip: "clipper";
- desc { "default";
- }
- desc { "hide";
- inherit: "default";
- hid;
- }
- }
- textblock { "elm.text";
- scale;
- clip: "clipper_elm.text";
- desc { "default";
- align: 0.0 0.5;
- text {
- style: "textblock_style";
- min: 0 1;
- }
- }
- desc { "no_ellipsis";
- inherit: "default";
- text.min: 1 1;
- }
- }
- rect { "clipper_elm.text.slide";
- nomouse;
- clip: "clipper";
- desc { "default";
- hid;
- }
- desc { "show";
- inherit: "default";
- vis;
- }
- }
- spacer { "slide_text_gap";
- scale;
- desc { "default";
- fixed: 1 0;
- min: SLIDE_TEXT_GAP 0;
- max: SLIDE_TEXT_GAP -1;
- align: 1.0 0.5;
- rel2.relative: 0.0 1.0;
- }
- }
- textblock { "elm.text.slide";
- scale;
- clip: "clipper_elm.text.slide";
- desc { "default";
- align: 0.0 0.5;
- text {
- style: "textblock_style";
- min: 0 1;
- }
- }
- desc { "slide_begin";
- inherit: "default";
- text.min: 1 1;
- rel2.relative: 0.0 1.0;
- }
- desc { "slide_end";
- inherit: "default";
- align: 1.0 0.5;
- text.min: 1 1;
- text.align: 1.0 0.5;
- rel.to: "slide_text_gap";
- }
- }
- }
- programs {
- program { "slide_text_set";
- script {
- new buf[1024];
- new buffer[SLIDE_TEXT_MAX_LENGTH];
- get_text(PART:"elm.text", buf, 1024);
- snprintf(buffer, SLIDE_TEXT_MAX_LENGTH, "%s", buf);
- strcat(buffer, SLIDE_TEXT_CHAR_GAP);
- strcat(buffer, buf);
- strcat(buffer, SLIDE_TEXT_CHAR_GAP);
- set_text(PART:"elm.text.slide", buffer);
- }
- }
- program { "on_start_slide";
- script {
- run_program(PROGRAM:"stop_slide");
- set_int(g_timer_id, timer(1.5, "start_slide", 0));
- }
- }
- program { "on_stop_slide";
- script {
- stop_slide();
- }
- }
- }
-}
-
-group { "elm/label/base/slide_short";
- inherit: "elm/label/base/template";
- script {
- public g_duration = 0, g_stopslide, g_timer_id, g_anim_id;
-
- public message(Msg_Type:type, id, ...) {
- if (type == MSG_FLOAT_SET) {
- new Float:duration;
- duration = getfarg(2);
- if (id == 0)
- set_float(g_duration, duration);
- else
- set_float(g_duration, duration / LABEL_FONT_SIZE_INC * SLIDE_SPEED_WEIGHT);
- }
- }
- public slide_to_end_anim(val, Float:pos) {
- new stopflag;
- new id;
- stopflag = get_int(g_stopslide);
- if (stopflag == 1) return;
- set_tween_state(PART:"elm.text", pos, "slide_begin", 0.0, "slide_end", 0.0);
- if (pos >= 1.0) {
- id = timer(0.5, "slide_to_begin", 1);
- set_int(g_timer_id, id);
- }
- }
- public slide_to_end() {
- new stopflag;
- new id;
- new Float:duration;
- stopflag = get_int(g_stopslide);
- if (stopflag == 1) return;
- duration = get_float(g_duration);
- id = anim(duration, "slide_to_end_anim", 1);
- set_int(g_anim_id, id);
- }
- public slide_to_begin() {
- new stopflag;
- new id;
- stopflag = get_int(g_stopslide);
- if (stopflag == 1) return;
- set_state(PART:"elm.text", "slide_begin", 0.0);
- id = timer(0.5, "slide_to_end", 1);
- set_int(g_timer_id, id);
- }
- public start_slide() {
- set_int(g_stopslide, 0);
- set_state(PART:"elm.text", "slide_begin", 0.0);
- slide_to_end();
- }
- public stop_slide() {
- new id;
- set_int(g_stopslide, 1);
- id = get_int(g_anim_id);
- cancel_anim(id);
- id = get_int(g_timer_id);
- cancel_timer(id);
- set_state(PART:"elm.text", "default", 0.0);
- }
- }
- parts {
- rect { "bg";
- desc { "default";
- color_class: "label/slide_short/bg";
- }
- }
- textblock { "elm.text";
- scale;
- clip: "clipper";
- desc { "default";
- align: 0.0 0.0;
- text {
- style: "textblock_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "slide_end";
- inherit: "default";
- rel1.relative: 1.0 0.0;
- align: 1.0 0.0;
- text {
- style: "textblock_style";
- min: 1 1;
- align: 0.0 0.0;
- }
- }
- desc { "slide_begin";
- inherit: "default";
- rel2.relative: 0.0 1.0;
- align: 0.0 0.0;
- text {
- style: "textblock_style";
- min: 1 1;
- align: 0.0 0.0;
- }
- }
- }
- }
- programs {
- program { "on_start_slide";
- script {
- start_slide();
- }
- }
- program { "on_stop_slide";
- script {
- stop_slide();
- }
- }
- }
-}
-
-group { "elm/label/base/slide_bounce";
- inherit: "elm/label/base/template";
- script {
- public g_duration = 0, g_stopslide, g_timer_id, g_anim_id;
-
- public message(Msg_Type:type, id, ...) {
- if (type == MSG_FLOAT_SET) {
- new Float:duration;
- duration = getfarg(2);
- if (id == 0)
- set_float(g_duration, duration);
- else
- set_float(g_duration, duration / LABEL_FONT_SIZE_INC * SLIDE_SPEED_WEIGHT);
- }
- }
- public slide_to_end_anim(val, Float:pos) {
- new stopflag;
- new id;
- stopflag = get_int(g_stopslide);
- if (stopflag == 1) return;
- set_tween_state(PART:"elm.text", pos, "slide_begin", 0.0, "slide_end", 0.0);
- if (pos >= 1.0) {
- id = timer(0.5, "slide_to_begin", 1);
- set_int(g_timer_id, id);
- }
- }
- public slide_to_end() {
- new stopflag;
- new id;
- new Float:duration;
- stopflag = get_int(g_stopslide);
- if (stopflag == 1) return;
- duration = get_float(g_duration);
- id = anim(duration, "slide_to_end_anim", 1);
- set_int(g_anim_id, id);
- }
- public slide_to_begin_anim(val, Float:pos) {
- new stopflag;
- new id;
- stopflag = get_int(g_stopslide);
- if (stopflag == 1) return;
- set_tween_state(PART:"elm.text", pos, "slide_end", 0.0, "slide_begin", 0.0);
- if (pos >= 1.0) {
- id = timer(0.5, "slide_to_end", 1);
- set_int(g_timer_id, id);
- }
- }
- public slide_to_begin() {
- new stopflag;
- new id;
- new Float:duration;
- stopflag = get_int(g_stopslide);
- if (stopflag == 1) return;
- duration = get_float(g_duration);
- id = anim(duration, "slide_to_begin_anim", 1);
- set_int(g_anim_id, id);
- }
- public start_slide() {
- set_int(g_stopslide, 0);
- set_state(PART:"elm.text", "slide_begin", 0.0);
- slide_to_end();
- }
- public stop_slide() {
- new id;
- set_int(g_stopslide, 1);
- id = get_int(g_anim_id);
- cancel_anim(id);
- id = get_int(g_timer_id);
- cancel_timer(id);
- set_state(PART:"elm.text", "default", 0.0);
- }
- }
- parts {
- rect { "bg";
- desc { "default";
- color_class: "label/slide_bounce/bg";
- }
- }
- textblock { "elm.text";
- scale;
- clip: "clipper";
- desc { "default";
- align: 0.0 0.0;
- text {
- style: "textblock_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- desc { "slide_end";
- inherit: "default";
- rel1.relative: 1.0 0.0;
- align: 1.0 0.0;
- text.min: 1 1;
- }
- desc { "slide_begin";
- inherit: "default";
- rel2.relative: 0.0 1.0;
- text.min: 1 1;
- }
- }
- }
- programs {
- program { "on_start_slide";
- script {
- start_slide();
- }
- }
- program { "on_stop_slide";
- script {
- stop_slide();
- }
- }
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-group { "elm/layout/background/default";
- parts {
- rect { "bg";
- scale;
- desc { "default";
- color_class: "layout/background/bg";
- }
- }
- swallow { "elm.swallow.content";
- scale;
- desc { "default"; }
- }
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-#define STYLE_TAGS \
- tag: "br" "\n";\
- tag: "ps" "ps";\
- tag: "tab" "\t";\
- tag: "b" "+ font_weight=Bold";
-
-styles{
- style { name: "radio_default";
- base: "color=#000000FF font=Tizen:weight=Light font_size=40 text_class=tizen ellipsis=1.0";
- STYLE_TAGS
- }
- style { name: "radio_default_dim";
- base: "color=#000000A3 font=Tizen:weight=Light font_size=40 text_class=tizen ellipsis=1.0";
- STYLE_TAGS
- }
- style { name: "radio_default_press";
- base: "color=#000000FF font=Tizen:weight=Light font_size=40 text_class=tizen ellipsis=1.0";
- STYLE_TAGS
- }
-}
-#undef STYLE_TAGS
-
-group { "elm/radio/event/default";
- inherit_only: 1;
- parts {
- rect { "event";
- mouse;
- desc { "default";
- color: 0 0 0 0 ;
- rel.to: "base";
- }
- desc { "disabled";
- inherit: "default";
- hid;
- }
- }
- }
- programs {
- program { "clicked";
- signal: "mouse,clicked,1";
- source: "event";
- action: SIGNAL_EMIT "elm,action,click" "";
- after: "on_clicked";
- }
- program { "pressed";
- signal: "mouse,down,1*";
- source: "event";
- action: SIGNAL_EMIT "elm,action,press" "";
- after: "on_pressed";
- }
- program { "unpressed";
- signal: "mouse,up,1";
- source: "event";
- action: SIGNAL_EMIT "elm,action,unpress" "";
- after: "on_unpressed";
- }
- program { "set_radio";
- signal: "elm,state,radio,on";
- source: "elm";
- after: "on_set_radio";
- }
- program { "unset_radio";
- signal: "elm,state,radio,off";
- source: "elm";
- after: "on_unset_radio";
- }
- program { "disabled";
- signal: "elm,state,disabled";
- source: "elm";
- after: "on_disabled";
- }
- program { "enabled";
- signal: "elm,state,enabled";
- source: "elm";
- after: "on_enabled";
- }
- program { "enable_event_pass";
- signal: "elm,event,pass,enabled";
- source: "elm";
- script {
- set_mouse_events(PART:"event", 0);
- }
- }
- program { "disable_event_pass";
- signal: "elm,event,pass,disabled";
- source: "elm";
- script {
- set_mouse_events(PART:"event", 1);
- }
- }
- program { "enable_event_repeat";
- signal: "elm,event,repeat,enabled";
- source: "elm";
- script {
- set_repeat_events(PART:"event", 1);
- }
- }
- program { "disable_event_repeat";
- signal: "elm,event,repeat,disabled";
- source: "elm";
- script {
- set_repeat_events(PART:"event", 0);
- }
- }
- }
-}
-group { "elm/radio/base/template";
- parts {
- spacer { "base";
- desc { "default";
- }
- }
- }
- inherit: "elm/radio/event/default";
- programs {
- program { "on_clicked";
- }
- program { "on_pressed";
- }
- program { "on_unpressed";
- }
- program { "on_disabled";
- }
- program { "on_enabled";
- }
- program { "on_set_radio";
- }
- program { "on_unset_radio";
- }
- }
-}
-group { "elm/radio/base/default";
- images{
- vector: core_radio_stroke.svg;
- vector: core_radio_icon.svg;
- vector: core_radio_bg_01.svg;
- vector: core_radio_bg_02.svg;
- vector: core_radio_white_bg.svg;
- }
- nomouse;
- target_group: "vector_group" "clipper_bg_vector" "clipper_icon" "clipper_icon_inner" "clipper_icon_outer" "clipper_icon_stroke";
- parts {
- spacer { "base";
- scale;
- desc { "default";
- min: RADIO_DEFAULT_SIZE_INC;
- }
- }
- //bg shape
- vector { "bg_vector";
- scale;
- clip: "clipper_bg_vector";
- desc { "default";
- image.normal: "core_radio_white_bg.svg";
- min: RADIO_DEFAULT_SIZE_INC;
- rel1.relative: 0 0.5;
- rel2.relative: 0 0.5;
- align: 0 0.5;
- fixed: 1 1;
- }
- }
- rect { "clipper_bg_vector";
- desc { "default";
- color_class: "radio/default/bg";
- }
- desc { "on";
- color_class: "radio/default/bg_border_on";
- }
- desc { "off";
- inherit: "default";
- }
- desc { "disabled_on";
- color_class: "radio/default/bg_border_on_disabled";
- }
- desc { "disabled_off";
- color_class: "radio/default/bg_disabled";
- }
- }
- vector { "icon";
- scale;
- clip: "clipper_icon";
- desc { "default";
- image.normal: "core_radio_icon.svg";
- rel1.to: "bg_vector";
- rel2.to: "bg_vector";
- }
- }
- rect { "clipper_icon";
- desc { "default";
- color: 250 250 250 0;
- }
- desc { "on";
- color_class: "radio/default/bg_on" ;
- }
- desc { "off";
- inherit: "default";
- }
- desc { "disabled_off";
- inherit: "default";
- }
- desc { "disabled_on";
- color_class: "radio/default/bg_on_disabled" ;
- }
- }
- vector { "icon_inner";
- scale;
- clip: "clipper_icon_inner";
- desc { "default";
- image.normal: "core_radio_bg_01.svg";
- rel.to: "bg_vector";
- }
- }
- rect { "clipper_icon_inner";
- desc { "default";
- rel1.relative: 0.5 0.5;
- rel2.relative: 0.5 0.5;
- rel.to: "bg_vector";
- }
- desc { "on";
- rel.to: "bg_vector";
- color_class: "radio/default/icon";
- }
- desc { "off";
- inherit: "default";
- }
- desc { "disabled_off";
- inherit: "default";
- }
- desc { "disabled_on";
- rel.to: "bg_vector";
- color_class: "radio/default/icon_disabled";
- }
- }
- vector { "icon_outer";
- scale;
- clip: "clipper_icon_outer";
- desc { "default";
- image.normal: "core_radio_bg_02.svg";
- rel1.to: "bg_vector";
- rel2.to: "bg_vector";
- }
- }
- rect { "clipper_icon_outer";
- desc { "default";
- color: 61 185 204 0;
- }
- desc { "on";
- color_class: "radio/default/icon";
- }
- desc { "off";
- inherit: "default";
- }
- desc { "disabled_off";
- inherit: "default";
- }
- desc { "disabled_on";
- color_class: "radio/default/icon_disabled";
- }
- }
- vector { "icon_stroke";
- scale;
- clip: "clipper_icon_stroke";
- desc { "default";
- image.normal: "core_radio_stroke.svg";
- rel1.to: "bg_vector";
- rel2.to: "bg_vector";
- }
- }
- rect { "clipper_icon_stroke";
- desc { "default";
- color_class: "radio/default/stroke";
- }
- desc { "on";
- color: 61 185 204 0;
- }
- desc { "off";
- inherit: "default";
- }
- desc { "disabled_off";
- color_class: "radio/default/stroke_disabled";
- }
- desc { "disabled_on";
- inherit: "on";
- }
- }
- spacer { "padding_before_text";
- scale;
- desc { "default";
- align: 0.0 0.5;
- min: 0 0;
- rel1 {
- to: "bg_vector";
- relative: 1.0 0.0;
- }
- rel2 {
- to: "bg_vector";
- relative: 1.0 1.0;
- }
- }
- desc { "visible";
- inherit: "default" 0.0;
- min: RADIO_PAD_BEFORE_TEXT_INC;
- fixed: 1 1;
- }
- }
- textblock { "elm.text";
- scale;
- desc { "default";
- hid;
- fixed: 0 1;
- rel1 {
- relative: 1.0 0.5;
- to_x: "padding_before_text";
- }
- rel2 {
- relative: 1.0 0.5;
- }
- align: 0.0 0.5;
- text {
- style: "radio_default";
- min: 0 0;
- }
- }
- desc { "visible";
- inherit: "default" 0.0;
- vis;
- text.min: 0 1;
- }
- desc { "disabled";
- inherit: "default" 0.0;
- vis;
- text {
- style: "radio_default_dim";
- min: 0 1;
- }
- }
- desc { "pressed";
- inherit: "default" 0.0;
- vis;
- text {
- style: "radio_default_press";
- min: 0 1;
- }
- }
- }
- }
- inherit: "elm/radio/event/default";
- script {
- public radio_state;
- public disabled;
- public text;
- public animate = 0;
- }
- programs {
- program { "on_clicked";
- script {
- if (get_int(disabled) == 1) return;
- emit("elm,action,radio,toggle", "");
- run_program(PROGRAM:"touch_sound");
- }
- }
- program { "on_pressed";
- script {
- if (get_int(disabled) == 1) return;
- if (get_int(text) == 1) {
- set_state(PART:"elm.text", "pressed", 0.0);
- }
- }
- }
- program { "on_unpressed";
- script {
- if (get_int(disabled) == 1) return;
- if (get_int(radio_state) == 1) {
- run_program(PROGRAM:"toggle_on_without_effect");
- }else {
- run_program(PROGRAM:"toggle_off_without_effect");
- }
- if (get_int(text) == 1) {
- set_state(PART:"elm.text", "visible", 0.0);
- }
- }
- }
- program { "on_disabled";
- script {
- set_int(disabled, 1);
- if (get_int(radio_state) == 1) {
- run_program(PROGRAM:"toggle_disabled_on_without_effect");
- }else {
- run_program(PROGRAM:"toggle_disabled_off_without_effect");
- }
- if (get_int(text) == 1) {
- set_state(PART:"elm.text", "disabled", 0.0);
- }
- }
- }
- program { "on_enabled";
- script {
- set_int(disabled, 0);
- if (get_int(radio_state) == 1) {
- run_program(PROGRAM:"toggle_on_without_effect");
- } else {
- run_program(PROGRAM:"toggle_off_without_effect");
- }
- if (get_int(text) == 1) {
- set_state(PART:"elm.text", "visible", 0.0);
- }
- }
- }
- program { "on_set_radio";
- script {
- if (get_int(disabled) == 1) {
- if (get_int(animate) == 0) {
- run_program(PROGRAM:"toggle_disabled_on_without_effect");
- } else {
- run_program(PROGRAM:"toggle_disabled_on_with_effect");
- }
- }else {
- if (get_int(animate) == 0) {
- run_program(PROGRAM:"toggle_on_without_effect");
- emit("elm,radio,state,toggle", "tizen_vg");
- } else {
- run_program(PROGRAM:"toggle_on_with_effect");
- emit("elm,radio,action,toggle", "tizen_vg");
- }
- }
- set_int(animate, 0);
- set_int(radio_state, 1);
- }
- }
- program { "on_unset_radio";
- script {
- if (get_int(disabled) == 1) {
- if (get_int(animate) == 0) {
- run_program(PROGRAM:"toggle_disabled_off_without_effect");
- } else {
- run_program(PROGRAM:"toggle_disabled_off_with_effect");
- }
- }else {
- if (get_int(animate) == 0) {
- run_program(PROGRAM:"toggle_off_without_effect");
- emit("elm,radio,state,toggle", "tizen_vg");
- } else {
- run_program(PROGRAM:"toggle_off_with_effect");
- emit("elm,radio,action,toggle", "tizen_vg");
- }
- }
- set_int(animate, 0);
- set_int(radio_state, 0);
- }
- }
- program { "touch_sound";
- action: RUN_PLUGIN "touch_sound";
- }
- program { "activate_animate_radio";
- signal: "elm,activate,radio,on";
- source: "elm";
- script {
- set_int(animate, 1);
- }
- }
- program { "deactivate_animate_radio";
- signal: "elm,activate,radio,off";
- source: "elm";
- script {
- set_int(animate, 1);
- }
- }
- program { "toggle_on_with_effect";
- action: STATE_SET "on";
- transition: DECELERATE 0.3;
- target_groups: "vector_group";
- after: "finished_animation";
- }
- program { "toggle_off_with_effect";
- action: STATE_SET "default";
- target_groups: "vector_group";
- transition: DECELERATE 0.3;
- after: "finished_animation";
- }
- program { "toggle_disabled_on_with_effect";
- action: STATE_SET "disabled_on";
- target_groups: "vector_group";
- transition: DECELERATE 0.3;
- after: "finished_animation";
- }
- program { "toggle_disabled_off_with_effect";
- action: STATE_SET "disabled_off";
- target_groups: "vector_group";
- transition: DECELERATE 0.3;
- after: "finished_animation";
- }
- program { "toggle_on_without_effect";
- action: STATE_SET "on";
- target_groups: "vector_group";
- }
- program { "toggle_off_without_effect";
- action: STATE_SET "default";
- target_groups: "vector_group";
- }
- program { "toggle_disabled_on_without_effect";
- action: STATE_SET "disabled_on";
- target_groups: "vector_group";
- }
- program { "toggle_disabled_off_without_effect";
- action: STATE_SET "disabled_off";
- target_groups: "vector_group";
- }
- program { "finished_animation";
- action: SIGNAL_EMIT "animation,finished" "";
- }
- program { "visible_text";
- signal: "elm,state,text,visible";
- source: "elm";
- script {
- set_int(text, 1);
- set_state(PART:"padding_before_text", "visible", 0.0);
- if (get_int(disabled) == 1) {
- set_state(PART:"elm.text", "disabled", 0.0);
- }else {
- set_state(PART:"elm.text", "visible", 0.0);
- }
- }
- }
- program { "hidden_text";
- signal: "elm,state,text,hidden";
- source: "elm";
- script {
- set_int(text, 0);
- set_state(PART:"padding_before_text", "default", 0.0);
- set_state(PART:"elm.text", "default", 0.0);
- }
- }
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-//****************************************************************************//
-// This file defines the width, height (not color!) for each widgets
-// We can define different INC file by Resolution (HD, qHD, WVGA, HVGA)
-//
-// ************* Naming Rule ************ //
-// {WIDGET}_{GROUP}_{PART}_{STATE}_{TYPE}
-// WIDGET: NAVIFRAME, LIST, DATETIME, POPUP, etc.
-// GROUP: INDEX
-// PART: TEXT, ICON, BG, PADDING, DIVIDER, ICON, etc.
-// STATE: LEFT, RIGHT, TOP, BOTTOM, MIN, MAX,
-// TYPE: HEIGHT, WIDTH, SIZE
-// e.g. LIST_PADDING_LEFT_HEIGHT
-//****************************************************************************//
-
-#define BASE_SCALE_INC 2.0
-
-//****************************************************************************//
-// Button
-//****************************************************************************//
-#define BUTTON_DEFAULT_PAD_SIZE 20 70
-#define BUTTON_DEFAULT_MIN_SIZE 196 70
-#define BUTTON_DEFAULT_FONT_SIZE 28
-#define BUTTON_TEXT_PAD_SIZE 20 45
-#define BUTTON_TEXT_MIN_SIZE 147 45
-#define BUTTON_TEXT_FONT_SIZE 28
-#define BUTTON_BORDER 4 4 4 4
-
-#define BUTTON_NAVIFRAME_BACK_BUTTON_SIZE_INC 80 80
-#define BUTTON_NAVIFRAME_BACK_BUTTON_EFFECT_MAX_SIZE_INC 80 80
-#define BUTTON_NAVIFRAME_BACK_CORNER_RADIUS 10
-
-//****************************************************************************//
-// Check
-//****************************************************************************//
-#define CHECK_ONOFF_SIZE_INC 72 72
-#define CHECK_ONOFF_ICON_SIZE_INC 32 32
-#define CHECK_PAD_BEFORE_TEXT_INC 32 0
-
-//****************************************************************************//
-// Genlist
-//****************************************************************************//
-// Tizen 2.4
-#define GENLIST_ITEM_1LINE_HEIGHT_INC 120
-#define GENLIST_ITEM_2LINE_HEIGHT_INC 144
-#define GENLIST_ITEM_LR_PADDING_INC 32
-#define GENLIST_ITEM_TOP_PADDING_INC 23
-#define GENLIST_ITEM_BOTTOM_PADDING_INC 24 // including bottom line
-#define GENLIST_ITEM_TYPE_BA_PADDING_INC 32
-#define GENLIST_ITEM_TYPE_DC_PADDING_INC 32
-#define GENLIST_ITEM_TYPE_AD_PADDING_INC 32
-#define GENLIST_ITEM_MAIN_LINE_HEIGHT_INC 54
-#define GENLIST_ITEM_MAIN_LINE_ICON_TEXT_PADDING_INC 12
-#define GENLIST_ITEM_MAIN_LINE_TEXT_END_PADDING_INC 32
-#define GENLIST_ITEM_SUB_LINE_HEIGHT_INC 43
-#define GENLIST_ITEM_SUB_LINE_TEXT_END_PADDING_INC 32
-#define GENLIST_ITEM_END_TEXT_WIDTH_INC 121
-#define GENLIST_ITEM_GROUP_INDEX_HEIGHT_INC 64
-#define GENLIST_ITEM_GROUP_INDEX_TOP_PADDING_INC 10
-#define GENLIST_ITEM_GROUP_INDEX_BOTTOM_PADDING_INC 11
-#define GENLIST_ITEM_GROUP_INDEX_RIGHT_PADDING_INC 17
-#define GENLIST_ITEM_GROUP_INDEX_END_TEXT_WIDTH_INC 218
-#define GENLIST_ITEM_GROUP_INDEX_EXPAND_TOP_PADDING_INC 12
-#define GENLIST_ITEM_GROUP_INDEX_EXPAND_BOTTOM_PADDING_INC 12
-#define GENLIST_ITEM_GROUP_INDEX_EXPAND_ICON_SIZE_INC 64 64
-#define GENLIST_ITEM_MULTILINE_1LINE_HEIGHT_INC 120
-
-//****************************************************************************//
-// Index
-//****************************************************************************//
-// FastScrol
-#define INDEX_ITEM_WIDTH_INC 42 // 40 + 2(left line)
-#define INDEX_ITEM_HEIGHT_INC 42 // 40 + 2(divider)
-#define INDEX_ITEM_TEXT_WIDTH_INC 40
-#define INDEX_ITEM_TEXT_HEIGHT_INC 40
-#define INDEX_DIVIDER_HEIGHT_INC 2
-#define INDEX_SCROLL_BG_LINE_WIDTH_INC 2
-#define INDEX_TEXT_LEFT_PADDING_SIZE_INC 18
-#define INDEX_TEXT_RIGHT_PADDING_SIZE_INC 18
-#define INDEX_TEXT_BOTTOM_PADDING_SIZE_INC 10
-#define INDEX_PADDING_SIZE_INC 7
-#define INDEX_ITEM_PADDING_SIZE_INC 0
-#define INDEX_SCROLL_TEXT1_DEFAULT_SIZE_INC 132 158
-
-// Page Control
-#define INDEX_PAGECONTROL_IND_INC 42 40
-#define INDEX_PAGECONTROL_IND_MIN_INC 40 40
-
-//****************************************************************************//
-// Naviframe
-//****************************************************************************//
-#define NAVIFRAME_BG_PORTRAIT_HEIGHT_INC 1280
-#define NAVIFRAME_BG_LANDSCAPE_HEIGHT_INC 720
-#define NAVIFRAME_TITLE_HEIGHT_INC 110
-#define NAVIFRAME_SUBTITLE_HEIGHT_INC 38
-#define NAVIFRAME_TITLE_TOP_PADDING_HEIGHT_INC 3
-#define NAVIFRAME_SUBTITLE_BOTTOM_PADDING_HEIGHT_INC 3
-#define NAVIFRAME_TITLE_LEFT_PADDING_WIDTH_INC 32
-#define NAVIFRAME_TITLE_RIGHT_PADDING_WIDTH_INC 32
-#define NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC 176 110
-#define NAVIFRAME_BADGE_ICON_LEFT_PADDING_WIDTH_INC 22
-#define NAVIFRAME_BADGE_TEXT_LEFT_PADDING_WIDTH_INC 22
-#define NAVIFRAME_BADGE_HEIGHT_INC 48
-#define NAVIFRAME_BADGE2_PADDING_WIDTH_INC (NAVIFRAME_BADGE_ICON_LEFT_PADDING_WIDTH_INC + NAVIFRAME_BADGE_TEXT_LEFT_PADDING_WIDTH_INC + NAVIFRAME_BADGE_TEXT_LEFT_PADDING_WIDTH_INC)
-#define NAVIFRAME_TOOLBAR_HEIGHT_INC 152
-#define NAVIFRAME_TOOLBAR_COLOR_INC 250 250 250 255
-#define NAVIFRAME_BACK_BUTTON_LR_PADDING_WIDTH_INC 10
-#define NAVIFRAME_BACK_BUTTON_TITLE_RIGHT_PADDING_WIDTH_INC 90
-#define NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC 50
-#define NAVIFRAME_SUBTITLE_VISIBLE_TEXT_FONT_SIZE_INC 42
-#define NAVIFRAME_VISIBLE_TEXT_FONT_SIZE_INC 28
-#define NAVIFRAME_TITLE_TEXT_FONT_RANGE_INC 36 50
-#define NAVIFRAME_SUBTITLE_VISIBLE_TEXT_FONT_RANGE_INC 36 42
-
-#define BUTTON_NAVIFRAME_BACK_BUTTON_SIZE_INC 80 80
-
-//****************************************************************************//
-// Progressbar
-//****************************************************************************//
-#define PROGRESSBAR_LARGE_SIZE_INC 102 102
-#define PROGRESSBAR_MEDIUM_SIZE_INC 56 54
-#define PROGRESSBAR_SMALL_SIZE_INC 44 44
-
-//****************************************************************************//
-// SPINNER
-//****************************************************************************//
-#define SPINNER_LEFT_RIGHT_ARROW_IMAGE_SIZE_INC 80 146
-#define SPINNER_LEFT_RIGHT_BG_IMAGE_SIZE_INC 80 146
-#define SPINNER_LEFT_RIGHT_EFFECT_MIN_SIZE_INC 56 102
-#define SPINNER_VERTICAL_DATE_PICKER_TEXT_BUTTON_SIZE_INC 206 188
-#define SPINNER_TEXT_HEIGHT_INC 146
-#define SPINNER_BUTTON_CORNER_RADIUS 10
-
-//****************************************************************************//
-// Tabbar
-//****************************************************************************//
-#define TABBAR_COMMON_SLIDE_START_DELAY_SEC 0.8
-#define TABBAR_COMMON_SLIDE_INTER_DELAY_SEC 0.8
-#define TABBAR_COMMON_SLIDE_SPEED_WEIGHT 0.5
-#define TABBAR_COMMON_SLIDE_TEXT_GAP 60
-#define TABBAR_COMMON_SLIDE_TEXT_CHAR_GAP " " //60 (6 spaces)
-#define TABBAR_COMMON_SLIDE_TEXT_MAX_LENGTH (2*(256+6))
-
-#define TABBAR_COMMON_DEFAULT_ITEM_SIZE_INC 90 64;
-#define TABBAR_COMMON_LANDSCAPE_DEFAULT_ITEM_SIZE_INC 160 64;
-#define TABBAR_COMMON_SCROLL_ITEM_SIZE_INC 210 64;
-#define TABBAR_COMMON_LANDSCAPE_SCROLL_ITEM_SIZE_INC 270 64;
-#define TABBAR_COMMON_SELECTED_LINE_HEIGHT_INC 4
-#define TABBAR_COMMON_SELECTED_LINE_TOP_PADDING_SIZE_INC 0 3
-#define TABBAR_COMMON_SELECTED_LINE_SELECT_ANIM_TIME_INC 0.33
-#define TABBAR_COMMON_SELECTED_LINE_UNSELECT_ANIM_TIME_INC 0.33
-#define TABBAR_COMMON_BADGE_TOP_RIGHT_PADDING_SIZE_INC 14 2
-
-#define TABBAR_DEFAULT_TEXT_LEFT_TOP_PADDING_SIZE_INC 8 0
-#define TABBAR_DEFAULT_TEXT_RIGHT_BOTTOM_PADDING_SIZE_INC 8 9+4+3
-#define TABBAR_DEFAULT_ICON_TEXT_LEFT_TOP_PADDING_SIZE_INC 8 2
-#define TABBAR_DEFAULT_ICON_TEXT_RIGHT_BOTTOM_PADDING_SIZE_INC 8 4+3
-#define TABBAR_DEFAULT_ICON_TEXT_LAND_LEFT_TOP_PADDING_SIZE_INC 8+50+16 0
-#define TABBAR_DEFAULT_ICON_TEXT_LAND_RIGHT_BOTTOM_PADDING_SIZE_INC 8 9+4+3
-#define TABBAR_DEFAULT_ICON_SIZE_INC 60 60
-#define TABBAR_DEFAULT_ICON_LAND_SIZE_INC 50 50
-#define TABBAR_DEFAULT_ICON_BOTTOM_PADDING_SIZE_INC 0 3+42
-#define TABBAR_DEFAULT_TEXT_TOP_PADDING_SIZE_INC 0 60+3
-#define TABBAR_DEFAULT_TEXT_LEFT_PADDING_SIZE_INC 16 0
-#define TABBAR_DEFAULT_TEXT_SIZE_INC 0 52
-#define TABBAR_DEFAULT_ICON_TEXT_SIZE_INC 0 42
-#define TABBAR_DEFAULT_ICON_LAND_TEXT_SIZE_INC 0 52
-
-#define TABBAR_TITLE_TEXT_SIZE_INC 0 52
-#define TABBAR_TITLE_TEXT_LEFT_TOP_PADDING_SIZE_INC 8 0
-#define TABBAR_TITLE_TEXT_RIGHT_BOTTOM_PADDING_SIZE_INC 8 0
-#define TABBAR_TITLE_ICON_TEXT_LAND_LEFT_TOP_PADDING_SIZE_INC 8+50+9 0
-#define TABBAR_TITLE_ICON_TEXT_LAND_RIGHT_BOTTOM_PADDING_SIZE_INC 8 3+4
-#define TABBAR_TITLE_ICON_SIZE_INC 50 50
-#define TABBAR_TITLE_TEXT_LEFT_PADDING_SIZE_INC 9 0
-
-#define TABBAR_LIGHT_VIEW_TEXT_SIZE_INC 0 43
-#define TABBAR_LIGHT_VIEW_TEXT_LEFT_TOP_PADDING_SIZE_INC 8 0
-#define TABBAR_LIGHT_VIEW_TEXT_RIGHT_BOTTOM_PADDING_SIZE_INC 8 11
-#define TABBAR_LIGHT_VIEW_SELECTED_LINE_TOP_PADDING_SIZE_INC 0 4
-
-//Navigation style
-#define TOOLBAR_NAVI_HEIGHT_INC 70
-#define TOOLBAR_NAVI_PADDING_INC 32
-#define TOOLBAR_NAVI_ICON_ARROW_WIDTH_INC 60
-#define TOOLBAR_NAVI_ICON_ARROW_HEIGHT_INC 70
-#define TOOLBAR_NAVI_DIVIDER_HEIGHT_INC 2
-
-#define STYLE_TAGS \
- tag: "br" "\n";\
- tag: "ps" "ps";\
- tag: "tab" "\t";\
- tag: "b" "+ font_weight=Bold";
-
-#define STYLE_TAG_MATCH \
- tag: "match" "+ color=#3db8cc";
-
-styles {
- style { name: "button_default";
- base: "align=center color=#ffffffff font="FONT_M" font_size="BUTTON_TEXT_FONT_SIZE" text_class=button ellipsis=1.0 color_class=button/default/text";
- STYLE_TAGS
- }
- style { name: "button_default_focused";
- base: "align=center color=#ffffffff font="FONT_M" font_size="BUTTON_TEXT_FONT_SIZE" text_class=button ellipsis=1.0 color_class=button/default/text_focused";
- STYLE_TAGS
- }
- style { name: "button_default_disabled";
- base: "align=center color=#ffffffff font="FONT_M" font_size="BUTTON_TEXT_FONT_SIZE" text_class=button ellipsis=1.0 color_class=button/default/text_disabled";
- STYLE_TAGS
- }
- style { name: "button_ampm";
- base: "align=center color=#ffffffff font=Tizen:style=Light font_size=40 text_class=tizen";
- STYLE_TAGS
- }
- style { name: "button_ampm_dim";
- base: "align=center color=#ffffffff font=Tizen:style=Light font_size=40 text_class=tizen";
- STYLE_TAGS
- }
- style { name: "button_ampm_press";
- base: "align=center color=#ffffffff font=Tizen:style=Light font_size=40 text_class=tizen";
- STYLE_TAGS
- }
-
- style { name: "check_on&off";
- base: "color=#FFF color_class=check/on&off/text font=Tizen:weight=Light font_size=40 text_class=tizen ellipsis=1.0";
- STYLE_TAGS
- }
- style { name: "check_on&off_dim";
- base: "color=#FFF color_class=check/on&off/text_disabled font=Tizen:weight=Light font_size=40 text_class=tizen ellipsis=1.0";
- STYLE_TAGS
- }
- style { name: "check_on&off_press";
- base: "color=#FFF color_class=check/on&off/text_pressed font=Tizen:weight=Light font_size=40 text_class=tizen ellipsis=1.0";
- STYLE_TAGS
- }
- style { name: "list_group_index_text";
- base: "color=#ffffff color_class=genlist_item/group_index/text font="FONT_M" font_size=30 text_class=list_item align=left";
- STYLE_TAGS
- STYLE_TAG_MATCH
- }
- style { name: "list_group_index_text_focused";
- base: "color=#ffffff color_class=genlist_item/group_index/text_focused font="FONT_M" font_size=30 text_class=list_item align=left";
- STYLE_TAGS
- STYLE_TAG_MATCH
- }
- style { name: "list_group_index_text_disabled";
- base: "color=#ffffff color_class=genlist_item/group_index/text_disabled font="FONT_M" font_size=30 text_class=list_item align=left";
- STYLE_TAGS
- STYLE_TAG_MATCH
- }
- style { name: "list_group_index_text_end";
- base: "color=#ffffff color_class=genlist_item/group_index/text_end font="FONT_M" font_size=30 text_class=list_item align=right";
- STYLE_TAGS
- STYLE_TAG_MATCH
- }
- style { name: "list_group_index_text_end_focused";
- base: "color=#ffffff color_class=genlist_item/group_index/text_end_focused font="FONT_M" font_size=30 text_class=list_item align=right";
- STYLE_TAGS
- STYLE_TAG_MATCH
- }
- style { name: "list_group_index_text_end_disabled";
- base: "color=#ffffff color_class=genlist_item/group_index/text_end_disabled font="FONT_M" font_size=30 text_class=list_item align=right";
- STYLE_TAGS
- STYLE_TAG_MATCH
- }
- // ************* list double_label ********** //
- style { name: "list_double_label_text";
- base: "color=#ffffff color_class=genlist_item/double_label/text font=Tizen:weight=Light font_size=40 text_class=list_item ellipsis=1.0";
- STYLE_TAGS
- STYLE_TAG_MATCH
- }
- style { name: "list_double_label_text_pressed";
- base: "color=#ffffff color_class=genlist_item/double_label/text_pressed font=Tizen:weight=Light font_size=40 text_class=list_item ellipsis=1.0";
- STYLE_TAGS
- STYLE_TAG_MATCH
- }
- style { name: "list_double_label_text_disabled";
- base: "color=#ffffff color_class=genlist_item/double_label/text_disabled font=Tizen:weight=Light font_size=40 text_class=list_item ellipsis=1.0";
- STYLE_TAGS
- STYLE_TAG_MATCH
- }
- style { name: "list_double_label_text_sub";
- base: "color=#ffffff color_class=genlist_item/double_label/text_sub font=Tizen:weight=Normal font_size=30 text_class=tizen ellipsis=1.0 align=left";
- STYLE_TAGS
- STYLE_TAG_MATCH
- }
- style { name: "list_double_label_text_sub_pressed";
- base: "color=#ffffff color_class=genlist_item/double_label/text_sub_pressed font=Tizen:weight=Normal font_size=30 text_class=tizen ellipsis=1.0 align=left";
- STYLE_TAGS
- STYLE_TAG_MATCH
- }
- style { name: "list_double_label_text_sub_disabled";
- base: "color=#ffffff color_class=genlist_item/double_label/text_sub_disabled font=Tizen:weight=Normal font_size=30 text_class=tizen ellipsis=1.0 align=left";
- STYLE_TAGS
- STYLE_TAG_MATCH
- }
-}
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
-<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
- width="72px" height="72px" viewBox="0 0 72 72" enable-background="new 0 0 72 72" xml:space="preserve">
-<path fill="#FFFFFF" d="M36,72C16.117,72,0,55.883,0,35.998C-0.001,16.117,16.117,0,36,0s36,16.117,36,36S55.883,72,36,72z"/>
-</svg>
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
-<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
- width="72px" height="72px" viewBox="0 0 72 72" enable-background="new 0 0 72 72" xml:space="preserve">
-<path fill="#FFFFFF" d="M36,72C16.118,72,0,55.883,0,35.998C0,16.117,16.118,0,36,0s36,16.117,36,36S55.883,72,36,72z"/>
-</svg>
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
-<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
- width="72px" height="72px" viewBox="0 0 72 72" enable-background="new 0 0 72 72" xml:space="preserve">
-<path fill="#FFFFFF" d="M36,52c-8.822,0-16-7.178-16-16s7.178-16,16-16s16,7.178,16,16S44.822,52,36,52z M36,24
- c-6.617,0-12,5.383-12,12c0,6.617,5.383,12,12,12c6.617,0,12-5.383,12-12C48,29.383,42.617,24,36,24z"/>
-</svg>
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
-<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
- width="72px" height="72px" viewBox="0 0 72 72" enable-background="new 0 0 72 72" xml:space="preserve">
-<path fill="#FFFFFF" d="M36,52c-1.104,0-2-0.896-2-2V22c0-1.104,0.896-2,2-2s2,0.896,2,2v28C38,51.104,37.104,52,36,52z"/>
-</svg>
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
-<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
- width="10px" height="10px" viewBox="0 0 10 10" enable-background="new 0 0 10 10" xml:space="preserve">
-<path fill="#FFFFFF" d="M-0.001,0c0,5.523,4.478,10,10,10V0H-0.001z"/>
-</svg>
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
-<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
- width="10px" height="10px" viewBox="0 0 10 10" enable-background="new 0 0 10 10" xml:space="preserve">
-<path fill="#FFFFFF" d="M0,10c5.523,0,10-4.478,10-10H0V10z"/>
-</svg>
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
-<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
- width="10px" height="10px" viewBox="0 0 10 10" enable-background="new 0 0 10 10" preserveAspectRatio="none" xml:space="preserve">
-<rect fill="#FFFFFF" width="10" height="10"/>
-</svg>
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
-<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
- width="10px" height="10px" viewBox="0 0 10 10" enable-background="new 0 0 10 10" xml:space="preserve">
-<path fill="#FFFFFF" d="M10,0C4.477,0,0,4.478,0,10h10V0z"/>
-</svg>
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
-<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
- width="10px" height="10px" viewBox="0 0 10 10" enable-background="new 0 0 10 10" xml:space="preserve">
-<path fill="#FFFFFF" d="M10,10C10,4.477,5.522,0,0,0v10H10z"/>
-</svg>
+++ /dev/null
-color_classes {
- /*
- * Button
- */
- color_class { "button/default/bg";
- color: 204 204 204 255;
- }
- color_class { "button/default/bg_focused";
- color: 69 143 255 255;
- color2: 69 143 255 255;
- color3: 69 143 255 255;
- }
- color_class { "button/default/bg_disabled";
- color: 69 143 255 102;
- color2: 69 143 255 102;
- color3: 69 143 255 102;
- }
- color_class { "button/default/text";
- color: 89 89 89 255;
- }
- color_class { "button/default/text_focused";
- color: 255 255 255 255;
- }
- color_class { "button/default/text_disabled";
- color: 89 89 89 102;
- }
- color_class { "button/naviframe/back_btn/bg";
- color: 0 0 0 0;
- }
- color_class { "button/naviframe/back_btn/bg_pressed";
- color: 0 0 0 0;
- }
- color_class { "button/naviframe/back_btn/bg_disabled";
- color: 0 0 0 0;
- }
- color_class { "button/naviframe/back_btn/effect";
- color: 0 0 0 77;
- }
- color_class { "button/naviframe/back_btn/icon";
- color: 250 250 250 255;
- }
- color_class { "button/naviframe/back_btn/icon_pressed";
- color: 34 104 115 255;
- }
- color_class { "button/naviframe/back_btn/icon_disabled";
- color: 250 250 250 77;
- }
- /*
- * Check
- */
- color_class { "check/default/bg";
- color: 0 0 0 0;
- }
- color_class { "check/default/bg_disabled";
- color: 0 0 0 0;
- }
- color_class { "check/default/bg_on";
- color: 0 0 0 0;
- }
- color_class { "check/default/bg_on_disabled";
- color: 0 0 0 0;
- }
- color_class { "check/default/text";
- color: 0 0 0 255;
- }
- color_class { "check/default/text_disabled";
- color: 0 0 0 128;
- color3: 0 0 0 0;
- }
- color_class {"check/on&off/bg_on";
- color: 89 176 58 255;
- }
- color_class {"check/on&off/bg";
- color: 0 0 0 108;
- }
- color_class {"check/on&off/bg_disabled";
- color: 0 0 0 38;
- }
- color_class {"check/on&off/icon";
- color: 250 250 250 255;
- }
- color_class {"check/on&off/icon_on";
- color: 250 250 250 255;
- }
- color_class {"check/on&off/text";
- color: 0 0 0 255;
- }
- color_class {"check/on&off/text_pressed";
- color: 0 0 0 255;
- }
- color_class {"check/on&off/text_disabled";
- color: 0 0 0 163;
- }
- color_class {"check/toggle/bg_on";
- color: 89 176 58 255;
- }
- color_class {"check/toggle/bg";
- color: 0 0 0 108;
- }
- color_class {"check/toggle/bg_disabled";
- color: 0 0 0 38;
- }
- color_class {"check/toggle/icon";
- color: 250 250 250 255;
- }
- color_class {"check/toggle/icon_on";
- color: 250 250 250 255;
- }
- color_class {"check/toggle/text";
- color: 0 0 0 255;
- }
- color_class {"check/toggle/text_pressed";
- color: 0 0 0 255;
- }
- color_class {"check/toggle/text_disabled";
- color: 0 0 0 163;
- }
-
- /*
- * Ctxpopup
- */
- color_class { "ctxpopup/default/bg";
- color: 0 0 0 0;
- }
- color_class { "ctxpopup_item/default/effect";
- color: 61 185 204 77;
- }
- color_class { "ctxpopup_item/default/divider";
- color: 222 222 222 255;
- }
- color_class { "ctxpopup_item/default/text";
- color: 89 89 89 255;
- }
- color_class { "ctxpopup_item/default/text_focused";
- color: 255 255 255 255;
- }
- color_class { "ctxpopup_item/default/text_disabled";
- color: 0 0 0 255;
- }
- /*
- * Datetime
- */
- color_class { "datetime/default/bg";
- color: 250 250 250 255;
- }
- color_class { "datetime/date_layout/bg";
- color: 250 250 250 255;
- }
- color_class { "datetime/time_layout/bg";
- color: 250 250 250 255;
- }
- color_class { "datetime/time_layout_24hr/bg";
- color: 250 250 250 255;
- }
- /*
- * Entry
- */
- color_class { "entry/default/text_edit";
- color: 204 204 204 255;
- }
- color_class { "entry/default/text_edit_focused";
- color: 61 61 61 255;
- }
- color_class { "entry/default/text_edit_disabled";
- color: 145 145 145 255;
- }
- color_class { "entry/default/text_edit_guide";
- color: 127 127 127 255;
- }
- /*
- * Gengrid
- */
- color_class { "gengrid/default/bg";
- color: 255 255 255 0;
- }
- color_class { "gengrid_item/default/bg";
- color: 0 0 0 179;
- }
- color_class { "gengrid_item/default/effect";
- color: 147 170 0 255;
- }
- /*
- * Genlist
- */
- color_class { "genlist/default/bg";
- color: 255 255 255 0;
- }
- color_class { "genlist_item/default/bg";
- color: 255 255 255 255;
- }
- color_class { "genlist_item/default/bg_selected";
- color: 69 143 255 255;
- }
- color_class { "genlist_item/default/bg_focused";
- color: 69 143 255 255;
- }
- color_class { "genlist_item/default/bottomline";
- color: 222 222 222 222;
- }
- color_class { "genlist_item/full/bg";
- color: 255 255 255 255;
- }
- color_class { "genlist_item/full/bg_selected";
- color: 69 143 255 255;
- }
- color_class { "genlist_item/full/bg_focused";
- color: 69 143 255 255;
- }
- color_class { "genlist_item/full/bottomline";
- color: 222 222 222 222;
- }
- color_class { "genlist_item/group_index/bg";
- color: 42 50 64 255;
- }
- color_class { "genlist_item/group_index/bg_selected";
- color: 69 143 255 255;
- }
- color_class { "genlist_item/group_index/bg_focused";
- color: 69 143 255 255;
- }
- color_class { "genlist_item/group_index/text";
- color: 255 255 255 204;
- }
- color_class { "genlist_item/group_index/text_focused";
- color: 255 255 255 255;
- }
- color_class { "genlist_item/group_index/text_disabled";
- color: 50 50 50 255;
- }
- color_class { "genlist_item/group_index/text_end";
- color: 255 255 255 204;
- }
- color_class { "genlist_item/group_index/text_end_focused";
- color: 255 255 255 255;
- }
- color_class { "genlist_item/group_index/text_end_disabled";
- color: 50 50 50 255;
- }
- color_class { "genlist_item/group_index/bottomline";
- color: 222 222 222 222;
- }
- // Genlist-Type1
- color_class { "genlist_item/type1/bg";
- color: 0 0 0 0;
- }
- color_class { "genlist_item/type1/bg_pressed";
- color: 0 0 0 10;
- }
- color_class { "genlist_item/type1/bg_disabled";
- color: 0 0 0 0;
- }
- color_class { "genlist_item/type1/text";
- color: 0 0 0 255;
- }
- color_class { "genlist_item/type1/text_pressed";
- color: 0 0 0 255;
- }
- color_class { "genlist_item/type1/text_disabled";
- color: 0 0 0 163;
- }
- color_class { "genlist_item/type1/text_sub";
- color: 115 115 115 255;
- }
- color_class { "genlist_item/type1/text_sub_pressed";
- color: 115 115 115 255;
- }
- color_class { "genlist_item/type1/text_sub_disabled";
- color: 115 115 115 163;
- }
- color_class { "genlist_item/type1/text_end";
- color: 115 115 115 255;
- }
- color_class { "genlist_item/type1/text_end_pressed";
- color: 115 115 115 255;
- }
- color_class { "genlist_item/type1/text_end_disabled";
- color: 115 115 115 163;
- }
- color_class { "genlist_item/type1/text_sub_end";
- color: 115 115 115 255;
- }
- color_class { "genlist_item/type1/text_sub_end_pressed";
- color: 115 115 115 255;
- }
- color_class { "genlist_item/type1/text_sub_end_disabled";
- color: 115 115 115 163;
- }
- color_class { "genlist_item/type1/bottomline";
- color: 204 204 204 255;
- }
- // Genlist-Double_Label
- color_class { "genlist_item/double_label/bg";
- color: 0 0 0 0;
- }
- color_class { "genlist_item/double_label/bg_pressed";
- color: 0 0 0 10;
- }
- color_class { "genlist_item/double_label/bg_disabled";
- color: 0 0 0 0;
- }
- color_class { "genlist_item/double_label/text";
- color: 7 7 7 255;
- }
- color_class { "genlist_item/double_label/text_pressed";
- color: 7 7 7 255;
- }
- color_class { "genlist_item/double_label/text_disabled";
- color: 7 7 7 255;
- }
- color_class { "genlist_item/double_label/text_sub";
- color: 115 115 115 255;
- }
- color_class { "genlist_item/double_label/text_sub_pressed";
- color: 115 115 115 255;
- }
- color_class { "genlist_item/double_label/text_sub_disabled";
- color: 115 115 115 163;
- }
- color_class { "genlist_item/double_label/bottomline";
- color: 204 204 204 255;
- }
- color_class { "genlist_item/end_icon/bg";
- color: 255 255 255 255;
- }
- color_class { "genlist_item/end_icon/bg_selected";
- color: 69 143 255 255;
- }
- color_class { "genlist_item/end_icon/bg_focused";
- color: 69 143 255 255;
- }
- color_class { "genlist_item/end_icon/bottomline";
- color: 222 222 222 222;
- }
-
- /*
- * Hoversel
- */
- color_class { "hoversel/default/bg";
- color: 0 0 0 76;
- }
- color_class { "hoversel/default/bg_focused";
- color: 69 143 255 255;
- color2: 69 143 255 255;
- color3: 69 143 255 255;
- }
- color_class { "hoversel/default/bg_disabled";
- color: 0 0 0 25;
- }
- color_class { "hoversel/default/text";
- color: 175 175 175 255;
- }
- color_class { "hoversel/default/text_focused";
- color: 255 255 255 255;
- }
- color_class { "hoversel/default/text_disabled";
- color: 175 175 175 102;
- }
- // FIXME: temporarily add new color_class because of
- // diff between disabled texts.
- color_class { "hoversel/default/text_disabled_visible";
- color: 158 158 158 102;
- color3: 0 0 0 0;
- }
- color_class { "hoversel_item/default/bg";
- color: 255 255 255 255;
- }
- color_class { "hoversel_item/default/bg_focused";
- color: 69 143 255 255;
- color2: 69 143 255 255;
- color3: 69 143 255 255;
- }
- color_class { "hoversel_item/default/bg_highlight";
- color: 255 255 255 255;
- }
- color_class { "hoversel_item/default/bg_focused_highlight";
- color: 69 143 255 255;
- color2: 69 143 255 255;
- color3: 69 143 255 255;
- }
- color_class { "hoversel_item/default/bg_disabled";
- color: 255 255 255 255;
- }
- /*
- * Index
- */
- color_class { "index/default/bg";
- color: 250 250 250 255;
- }
- color_class { "index/default/bg_popup";
- color: 61 185 204 255;
- }
- color_class { "index/default/text_popup";
- color: 250 250 250 255;
- }
- color_class { "index_item/default/border";
- color: 61 185 204 77;
- }
- color_class { "index_item/default/line";
- color: 61 185 204 26;
- }
- color_class { "index_item/default/divider";
- color: 61 185 204 26;
- }
- color_class { "index_item/default/text";
- color: 61 185 204 222;
- }
- color_class { "index_item/default/text_pressed";
- color: 61 185 204 222;
- }
- color_class { "index_item/pagecontrol/icon";
- color: 250 250 250 128;
- }
- color_class { "index_item/pagecontrol/icon_on";
- color: 250 250 250 255;
- }
- /*
- * Layout
- */
- color_class {
- name: "layout/background/bg";
- color: 0 0 0 0;
- }
- /*
- * Naviframe
- */
- color_class { "naviframe_item/default/bg_title";
- color: 61 185 204 255;
- }
- color_class { "naviframe_item/default/text_maintitle";
- color: 250 250 250 255;
- }
- color_class { "naviframe_item/default/text_maintitle_subtitle_enabled";
- color: 250 250 250 255;
- }
- color_class { "naviframe_item/default/text_subtitle";
- color: 250 250 250 255;
- }
- /*
- * Popup
- */
- color_class { "popup/default/bg_content";
- color: 255 255 255 255;
- }
- color_class { "popup/default/bg_title";
- color: 42 76 130 255;
- }
- color_class { "popup/default/text_maintitle";
- color: 255 255 255 255;
- }
- color_class { "popup/default/text_content";
- color: 0 0 0 255;
- }
- /*
- * Progressbar
- */
- color_class { "progressbar/default/bg";
- color: 255 255 255 26;
- }
- color_class { "progressbar/default/bar";
- color: 255 255 255 178;
- }
- color_class { "progressbar/process_large/icon_bottom";
- color: 61 185 204 102;
- }
- color_class { "progressbar/process_large/icon_middle";
- color: 61 185 204 102;
- }
- color_class { "progressbar/process_large/icon_top";
- color: 61 185 204 255;
- }
- color_class { "progressbar/process_medium/icon_bottom";
- color: 61 185 204 102;
- }
- color_class { "progressbar/process_medium/icon_middle";
- color: 61 185 204 102;
- }
- color_class { "progressbar/process_medium/icon_top";
- color: 61 185 204 255;
- }
- color_class { "progressbar/process_small/icon_bottom";
- color: 61 185 204 102;
- }
- color_class { "progressbar/process_small/icon_middle";
- color: 61 185 204 102;
- }
- color_class { "progressbar/process_small/icon_top";
- color: 61 185 204 255;
- }
-
- /*
- * Radio
- */
- color_class { "radio/default/bg";
- color: 0 0 0 0;
- }
- color_class { "radio/default/stroke";
- color: 255 255 255 255;
- }
- color_class { "radio/default/stroke_focused";
- color: 255 255 255 255;
- }
- color_class { "radio/default/stroke_disabled";
- color: 255 255 255 51;
- }
- color_class { "radio/default/icon";
- color: 255 255 255 255;
- }
- color_class { "radio/default/icon_focused";
- color: 255 255 255 255;
- }
- /*
- * Slider
- */
- color_class { "slider/default/bg";
- color: 255 255 255 255;
- }
- /*
- * Spinner
- */
-/*
- color_class { "spinner/default/bg";
- color: 255 255 255 255;
- }
-*/
- color_class { "spinner/vertical/bg";
- color: 250 250 250 255;
- }
- color_class { "spinner/default/bg";
- color: 0 0 0 0;
- }
- color_class { "spinner/default/icon";
- color: 204 204 204 255;
- }
- color_class { "spinner/default/icon_pressed";
- color: 250 250 250 255;
- }
- color_class { "spinner/default/icon_disabled";
- color: 204 204 204 128;
- }
- color_class { "spinner/default/effect_icon";
- color: 61 185 204 77;
- }
- color_class { "spinner/default/text";
- color: 0 0 0 255;
- }
- color_class { "spinner/default/text_pressed";
- color: 0 0 0 255;
- }
- color_class { "spinner/default/text_disabled";
- color: 0 0 0 163;
- }
- /*
- * Toolbar
- */
- color_class { "toolbar/default/bg";
- color: 61 185 204 255;
- }
- color_class { "toolbar_item/default/bg";
- color: 61 185 204 255;
- }
- color_class { "toolbar_item/default/effect";
- color: 0 0 0 77;
- }
- color_class { "toolbar_item/default/underline";
- color: 249 249 249 255;
- }
- color_class { "toolbar_item/default/icon";
- color: 249 249 249 99;
- }
- color_class { "toolbar_item/default/icon_selected";
- color: 249 249 249 255;
- }
- color_class { "toolbar_item/default/icon_pressed";
- color: 249 249 249 255;
- }
- color_class { "toolbar_item/default/icon_disabled";
- color: 249 249 249 76;
- }
- color_class { "toolbar_item/default/text";
- color: 250 250 250 184;
- }
- color_class { "toolbar_item/default/text_pressed";
- color: 250 250 250 255;
- }
- color_class { "toolbar_item/default/text_selected";
- color: 250 250 250 255;
- }
- color_class { "toolbar_item/default/text_disabled";
- color: 250 250 250 115;
- }
- color_class { "toolbar_item/default/text_under_icon";
- color: 250 250 250 184;
- }
- color_class { "toolbar_item/default/text_under_icon_pressed";
- color: 250 250 250 255;
- }
- color_class { "toolbar_item/default/text_under_icon_selected";
- color: 250 250 250 255;
- }
- color_class { "toolbar_item/default/text_under_icon_disabled";
- color: 250 250 250 115;
- }
- color_class { "toolbar/tabbar_with_title/bg";
- color: 61 185 204 255;
- }
- color_class { "toolbar_item/tabbar_with_title/bg";
- color: 61 185 204 255;
- }
- color_class { "toolbar_item/tabbar_with_title/effect";
- color: 0 0 0 77;
- }
- color_class { "toolbar_item/tabbar_with_title/underline";
- color: 249 249 249 255;
- }
- color_class { "toolbar_item/tabbar_with_title/icon";
- color: 249 249 249 99;
- }
- color_class { "toolbar_item/tabbar_with_title/icon_selected";
- color: 249 249 249 255;
- }
- color_class { "toolbar_item/tabbar_with_title/icon_pressed";
- color: 249 249 249 255;
- }
- color_class { "toolbar_item/tabbar_with_title/icon_disabled";
- color: 249 249 249 76;
- }
- color_class { "toolbar_item/tabbar_with_title/text";
- color: 250 250 250 184;
- }
- color_class { "toolbar_item/tabbar_with_title/text_pressed";
- color: 250 250 250 255;
- }
- color_class { "toolbar_item/tabbar_with_title/text_selected";
- color: 250 250 250 255;
- }
- color_class { "toolbar_item/tabbar_with_title/text_disabled";
- color: 250 250 250 115;
- }
- color_class { "toolbar/navigationbar/bg";
- color: 61 185 204 255;
- }
- color_class { "toolbar/navigationbar/divider";
- color: 249 249 249 38;
- }
- color_class { "toolbar_item/navigationbar/bg";
- color: 61 185 204 255;
- }
- color_class { "toolbar_item/navigationbar/effect";
- color: 0 0 0 77;
- }
- color_class { "toolbar_item/navigationbar/icon";
- color: 249 249 249 255;
- }
- color_class { "toolbar_item/navigationbar/text";
- color: 250 250 250 184;
- }
- color_class { "toolbar_item/navigationbar/text_pressed";
- color: 250 250 250 255;
- }
- color_class { "toolbar_item/navigationbar/text_disabled";
- color: 250 250 250 163;
- }
- color_class { "toolbar_item/navigationbar/text_selected";
- color: 250 250 250 255;
- }
- color_class { "toolbar/light_view/bg";
- color: 150 154 158 255;
- }
- color_class { "toolbar_item/light_view/bg";
- color: 150 154 158 255;
- }
- color_class { "toolbar_item/light_view/effect";
- color: 0 0 0 77;
- }
- color_class { "toolbar_item/light_view/underline";
- color: 249 249 249 255;
- }
- color_class { "toolbar_item/light_view/text";
- color: 250 250 250 184;
- }
- color_class { "toolbar_item/light_view/text_pressed";
- color: 250 250 250 255;
- }
- color_class { "toolbar_item/light_view/text_selected";
- color: 250 250 250 255;
- }
- color_class { "toolbar_item/light_view/text_disabled";
- color: 250 250 250 115;
- }
-
-}
+++ /dev/null
-/***************** efl-theme-tizen-tv *************************
- * Example of use of color code:-
- *
- * color: [color_name] [alpha] ;
- *
- *
-/****************** Color-Codes *******************************/
-
-#define BLACK 0 0 0
-#define RED 255 0 0
-#define GREEN 0 255 0
-#define BLUE 0 0 255
-#define WHITE 255 255 255
-#define YELLOW 255 255 0
-#define GRAY 105 105 105
-#define AQUA 0 255 255
-#define MAGENTA 255 0 255
-#define SILVER 192 192 192
-#define MAROON 128 0 0
-#define OLIVE 128 128 0
-#define PURPLE 128 0 128
-#define TEAL 0 128 128
-#define NAVY 0 0 128
-#define PINK 255 192 203
-#define PLUM 221 160 221
-#define VOILET 238 130 238
-#define BROWN 165 42 42
-#define ORANGE 255 165 0
-#define GOLD 218 165 32
-#define LIME 50 205 50
-
-//#define FONT_NAME "FONT_FILE_NAME.ttf"
-
-#define FONT_M "SVD_Medium"
-#define FONT_L "SVD_Light"
-#define FONT_S "SCD_Script"
-#define FONT_R "XXXX"
-
-#define PART_RECT(COLOR) \
- part { type: RECT; \
- description { state: "default" 0.0; \
- color: COLOR; \
- } \
- }
+++ /dev/null
-/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-// 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.
-
-//****************************************************************************************//
-// This is theme body including all widget bodys
-// Define shared descriptions (e.g. sound samples, color classes, textblock styles) in here
-// Do not define size(width, height) in here!!!!
-//****************************************************************************************//
-
-// Include INC (e.g. HD-inc.edc, HVGA-inc.edc for each resolution) file
-#include "HD-inc.edc"
-
-externals {
- external: "elm";
-}
-
-// BUILD_FIX: Add version to edc as 110.
-data.item: "version" "110";
-//
-
-#include "common.edc"
-#include "macros.edc"
-
-ADD_COLOR_CLASS
-
-collections {
- base_scale: BASE_SCALE_INC;
-
-#include "color_classes.edc"
-#include "widgets/scroller.edc"
-#include "widgets/button.edc"
-#include "widgets/check.edc"
-#include "widgets/ctxpopup.edc"
-#include "widgets/datetime.edc"
-#include "widgets/spinner.edc"
-#include "widgets/entry.edc"
-#include "widgets/gengrid.edc"
-#include "widgets/genlist_common.edc"
-#include "widgets/genlist.edc"
-#include "widgets/hover.edc"
-#include "widgets/hoversel.edc"
-#include "widgets/index.edc"
-#include "widgets/layout.edc"
-#include "widgets/list.edc"
-#include "widgets/naviframe.edc"
-#include "widgets/popup.edc"
-#include "widgets/progressbar.edc"
-#include "widgets/radio.edc"
-#include "widgets/slider.edc"
-#include "widgets/toolbar.edc"
-#include "widgets/tooltip.edc"
-}
+++ /dev/null
-#define ASPECT_FILL(_ASPECT) \
- aspect: _ASPECT _ASPECT; aspect_preference: NONE;
-#define TILED_PATTERN(_WIDTH, _HEIGHT) \
- fill { size { relative: 0.0 0.0; offset: _WIDTH _HEIGHT; } }
-#define TILED_HORIZ(_WIDTH) \
- fill { size { relative: 0.0 1.0; offset: _WIDTH 0; } }
-#define FIXED_SIZE(_WIDTH, _HEIGHT) \
- min: _WIDTH _HEIGHT; max: _WIDTH _HEIGHT; fixed: 1 1;
-
-#define ADD_COLOR_CLASS color_classes { \
- color_class { \
- name: "open_ux_theme"; \
- color: 69 143 255 255; \
- color2: 69 143 255 255; \
- color3: 69 143 255 255; \
- } \
- color_class { \
- name: "open_ux_theme_alpha"; \
- color: 69 143 255 102; \
- color2: 69 143 255 102; \
- color3: 69 143 255 102; \
- } \
- color_class { \
- name: "open_ux_theme_alpha20"; \
- color: 69 143 255 50; \
- color2: 69 143 255 51; \
- color3: 69 143 255 51; \
- } \
- color_class { \
- name: "open_ux_theme_white"; \
- color: 255 255 255 255; \
- color2: 255 255 255 255; \
- color3: 255 255 255 255; \
- } \
- }
-
-#define BUTTON_VECTOR_PART(min_size, ratio, vector_base, clipper_vector_base, left_top, right_top, mid, left_bottom, right_bottom) \
- vector { vector_base"_top_left"; \
- clip: clipper_vector_base; \
- desc { "default"; \
- vis; \
- align: 0.0 0.0; \
- max: (min_size)*ratio (min_size)*ratio; \
- rel1.to: vector_base; \
- rel2.to: vector_base; \
- rel1.relative: 0.0 0.0; \
- rel2.relative: 1.0 1.0; \
- image.normal: left_top; \
- } \
- desc { "ready"; \
- inherit: "default"; \
- min: (min_size)-1 (min_size)-1; \
- } \
- desc { "pressed"; \
- inherit: "ready"; \
- } \
- desc { "hidden" \
- hid; \
- } \
- } \
- vector { vector_base"_top_right"; \
- clip: clipper_vector_base; \
- desc { "default"; \
- vis; \
- align: 1.0 0.0; \
- max: (min_size)*ratio (min_size)*ratio; \
- rel1.to: vector_base; \
- rel2.to: vector_base; \
- rel1.relative: 0.0 0.0; \
- rel2.relative: 1.0 1.0; \
- image.normal: right_top; \
- } \
- desc { "ready"; \
- inherit: "default"; \
- min: (min_size)-1 (min_size)-1; \
- } \
- desc { "pressed"; \
- inherit: "ready"; \
- } \
- desc { "hidden" \
- hid; \
- } \
- } \
- vector { vector_base"_top_mid"; \
- clip: clipper_vector_base; \
- desc { "default"; \
- vis; \
- rel1.to: vector_base"_top_left"; \
- rel1.relative: 1.0 0.0; \
- rel2.to: vector_base"_top_right"; \
- rel2.relative: 0.0 1.0; \
- image.normal: mid; \
- } \
- desc { "ready"; \
- inherit: "default"; \
- } \
- desc { "pressed"; \
- inherit: "ready"; \
- } \
- desc { "hidden" \
- hid; \
- } \
- } \
- vector { vector_base"_mid"; \
- clip: clipper_vector_base; \
- desc { "default"; \
- vis; \
- rel1.to: vector_base"_top_left"; \
- rel1.relative: 0.0 1.0; \
- rel2.to: vector_base"_bottom_right"; \
- rel2.relative: 1.0 0.0; \
- image.normal: mid; \
- } \
- desc { "ready"; \
- inherit: "default"; \
- } \
- desc { "pressed"; \
- inherit: "ready"; \
- } \
- desc { "hidden" \
- hid; \
- } \
- } \
- vector { vector_base"_bottom_left"; \
- clip: clipper_vector_base; \
- desc { "default"; \
- vis; \
- align: 0.0 1.0; \
- max: (min_size)*ratio (min_size)*ratio; \
- rel1.to: vector_base; \
- rel2.to: vector_base; \
- rel1.relative: 0.0 0.0; \
- rel2.relative: 1.0 1.0; \
- image.normal: left_bottom; \
- } \
- desc { "ready"; \
- inherit: "default"; \
- min: (min_size)-1 (min_size)-1; \
- } \
- desc { "pressed"; \
- inherit: "ready"; \
- } \
- desc { "hidden" \
- hid; \
- } \
- } \
- vector { vector_base"_bottom_right"; \
- clip: clipper_vector_base; \
- desc { "default"; \
- vis; \
- align: 1.0 1.0; \
- max: (min_size)*ratio (min_size)*ratio; \
- rel1.to: vector_base; \
- rel2.to: vector_base; \
- rel1.relative: 0.0 0.0; \
- rel2.relative: 1.0 1.0; \
- image.normal: right_bottom; \
- } \
- desc { "ready"; \
- inherit: "default"; \
- min: (min_size)-1 (min_size)-1; \
- } \
- desc { "pressed"; \
- inherit: "ready"; \
- } \
- desc { "hidden" \
- hid; \
- } \
- } \
- vector { vector_base"_bottom_mid"; \
- clip: clipper_vector_base; \
- desc { "default"; \
- vis; \
- rel1.to: vector_base"_bottom_left"; \
- rel1.relative: 1.0 0.0; \
- rel2.to: vector_base"_bottom_right"; \
- rel2.relative: 0.0 1.0; \
- image.normal: mid; \
- } \
- desc { "ready"; \
- inherit: "default"; \
- } \
- desc { "pressed"; \
- inherit: "ready"; \
- } \
- desc { "hidden" \
- hid; \
- } \
- } \
- vector { vector_base"_top_left_rtl"; \
- clip: clipper_vector_base; \
- desc { "default"; \
- vis; \
- align: 0.0 0.0; \
- max: (min_size)*ratio (min_size)*ratio; \
- rel1.to: vector_base; \
- rel2.to: vector_base; \
- rel1.relative: 0.0 0.0; \
- rel2.relative: 1.0 1.0; \
- image.normal: right_top; \
- } \
- desc { "ready"; \
- inherit: "default"; \
- min: (min_size)-1 (min_size)-1; \
- } \
- desc { "pressed"; \
- inherit: "ready"; \
- } \
- desc { "hidden" \
- hid; \
- } \
- } \
- vector { vector_base"_top_right_rtl"; \
- clip: clipper_vector_base; \
- desc { "default"; \
- vis; \
- align: 1.0 0.0; \
- max: (min_size)*ratio (min_size)*ratio; \
- rel1.to: vector_base; \
- rel2.to: vector_base; \
- rel1.relative: 0.0 0.0; \
- rel2.relative: 1.0 1.0; \
- image.normal: left_top; \
- } \
- desc { "ready"; \
- inherit: "default"; \
- min: (min_size)-1 (min_size)-1; \
- } \
- desc { "pressed"; \
- inherit: "ready"; \
- } \
- desc { "hidden" \
- hid; \
- } \
- } \
- vector { vector_base"_top_mid_rtl"; \
- clip: clipper_vector_base; \
- desc { "default"; \
- vis; \
- rel1.to: vector_base"_top_left_rtl"; \
- rel1.relative: 1.0 0.0; \
- rel2.to: vector_base"_top_right_rtl"; \
- rel2.relative: 0.0 1.0; \
- image.normal: mid; \
- } \
- desc { "ready"; \
- inherit: "default"; \
- } \
- desc { "pressed"; \
- inherit: "ready"; \
- } \
- desc { "hidden" \
- hid; \
- } \
- } \
- vector { vector_base"_mid_rtl"; \
- clip: clipper_vector_base; \
- desc { "default"; \
- vis; \
- rel1.to: vector_base"_top_left_rtl"; \
- rel1.relative: 0.0 1.0; \
- rel2.to: vector_base"_bottom_right_rtl"; \
- rel2.relative: 1.0 0.0; \
- image.normal: mid; \
- } \
- desc { "ready"; \
- inherit: "default"; \
- } \
- desc { "pressed"; \
- inherit: "ready"; \
- } \
- desc { "hidden" \
- hid; \
- } \
- } \
- vector { vector_base"_bottom_left_rtl"; \
- clip: clipper_vector_base; \
- desc { "default"; \
- vis; \
- align: 0.0 1.0; \
- max: (min_size)*ratio (min_size)*ratio; \
- rel1.to: vector_base; \
- rel2.to: vector_base; \
- rel1.relative: 0.0 0.0; \
- rel2.relative: 1.0 1.0; \
- image.normal: right_bottom; \
- } \
- desc { "ready"; \
- inherit: "default"; \
- min: (min_size)-1 (min_size)-1; \
- } \
- desc { "pressed"; \
- inherit: "ready"; \
- } \
- desc { "hidden" \
- hid; \
- } \
- } \
- vector { vector_base"_bottom_right_rtl"; \
- clip: clipper_vector_base; \
- desc { "default"; \
- vis; \
- align: 1.0 1.0; \
- max: (min_size)*ratio (min_size)*ratio; \
- rel1.to: vector_base; \
- rel2.to: vector_base; \
- rel1.relative: 0.0 0.0; \
- rel2.relative: 1.0 1.0; \
- image.normal: left_bottom; \
- } \
- desc { "ready"; \
- inherit: "default"; \
- min: (min_size)-1 (min_size)-1; \
- } \
- desc { "pressed"; \
- inherit: "ready"; \
- } \
- desc { "hidden" \
- hid; \
- } \
- } \
- vector { vector_base"_bottom_mid_rtl"; \
- clip: clipper_vector_base; \
- desc { "default"; \
- vis; \
- rel1.to: vector_base"_bottom_left_rtl"; \
- rel1.relative: 1.0 0.0; \
- rel2.to: vector_base"_bottom_right_rtl"; \
- rel2.relative: 0.0 1.0; \
- image.normal: mid; \
- } \
- desc { "ready"; \
- inherit: "default"; \
- } \
- desc { "pressed"; \
- inherit: "ready"; \
- } \
- desc { "hidden" \
- hid; \
- } \
- }
-
-#define BUTTON_VECTOR_PART_MIRRORED_VALUE \
- public rtl_mode = 0;
-
-#define BUTTON_VECTOR_PART_MIRRORED_SET_STATE(vector_base, _rtl, _state) \
- set_state(PART:vector_base"_top_left"_rtl, _state, 0.0); \
- set_state(PART:vector_base"_top_right"_rtl, _state, 0.0); \
- set_state(PART:vector_base"_bottom_left"_rtl, _state, 0.0); \
- set_state(PART:vector_base"_bottom_right"_rtl, _state, 0.0); \
- set_state(PART:vector_base"_top_mid"_rtl, _state, 0.0); \
- set_state(PART:vector_base"_mid"_rtl, _state, 0.0); \
- set_state(PART:vector_base"_bottom_mid"_rtl, _state, 0.0);
-
-#define BUTTON_VECTOR_PART_MIRRORED_PROGRAM( _icon ) \
- program { "rtl_mirrored"; \
- signal: "edje,state,rtl"; \
- source: "edje"; \
- script { \
- set_int(rtl_mode, 1); \
- if( strcmp(#_icon, "icon")) { \
- set_state(PART:_icon, "rtl", 0.0); \
- } \
- } \
- } \
- program { "ltr_mirrored"; \
- signal: "edje,state,ltr"; \
- source: "edje"; \
- script { \
- set_int(rtl_mode, 0); \
- if( strcmp(#_icon, "icon")) { \
- set_state(PART:_icon, "default", 0.0); \
- } \
- } \
- }
+++ /dev/null
-/*
- * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-/*********************************************************************************
-Document: Tizen TV_General Guide_GUI Guideline_v1.0_140430.ppt
-Button
-Page No.: 72, Style Name: default
-*********************************************************************************/
-group { name: "elm/button/base/default";
- images {
- image: "round_rectangle_4X4.png" COMP;
- }
- data.item: "focus_highlight" "on";
- parts {
- part { name: "base"; type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- color: 0 0 0 0;
- }
- }
- part { name: "pad.left"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- align: 0.0 0.5;
- rel1.to: "base";
- min: BUTTON_DEFAULT_PAD_SIZE;
- max: BUTTON_DEFAULT_PAD_SIZE;
- }
- }
- part { name: "pad.right"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- align: 1.0 0.5;
- rel2.to: "base";
- min: BUTTON_DEFAULT_PAD_SIZE;
- max: BUTTON_DEFAULT_PAD_SIZE;
- }
- }
- part { name: "button_base";
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "base";
- rel2.to: "base";
- min: BUTTON_DEFAULT_MIN_SIZE;
- color_class: "button/default/bg";
- image {
- normal: "round_rectangle_4X4.png";
- border: BUTTON_BORDER;
- border_scale: 1;
- }
- }
- description { state: "focus" 0.0;
- inherit: "default" 0.0;
- color_class: "button/default/bg_focused";
- }
- description { state: "dim" 0.0;
- inherit: "default" 0.0;
- color_class: "button/default/bg_disabled";
- }
- }
- part { name: "elm.swallow.content"; type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- align: 0 0.5;
- rel1.to: "pad.left";
- rel1.relative: 1 0;
- rel2.to: "pad.left";
- rel2.relative: 1 1;
- align: 0.0 0.5;
- min: 0 0;
- max: 37 37;
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- min: 37 37;
- fixed: 1 1;
- }
- }
- part { name: "elm.text"; type: TEXTBLOCK; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to_x: "elm.swallow.content";
- rel1.relative: 1.0 0.0;
- rel2.to_x: "pad.right";
- rel2.relative: 0.0 1.0;
- text {
- min: 1 1;
- max: 1 1;
- ellipsis: -1;
- style: "button_default";
- }
- }
- description { state: "focus" 0.0;
- inherit: "default" 0.0;
- text.min: 1 1;
- text.style: "button_default_focused";
- }
- description { state: "dim" 0.0;
- inherit: "default" 0.0;
- text.style: "button_default_disabled";
- }
- }
- part { name: "event"; type: RECT;
- description { state: "default" 0.0;
- color: 0 0 0 0;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- }
- programs {
- program { name: "button_click";
- signal: "mouse,down,1"; source: "event";
- action: SIGNAL_EMIT "elm,action,press" "";
- }
- program { name: "button_unclick";
- signal: "mouse,up,1"; source: "event";
- action: SIGNAL_EMIT "elm,action,unpress" "";
- }
- program { name: "button_unclick_anim";
- action: STATE_SET "default" 0.0;
- target: "button_base";
- target: "elm.text";
- }
- program{ name: "mouse_unclick_after";
- signal: "mouse,clicked,1"; source: "event";
- action: SIGNAL_EMIT "elm,action,click" "";
- }
- program { name: "key_press";
- signal: "elm,action,pressed"; source: "elm";
- }
- program { name: "key_unpress";
- signal: "elm,action,unpressed"; source: "elm";
- }
- program { name: "focused";
- signal: "elm,action,focus"; source: "elm";
- action: STATE_SET "focus" 0.0;
- target: "button_base";
- target: "elm.text";
- }
- program { name: "unfocused";
- signal: "elm,action,unfocus"; source: "elm";
- action: STATE_SET "default" 0.0;
- target: "button_base";
- target: "elm.text";
- }
- program { name: "icon_show";
- signal: "elm,state,icon,visible"; source: "elm";
- action: STATE_SET "visible" 0.0;
- target: "elm.swallow.content";
- }
- program { name: "icon_hide";
- signal: "elm,state,icon,hidden"; source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.swallow.content";
- }
- program { name: "text_show";
- signal: "elm,state,text,visible"; source: "elm";
- script {
- new st[31];
- new Float: vl;
- get_state(PART:"elm.text", st, 30, vl);
- if (!strcmp(st, "disabled") || (!strcmp(st, "disabled_visible")))
- set_state(PART:"elm.text", "disabled_visible", 0.0);
- else
- set_state(PART:"elm.text", "visible", 0.0);
- }
- }
- program { name: "text_hide";
- signal: "elm,state,text,hidden"; source: "elm";
- script {
- new st[31];
- new Float: vl;
- set_state(PART:"elm.text", "default", 0.0);
- get_state(PART:"elm.text", st, 30, vl);
- if (!strcmp(st, "default") || (!strcmp(st, "visible")))
- set_state(PART:"elm.text", "default", 0.0);
- else
- set_state(PART:"elm.text", "disabled", 0.0);
- }
- }
- program { name: "disable";
- signal: "elm,state,disabled"; source: "elm";
- script {
- new st[31];
- new Float: vl;
- set_state(PART:"button_base", "dim", 0.0);
- set_state(PART:"event", "disabled", 0.0);
- get_state(PART:"elm.text", st, 30, vl);
- if (!strcmp(st, "visible") || !strcmp(st, "disabled_visible"))
- set_state(PART:"elm.text", "disabled_visible", 0.0);
- else
- set_state(PART:"elm.text", "disabled", 0.0);
- }
- }
- program { name: "enable";
- signal: "elm,state,enabled"; source: "elm";
- script {
- new st[31];
- new Float: vl;
- set_state(PART:"button_base", "visible", 0.0);
- set_state(PART:"event", "visible", 0.0);
- get_state(PART:"elm.text", st, 30, vl);
- if (!strcmp(st, "visible") || !strcmp(st, "disabled_visible"))
- set_state(PART:"elm.text", "visible", 0.0);
- else
- set_state(PART:"elm.text", "default", 0.0);
- }
- }
- }
-}
-
-/*********************************************************************************
-Document: Tizen TV_General Guide_GUI Guideline_v1.0_140508.ppt
-Button
-Page No.: 89, Style Name: text
-*********************************************************************************/
-group { name: "elm/button/base/text";
- inherit: "elm/button/base/default";
- images {
- image: "btn_text_foc.png" COMP;
- image: "btn_text_nor.png" COMP;
- }
- parts {
- part { name: "base"; type: RECT;
- description { state: "default" 0.0;
- color: 0 0 0 0;
- }
- }
- part { name: "pad.left"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- align: 0.0 0.5;
- rel1.to: "base";
- min: BUTTON_TEXT_PAD_SIZE;
- max: BUTTON_TEXT_PAD_SIZE;
- }
- }
- part { name: "pad.right"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- align: 1.0 0.5;
- rel2.to: "base";
- min: BUTTON_TEXT_PAD_SIZE;
- max: BUTTON_TEXT_PAD_SIZE;
- }
- }
- part { name: "button_base";
- description { state: "default" 0.0;
- rel1.to: "base";
- rel2.to: "base";
- min: BUTTON_TEXT_MIN_SIZE;
- image {
- normal: "btn_text_nor.png";
- border:BUTTON_BORDER;
- border_scale: 1;
- }
- }
- description { state: "focus" 0.0;
- inherit: "default" 0.0;
- image {
- normal: "btn_text_foc.png";
- border: BUTTON_BORDER;
- border_scale: 1;
- }
- }
- description { state: "dim" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 51;
- image {
- normal: "btn_text_nor.png";
- border: BUTTON_BORDER;
- border_scale: 1;
- }
- }
- }
- part { name: "elm.text"; type: TEXT; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to_x: "pad.left";
- rel1.relative: 1.0 0.0;
- rel2.to_x: "pad.right";
- rel2.relative: 0.0 1.0;
- color: 164 164 174 255;
- text {
- font: FONT_M;//TODO Tizen Sans regular
- size: BUTTON_TEXT_FONT_SIZE;
- min: 1 1;
- max: 1 1;
- text_class: "button";
- }
- }
- description { state: "focus" 0.0;
- inherit: "default" 0.0;
- color: WHITE 255;
- text.min: 1 1;
- }
- description { state: "dim" 0.0;
- inherit: "default" 0.0;
- color: 164 167 174 102;
- }
- }
- part { name: "event"; type: RECT;
- description { state: "default" 0.0;
- color: 0 0 0 0;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- }
- programs {
- program { name: "focused";
- signal: "elm,action,focus"; source: "elm";
- action: STATE_SET "focus" 0.0;
- target: "button_base";
- target: "elm.text";
- }
- program { name: "unfocused";
- signal: "elm,action,unfocus"; source: "elm";
- action: STATE_SET "default" 0.0;
- target: "button_base";
- target: "elm.text";
- }
- }
-}
-
-group { name: "elm/button/base/popup";
- inherit: "elm/button/base/default";
- parts {
- part { name: "elm.text";
- description { state: "default" 0.0;
- text.min: 0 0;
- text.ellipsis: 0.0;
- }
- description { state: "focus" 0.0;
- inherit: "default" 0.0;
- color: WHITE 255;
- }
- description { state: "dim" 0.0;
- inherit: "default" 0.0;
- color: 89 89 89 102;
- }
- }
- }
-}
-
-/////////////////////////
-// Vertical /////////////
-/////////////////////////
-#define GLIDE_EASE_OUT(duration) CUBIC_BEZIER (duration) 0.25 0.46 0.45 1.0
-
- group { name: "elm/button/base/spinner/increase/vertical";
- alias: "elm/button/base/spinner/increase/vertical_time_picker";
- alias: "elm/button/base/spinner/increase/vertical_date_picker";
- alias: "elm/button/base/spinner/increase/datetime";
- data.item: "focus_highlight" "on";
- data.item: "vector_ux" "no_bg";
- data.item: "corner_radius" "10";
- images {
- image: "core_icon_picker_arrow_up.png" COMP;
- }
- script {
- public mouse_down = 0;
- public multi_down = 0;
- public disabled = 0;
- public animate = 0;
- }
- parts {
- part { name: "arrow.image.bg";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- align: 0.5 0.0;
- min: 146 80;
- max: 146 80;
- }
- }
- part { name: "effect_spacer";
- type: SPACER;
- description { state: "default" 0.0;
- rel1.to: "arrow.image.bg";
- rel2.to: "arrow.image.bg";
- }
- }
- //Effect Shape Part
- part { name: "tizen_vg_shape";
- type: SWALLOW;
- clip_to: "tizen_vg_shape_clipper";
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- rel1.to: "effect_spacer";
- rel2.to: "effect_spacer";
- rel1.relative: 0.5 0.5;
- rel2.relative: 0.5 0.5;
- }
- description { state: "ready" 0.0;
- inherit: "default" 0.0;
- min: 112 34;
- }
- description { state: "pressed" 0.0;
- inherit: "default" 0.0;
- rel1.relative: 0.0 0.0;
- rel2.relative: 1.0 1.0;
- }
- }
- part { name: "tizen_vg_shape_clipper";
- type: RECT;
- description { state: "default" 0.0;
- color: 0 0 0 0;
- visible: 0;
- fixed: 1 1;
- rel1.to: "tizen_vg_shape";
- rel2.to: "tizen_vg_shape";
- }
- description { state: "ready" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- description { state: "pressed" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- color: 0 0 0 77;
- }
- description { state: "disabled" 0.0;
- color: 0 0 0 77;
- fixed: 1 1;
- rel1.to: "tizen_vg_shape";
- rel2.to: "tizen_vg_shape";
- }
- }
- part { name: "arrow.image";
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "arrow.image.bg";
- rel2.to: "arrow.image.bg";
- min: 146 80;
- max: 146 80;
- color: 204 204 204 255;
- image.normal: "core_icon_picker_arrow_up.png";
- }
- description { state: "pressed" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 255;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- color: 204 204 204 127;
- }
- }
- part { name: "focus_image";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- align: 0.5 0.0;
- rel1.to: "arrow.image.bg";
- rel2.to: "arrow.image.bg";
- }
- description { state: "focused" 0.0;
- inherit: "default" 0.0;
- }
- }
- part { name: "event";
- type: RECT;
- repeat_events: 1;
- description { state: "default" 0.0;
- rel1.to: "arrow.image.bg";
- rel2.to: "arrow.image.bg";
- color: 0 0 0 0;
- }
- }
- }
- programs {
- program { name: "pressed_effect";
- action: STATE_SET "ready" 0.0;
- target: "tizen_vg_shape_clipper";
- target: "tizen_vg_shape";
- after: "pressed_effect2";
- }
- program { name: "pressed_effect2";
- action: STATE_SET "pressed" 0.0;
- target: "tizen_vg_shape_clipper";
- target: "tizen_vg_shape";
- target: "arrow.image";
- transition: GLIDE_EASE_OUT(0.15);
- after: "pressed_effect3";
- }
- program { name: "pressed_effect3";
- script {
- set_int(animate, 0);
- }
- }
- program { name: "delay_unpressed_effect";
- in: 0.1 0.0;
- after: "unpressed_effect";
- }
- program { name: "unpressed_effect";
- script {
- if (get_int(disabled) == 0) {
- run_program(PROGRAM:"unpressed_effect2");
- run_program(PROGRAM:"unpressed_effect3");
- } else {
- run_program(PROGRAM:"disabled_effect");
- run_program(PROGRAM:"disabled_effect2");
- }
- }
- }
- program { name: "unpressed_effect2";
- action: STATE_SET "default" 0.0;
- target: "arrow.image";
- transition: GLIDE_EASE_OUT(0.45);
- }
- program { name: "unpressed_effect3";
- action: STATE_SET "ready" 0.0;
- target: "tizen_vg_shape_clipper";
- transition: GLIDE_EASE_OUT(0.45);
- after: "finished_animation";
- }
- program { name: "disabled_effect";
- action: STATE_SET "disabled" 0.0;
- target: "arrow.image";
- transition: GLIDE_EASE_OUT(0.45);
- }
- program { name: "disabled_effect2";
- action: STATE_SET "ready" 0.0;
- target: "tizen_vg_shape_clipper";
- transition: GLIDE_EASE_OUT(0.45);
- after: "finished_animation";
- }
- program { name: "finished_animation";
- action: STATE_SET "default" 0.0;
- target: "tizen_vg_shape_clipper";
- target: "tizen_vg_shape";
- }
- program { name: "pressed";
- signal: "mouse,down,1*";
- source: "event";
- script {
- if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0) && (get_int(disabled) == 0)) {
- stop_program(PROGRAM:"delay_unpressed_effect");
- set_int(mouse_down, 1);
- set_int(animate, 1);
- emit("elm,action,press", "");
- run_program(PROGRAM:"pressed_effect");
- }
- }
- }
- program { name: "unpressed";
- signal: "mouse,up,1";
- source: "event";
- script {
- if (get_int(mouse_down) == 1) {
- set_int(mouse_down, 0);
- if (get_int(disabled) == 0) {
- if (get_int(animate) == 0) {
- run_program(PROGRAM:"unpressed_effect");
- } else {
- set_state(PART:"tizen_vg_shape", "pressed", 0.0);
- set_state(PART:"tizen_vg_shape_clipper", "pressed", 0.0);
- set_state(PART:"arrow.image", "pressed", 0.0);
- set_int(animate, 0);
- run_program(PROGRAM:"delay_unpressed_effect");
- }
- emit("elm,action,unpress", "");
- }
- }
- }
- }
- program { name: "button_click";
- signal: "mouse,clicked,1";
- source: "event";
- script {
- if ((get_int(multi_down) == 0) && (get_int(disabled) == 0)) {
- run_program(PROGRAM:"play_sound");
- run_program(PROGRAM:"button_click2");
- }
- }
- }
- program { name: "play_sound";
- action: RUN_PLUGIN "touch_sound";
- }
- program { name: "longpress_sound";
- signal: "elm,action,longpress";
- source: "elm";
- action: RUN_PLUGIN "touch_haptic";
- }
- program { name: "button_click2";
- in: 0.001 0.0;
- action: SIGNAL_EMIT "elm,action,click" "";
- }
- program { name: "action_focus";
- signal: "elm,action,focus_highlight,show";
- source: "elm";
- action: STATE_SET "focused" 0.0;
- target: "focus_image";
- }
- program { name: "action_unfocus";
- signal: "elm,action,focus_highlight,hide";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "focus_image";
- }
- program { name: "access_pressed";
- signal: "elm,action,anim,activate";
- source: "elm";
- after: "pressed_effect";
- }
- program { name: "disable";
- signal: "elm,state,disabled";
- source: "elm";
- script {
- set_int(disabled, 1);
- if (get_int(animate) == 1) return;
- set_state(PART:"arrow.image", "disabled", 0.0);
- }
- }
- program { name: "enable";
- signal: "elm,state,enabled";
- source: "elm";
- script {
- set_int(disabled, 0);
- set_state(PART:"arrow.image", "default", 0.0);
- }
- }
- program {
- name: "multi_down";
- signal: "elm,action,multi,down";
- source: "elm";
- script {
- set_int(multi_down, 1);
- }
- }
- program {
- name: "multi_up";
- signal: "elm,action,multi,up";
- source: "elm";
- script {
- set_int(multi_down, 0);
- }
- }
- program { name: "pass_event_enable";
- signal: "elm,event,pass,enabled";
- source: "elm";
- script {
- set_mouse_events(PART:"event", 0);
- }
- }
- program { name: "pass_event_disable";
- signal: "elm,event,pass,disabled";
- source:"elm";
- script {
- set_mouse_events(PART:"event", 1);
- }
- }
- program { name: "repeat_event_enable";
- signal: "elm,event,repeat,enabled";
- source: "elm";
- script {
- set_repeat_events(PART:"event", 1);
- }
- }
- program { name: "repeat_event_disable";
- signal: "elm,event,repeat,disabled";
- source:"elm";
- script {
- set_repeat_events(PART:"event", 0);
- }
- }
- }
- }
-
- group { name: "elm/button/base/spinner/decrease/vertical";
- inherit: "elm/button/base/spinner/increase/vertical";
- alias: "elm/button/base/spinner/decrease/vertical_time_picker";
- alias: "elm/button/base/spinner/decrease/vertical_date_picker";
- alias: "elm/button/base/spinner/decrease/datetime";
- images {
- image: "core_icon_picker_arrow_down.png" COMP;
- }
- parts {
- part { name: "arrow.image";
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "arrow.image.bg";
- rel2.to: "arrow.image.bg";
- min: 146 80;
- max: 146 80;
- color: 204 204 204 255;
- image.normal: "core_icon_picker_arrow_down.png";
- }
- description { state: "pressed" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 255;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- color: 204 204 204 127;
- }
- }
- }
- }
-
- group { name: "elm/button/base/spinner/vertical";
- alias: "elm/button/base/spinner/vertical_time_picker";
- alias: "elm/button/base/spinner/datetime";
- data.item: "focus_highlight" "on";
- script {
- public mouse_down = 0;
- public multi_down = 0;
- }
- parts {
- part { name: "bg";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 146 188;
- }
- }
- part { name: "elm.text";
- type: TEXT;
- scale: 1;
- description { state: "default" 0.0;
- min: 0 146;
- max: -1 146;
- fixed: 1 1;
- color: 0 0 0 255;
- rel1.to: "bg";
- rel2.to: "bg";
- text {
- font: "Tizen:style=Light";
- size: 106;
- text_class: "tizen";
- ellipsis: -1.0;
- }
- }
- description { state: "pressed" 0.0;
- inherit: "default" 0.0 ;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0 ;
- }
- }
- part { name: "focus_image";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "bg";
- rel2.to: "bg";
- }
- description { state: "focused" 0.0;
- inherit: "default" 0.0;
- }
- }
- part { name: "over";
- type: RECT;
- repeat_events: 1;
- description { state: "default" 0.0;
- color: 0 0 0 0;
- }
- }
- part { name: "disabler";
- type: RECT;
- description { state: "default" 0.0;
- color: 0 0 0 0;
- visible: 0;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- }
- programs {
- program { name: "button_press";
- signal: "mouse,down,1*";
- source: "over";
- script {
- if ((get_int(multi_down) == 0) &&
- (get_int(mouse_down) == 0)) {
- set_int(mouse_down, 1);
- run_program(PROGRAM:"button_press2");
- }
- }
- }
- program { name: "button_press2";
- action: SIGNAL_EMIT "elm,action,press" "";
- after: "action_pressed";
- }
- program { name: "button_unpress";
- signal: "mouse,up,1*";
- source: "over";
- script {
- if (get_int(mouse_down) == 1) {
- set_int(mouse_down, 0);
- run_program(PROGRAM:"button_unpress2");
- }
- }
- }
- program { name: "button_unpress2";
- action: SIGNAL_EMIT "elm,action,unpress" "";
- after: "action_unpressed";
- }
- program { name: "button_click";
- signal: "mouse,clicked,1";
- source: "over";
- script {
- if (get_int(multi_down) == 0) {
- run_program(PROGRAM:"play_sound");
- run_program(PROGRAM:"button_click2");
- }
- }
- }
- program { name: "play_sound";
- action: RUN_PLUGIN "touch_sound";
- }
- program { name: "button_click2";
- action: SIGNAL_EMIT "elm,action,click" "";
- }
- program { name: "action_pressed";
- action: STATE_SET "pressed" 0.0;
- target: "elm.text";
- }
- program { name: "action_unpressed";
- action: STATE_SET "default" 0.0;
- target: "elm.text";
- }
- program { name: "action_focus";
- signal: "elm,action,focus_highlight,show";
- source: "elm";
- action: STATE_SET "focused" 0.0;
- target: "focus_image";
- }
- program { name: "action_unfocus";
- signal: "elm,action,focus_highlight,hide";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "focus_image";
- }
- program { name: "disable";
- signal: "elm,state,disabled";
- source: "elm";
- action: STATE_SET "disabled" 0.0;
- target: "disabler";
- target: "elm.text";
- }
- program { name: "enable";
- signal: "elm,state,enabled";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "disabler";
- target: "elm.text";
- }
- program {
- name: "multi_down";
- signal: "elm,action,multi,down";
- source: "elm";
- script {
- set_int(multi_down, 1);
- }
- }
- program {
- name: "multi_up";
- signal: "elm,action,multi,up";
- source: "elm";
- script {
- set_int(multi_down, 0);
- }
- }
- program { name: "pass_event_enable";
- signal: "elm,event,pass,enabled";
- source: "elm";
- script {
- set_mouse_events(PART:"over", 0);
- set_mouse_events(PART:"disabler", 0);
- }
- }
- program { name: "pass_event_disable";
- signal: "elm,event,pass,disabled";
- source:"elm";
- script {
- set_mouse_events(PART:"over", 1);
- set_mouse_events(PART:"disabler", 1);
- }
- }
- program { name: "repeat_event_enable";
- signal: "elm,event,repeat,enabled";
- source: "elm";
- script {
- set_repeat_events(PART:"over", 1);
- set_repeat_events(PART:"disabler", 1);
- }
- }
- program { name: "repeat_event_disable";
- signal: "elm,event,repeat,disabled";
- source:"elm";
- script {
- set_repeat_events(PART:"over", 0);
- set_repeat_events(PART:"disabler", 0);
- }
- }
- }
- }
-
-group { name: "elm/button/base/spinner/vertical_date_picker";
- inherit: "elm/button/base/spinner/vertical";
- parts {
- part { name: "bg";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 206 188;
- }
- }
- part { name: "elm.text";
- type: TEXT;
- scale: 1;
- description { state: "default" 0.0;
- min: 0 146;
- max: -1 146;
- fixed: 1 1;
- color: 0 0 0 255;
- rel1.to: "bg";
- rel2.to: "bg";
- text {
- font: "TizenSans:style=Light";
- size: 90;
- ellipsis: 0.0;
- }
- }
- description { state: "pressed" 0.0;
- inherit: "default" 0.0;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- }
- }
- }
-}
-
- group { name: "elm/button/base/datetime/default";
- data.item: "vector_ux" "default";
- data.item: "corner_radius" "39";
- script {
- public mouse_down = 0;
- public multi_down = 0;
- public disabled = 0;
- public text = 0;
- public content = 0;
- public animate = 0;
- public selected = 0;
- public minw = 0;
- public minh = 0;
- public get_effect_min_size(base_effect, Float:ratio, min_w, min_h) {
- new x, y, w, h;
- get_geometry(base_effect, x, y, w, h);
- if (w > h) {
- set_float(min_w, w - h * (1 - ratio));
- set_float(min_h, h * ratio);
- } else {
- set_float(min_w, w * ratio);
- set_float(min_h, h - w * (1 - ratio));
- }
- }
- }
- parts {
- part { name: "base";
- scale: 1;
- type: SPACER;
- description { state: "default" 0.0;
- min: 50 78;
- }
- }
- //Base Shape Part
- part { name: "tizen_vg_shape";
- type: SWALLOW;
- clip_to: "tizen_vg_shape_clipper";
- scale: 1;
- description { state: "default" 0.0;
- min: 0 78;
- rel1.relative: 0 0.0;
- rel2.relative: 1 1.0;
- }
- }
- part { name: "tizen_vg_shape_clipper";
- type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- color: 82 198 216 255;
- }
- description { state: "disabled" 0.0;
- color: 138 195 204 255;
- }
- }
- part { name: "effect_spacer";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- }
- }
- //Effect Shape Part
- part { name: "tizen_vg_shape2";
- type: SWALLOW;
- clip_to: "tizen_vg_shape_clipper2";
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- rel1.relative: 0.5 0.5;
- rel2.relative: 0.5 0.5;
- }
- description { state: "ready" 0.0;
- rel1.to: "effect_spacer";
- rel2.to: "effect_spacer";
- }
- description { state: "pressed" 0.0;
- inherit: "ready" 0.0;
- }
- }
- part { name: "tizen_vg_shape_clipper2";
- type: RECT;
- description { state: "default" 0.0;
- visible: 0;
- color: 0 0 0 0;
- }
- description { state: "ready" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- description { state: "pressed" 0.0;
- color: 0 0 0 77;
- }
- }
- part { name: "padding_left_top";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- align: 0.0 0.0;
- rel2.relative: 0.0 0.0;
- min: 22 0;
- fixed: 1 1;
- }
- }
- part { name: "padding_right_bottom";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "tizen_vg_shape";
- rel2.to: "tizen_vg_shape";
- align: 1.0 1.0;
- rel1.relative: 1.0 1.0;
- min: 22 4;
- fixed: 1 1;
- }
- }
- part { name: "icon_rect";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- align: 0.0 0.5;
- rel1 {
- relative: 1.0 1.0;
- to: "padding_left_top";
- }
- rel2 {
- relative: 1.0 0.0;
- to_x: "padding_left_top";
- to_y: "padding_right_bottom";
- }
- min: 0 60;
- fixed: 1 1;
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- min: 60 60;
- max: 60 60;
- fixed: 1 1;
- }
- description { state: "icon_only" 0.0;
- inherit: "default" 0.0;
- }
- }
- part { name: "icon_text_padding";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- align: 1.0 0.5;
- min: 0 0;
- rel1 {
- relative: 0.0 0.0;
- to: "elm.text";
- }
- rel2 {
- relative: 0.0 1.0;
- to: "elm.text";
- }
- fixed: 1 1;
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- min: 14 0;
- }
- }
- part { name: "elm.swallow.content";
- type: SWALLOW;
- scale: 1;
- clip_to: "clipper";
- description { state: "default" 0.0;
- align: 0.0 1.0;
- rel1 {
- relative: 1.0 1.0;
- to: "padding_left_top";
- }
- rel2 {
- relative: 1.0 1.0;
- to_x: "padding_left_top";
- to_y: "padding_right_bottom";
- }
- min: 0 60;
- fixed: 1 0;
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- align: 1.0 0.5;
- rel1 {
- relative: 0.0 1.0;
- to_x: "icon_text_padding";
- to_y: "padding_left_top";
- }
- rel2 {
- relative: 0.0 0.0;
- to_x: "icon_text_padding";
- to_y: "padding_right_bottom";
- }
- min: 60 60;
- fixed: 1 1;
- }
- description { state: "icon_only" 0.0;
- rel1.to: "tizen_vg_shape";
- rel2.to: "tizen_vg_shape";
- min: 60 60;
- max: 60 60;
- align: 0.5 0.5;
- fixed: 1 1;
- }
- }
- part { name: "elm.text";
- type: TEXTBLOCK;
- mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- rel1 {
- relative: 1.0 1.0;
- to_x: "icon_rect";
- to_y: "padding_left_top";
- }
- rel2 {
- relative: 0.0 0.0;
- to: "padding_right_bottom";
- }
- text {
- style: "button_main";
- max: 1 0;
- }
- color: 250 250 250 255;
- }
- description { state: "pressed" 0.0;
- inherit: "default" 0.0;
- text.style: "button_main_press";
- color: 250 250 250 255;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- text.style: "button_main_dim";
- color: 250 250 250 163;
- }
- }
- part { name: "clipper";
- type: RECT;
- description { state: "default" 0.0;
- }
- description { state: "pressed" 0.0;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 163;
- }
- }
- part { name: "event";
- type: RECT;
- description { state: "default" 0.0;
- rel1.to: "tizen_vg_shape";
- rel2.to: "tizen_vg_shape";
- color: 0 0 0 0;
- }
- }
- }
- programs {
- program { name: "pressed_effect";
- action: STATE_SET "ready" 0.0;
- target: "tizen_vg_shape_clipper2";
- action: STATE_SET "custom" 0.0;
- target: "tizen_vg_shape2";
- after: "pressed_effect2";
- }
- program { name: "pressed_effect2";
- action: STATE_SET "pressed" 0.0;
- target: "elm.text";
- target: "clipper";
- target: "tizen_vg_shape2";
- target: "tizen_vg_shape_clipper2";
- transition: GLIDE_EASE_OUT(0.15);
- after: "pressed_effect3";
- }
- program { name: "pressed_effect3";
- script {
- set_int(animate, 0);
- }
- }
- program { name: "delay_unpressed_effect";
- in: 0.1 0.0;
- after: "unpressed_effect";
- }
- program { name: "unpressed_effect";
- script {
- if (get_int(disabled) == 0) {
- run_program(PROGRAM:"unpressed_effect2");
- run_program(PROGRAM:"unpressed_effect3");
- } else {
- run_program(PROGRAM:"disabled_effect");
- run_program(PROGRAM:"disabled_effect2");
- run_program(PROGRAM:"disabled_effect3");
- }
- }
- }
- program { name: "unpressed_effect2";
- action: STATE_SET "ready" 0.0;
- target: "tizen_vg_shape2";
- target: "tizen_vg_shape_clipper2";
- transition: GLIDE_EASE_OUT(0.45);
- }
- program { name: "unpressed_effect3";
- action: STATE_SET "default" 0.0;
- target: "elm.text";
- transition: GLIDE_EASE_OUT(0.45);
- after: "unpressed_effect4";
- }
- program { name: "unpressed_effect4";
- action: STATE_SET "default" 0.0;
- target: "clipper";
- after: "finished_animation";
- }
- program { name: "disabled_effect";
- action: STATE_SET "ready" 0.0;
- target: "tizen_vg_shape2";
- target: "tizen_vg_shape_clipper2";
- transition: GLIDE_EASE_OUT(0.45);
- }
- program { name: "disabled_effect2";
- action: STATE_SET "disabled" 0.0;
- target: "elm.text";
- transition: GLIDE_EASE_OUT(0.45);
- }
- program { name: "disabled_effect3";
- action: STATE_SET "disabled" 0.0;
- target: "clipper";
- target: "tizen_vg_shape_clipper";
- transition: GLIDE_EASE_OUT(0.45);
- after: "finished_animation";
- }
- program { name: "finished_animation";
- action: STATE_SET "default" 0.0;
- target: "tizen_vg_shape2";
- target: "tizen_vg_shape_clipper2";
- }
- program { name: "pressed";
- signal: "mouse,down,1*";
- source: "event";
- script {
- if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0) && (get_int(disabled) == 0)) {
- stop_program(PROGRAM:"delay_unpressed_effect");
- set_int(mouse_down, 1);
- set_int(animate, 1);
- custom_state(PART:"tizen_vg_shape2", "default", 0.0);
- get_effect_min_size(PART:"effect_spacer", 0.7, minw, minh);
- set_state_val(PART:"tizen_vg_shape2", STATE_MIN, get_int(minw), get_int(minh));
- emit("elm,action,press", "");
- run_program(PROGRAM:"pressed_effect");
- }
- }
- }
- program { name: "unpressed";
- signal: "mouse,up,1";
- source: "event";
- script {
- if (get_int(mouse_down) == 1) {
- set_int(mouse_down, 0);
- if (get_int(disabled) == 0) {
- if (get_int(animate) == 0) {
- run_program(PROGRAM:"unpressed_effect");
- } else {
- set_state(PART:"elm.text", "pressed", 0.0);
- set_state(PART:"clipper", "pressed", 0.0);
- set_state(PART:"tizen_vg_shape2", "pressed", 0.0);
- set_state(PART:"tizen_vg_shape_clipper2", "pressed", 0.0);
- set_int(animate, 0);
- run_program(PROGRAM:"delay_unpressed_effect");
- }
- emit("elm,action,unpress", "");
- }
- }
- }
- }
- program { name: "touch_snd";
- signal: "mouse,clicked,1";
- source: "event";
- script {
- if (get_int(multi_down) == 0) {
- if (get_int(disabled) == 0) {
- run_program(PROGRAM:"touch_sound");
- run_program(PROGRAM:"clicked_signal");
- }
- }
- }
- }
- program { name: "touch_sound";
- action: RUN_PLUGIN "touch_sound";
- }
- program { name: "clicked_signal";
- in: 0.001 0.0;
- action: SIGNAL_EMIT "elm,action,click" "";
- }
- program { name: "icon_show";
- signal: "elm,state,icon,visible";
- source: "elm";
- script {
- set_int(content, 1);
- set_state(PART:"icon_text_padding", "visible", 0.0);
- if (get_int(text) == 1) {
- set_state(PART:"icon_rect", "visible", 0.0);
- set_state(PART:"elm.swallow.content", "visible", 0.0);
- } else {
- set_state(PART:"icon_rect", "icon_only", 0.0);
- set_state(PART:"elm.swallow.content", "icon_only", 0.0);
- set_state(PART:"padding_left_top", "icon_only", 0.0);
- }
- }
- }
- program { name: "icon_hide";
- signal: "elm,state,icon,hidden";
- source: "elm";
- script {
- set_int(content, 0);
- set_state(PART:"icon_text_padding", "default", 0.0);
- set_state(PART:"icon_rect", "default", 0.0);
- set_state(PART:"elm.swallow.content", "default", 0.0);
- }
- }
- program { name: "text_show";
- signal: "elm,state,text,visible";
- source: "elm";
- script {
- set_int(text, 1);
- if (get_int(content) == 1) {
- set_state(PART:"icon_rect", "visible", 0.0);
- set_state(PART:"elm.swallow.content", "visible", 0.0);
- }
- }
- }
- program { name: "text_hide";
- signal: "elm,state,text,hidden";
- source: "elm";
- script {
- set_int(text, 0);
- if (get_int(content) == 1) {
- set_state(PART:"icon_rect", "icon_only", 0.0);
- set_state(PART:"elm.swallow.content", "icon_only", 0.0);
- }
- }
- }
- program { name: "disable";
- signal: "elm,state,disabled";
- source: "elm";
- script {
- set_int(disabled, 1);
- if (get_int(animate) == 1) return;
- set_state(PART:"clipper", "disabled", 0.0);
- set_state(PART:"tizen_vg_shape_clipper", "disabled", 0.0);
- set_state(PART:"elm.text", "disabled", 0.0);
- }
- }
- program { name: "enable";
- signal: "elm,state,enabled";
- source: "elm";
- script {
- set_int(disabled, 0);
- set_state(PART:"clipper", "default", 0.0);
- set_state(PART:"tizen_vg_shape_clipper", "default", 0.0);
- set_state(PART:"elm.text", "default", 0.0);
- }
- }
- program { name: "multi_down";
- signal: "elm,action,multi,down";
- source: "elm";
- script {
- set_int(multi_down, 1);
- }
- }
- program { name: "multi_up";
- signal: "elm,action,multi,up";
- source: "elm";
- script {
- set_int(multi_down, 0);
- }
- }
- program { name: "pass_event_enable";
- signal: "elm,event,pass,enabled";
- source: "elm";
- script {
- set_mouse_events(PART:"event", 0);
- }
- }
- program { name: "pass_event_disable";
- signal: "elm,event,pass,disabled";
- source:"elm";
- script {
- set_mouse_events(PART:"event", 1);
- }
- }
- program { name: "repeat_event_enable";
- signal: "elm,event,repeat,enabled";
- source: "elm";
- script {
- set_repeat_events(PART:"event", 1);
- }
- }
- program { name: "repeat_event_disable";
- signal: "elm,event,repeat,disabled";
- source:"elm";
- script {
- set_repeat_events(PART:"event", 0);
- }
- }
- }
- }
-
- group { name: "elm/button/base/datetime/ampm";
- inherit: "elm/button/base/datetime/default";
- parts {
- part { name: "base";
- description { state: "default" 0.0;
- min: 160 78;
- }
- }
- part { name: "tizen_vg_shape";
- description { state: "default" 0.0;
- min: 0 78;
- }
- }
- part { name: "tizen_vg_shape_clipper";
- description { state: "unselected" 0.0;
- color: 204 204 204 255;
- }
- }
- part { name: "padding_left_top";
- description { state: "default" 0.0;
- min: 32 10;
- }
- }
- part { name: "padding_right_bottom";
- description { state: "default" 0.0;
- min: 32 14;
- }
- }
- part { name: "elm.text";
- description { state: "default" 0.0;
- text.style: "button_ampm";
- color: 250 250 250 255;
- }
- description { state: "pressed" 0.0;
- text.style: "button_ampm_press";
- color: 250 250 250 255;
- }
- description { state: "unselected" 0.0;
- inherit: "default" 0.0;
- text.style: "button_ampm_dim";
- color: 250 250 250 163;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- text.style: "button_ampm_dim";
- color: 250 250 250 163;
- }
- }
- }
- program { name: "unselected";
- signal: "elm,action,button,unselected";
- source: "elm";
- script {
- set_int(selected, 0);
- set_state(PART:"tizen_vg_shape_clipper", "unselected", 0.0);
- set_state(PART:"elm.text", "unselected", 0.0);
- if (get_int(animate) == 1)
- run_program(PROGRAM:"pressed_effect3");
- }
- }
- program { name: "selected";
- signal: "elm,action,button,selected";
- source: "elm";
- script {
- set_int(selected, 1);
- set_state(PART:"tizen_vg_shape_clipper", "default", 0.0);
- if (get_int(animate) == 0)
- set_state(PART:"elm.text", "default", 0.0);
- }
- }
- program { name: "unselected_effect";
- action: STATE_SET "unselected" 0.0;
- target: "elm.text";
- transition: GLIDE_EASE_OUT(0.45);
- after: "unpressed_effect4";
- }
- program { name: "unpressed_effect";
- script {
- if (get_int(disabled) == 0) {
- run_program(PROGRAM:"unpressed_effect2");
- if (get_int(selected) == 0)
- run_program(PROGRAM:"unselected_effect");
- else
- run_program(PROGRAM:"unpressed_effect3");
- } else {
- run_program(PROGRAM:"disabled_effect");
- run_program(PROGRAM:"disabled_effect2");
- run_program(PROGRAM:"disabled_effect3");
- }
- }
- }
- program { name: "disable";
- signal: "elm,state,disabled";
- source: "elm";
- script {
- set_int(disabled, 1);
- if (get_int(animate) == 1) return;
- if (get_int(selected) == 1) {
- set_state(PART:"clipper", "disabled", 0.0);
- set_state(PART:"tizen_vg_shape_clipper", "disabled", 0.0);
- set_state(PART:"elm.text", "disabled", 0.0);
- }
- else {
- set_state(PART:"elm.text", "disabled", 0.0);
- }
- }
- }
- program { name: "enable";
- signal: "elm,state,enabled";
- source: "elm";
- script {
- set_int(disabled, 0);
- if (get_int(selected) == 1){
- set_state(PART:"clipper", "default", 0.0);
- set_state(PART:"tizen_vg_shape_clipper", "default", 0.0);
- set_state(PART:"elm.text", "default", 0.0);
- }
- else {
- set_state(PART:"elm.text", "default", 0.0);
- }
- }
- }
- }
-
-/***********************SPINNER BUTTONS STYLES******************************/
-
- group { "elm/button/event/default";
- inherit_only: 1;
- parts {
- rect { "event";
- mouse;
- desc { "default";
- color: 0 0 0 0;
- rel.to: "base";
- }
- desc { "disabled";
- inherit: "default";
- hid;
- }
- }
- }
- programs {
- /* Program for pressed event */
- program { "pressed";
- signal: "mouse,down,1*";
- source: "event";
- action: SIGNAL_EMIT "elm,action,press" "";
- after: "on_pressed";
- }
- /* Program for unpressed event */
- program { "unpressed";
- signal: "mouse,up,1*";
- source: "event";
- action: SIGNAL_EMIT "elm,action,unpress" "";
- after: "on_unpressed";
- }
- /* Program for clicked event */
- program { "clicked";
- signal: "mouse,clicked,1";
- source: "event";
- action: SIGNAL_EMIT "elm,action,click" "";
- after: "on_clicked";
- }
- /* Program for enabled event */
- program { "enabled";
- signal: "elm,state,enabled";
- source: "elm";
- action: STATE_SET "default";
- target: "event";
- after: "on_enabled";
- }
- /* Program for disabled event */
- program { "disabled";
- signal: "elm,state,disabled";
- source: "elm";
- action: STATE_SET "disabled";
- target: "event";
- after: "on_disabled";
- }
- program { "enable_event_pass";
- signal: "elm,event,pass,enabled";
- source: "elm";
- script {
- set_mouse_events(PART:"event", 0);
- }
- }
- program { "disable_event_pass";
- signal: "elm,event,pass,disabled";
- source:"elm";
- script {
- set_mouse_events(PART:"event", 1);
- }
- }
- program { "enable_event_repeat";
- signal: "elm,event,repeat,enabled";
- source: "elm";
- script {
- set_repeat_events(PART:"event", 1);
- }
- }
- program { "disable_event_repeat";
- signal: "elm,event,repeat,disabled";
- source:"elm";
- script {
- set_repeat_events(PART:"event", 0);
- }
- }
- }
- }
-
-
- group { "elm/button/base/naviframe/back_btn/default";
- alias: "elm/button/base/tizen_view/prev_btn";
- alias: "elm/button/base/naviframe/end_btn/default";
- images {
- vector: "core_press_top_left.svg";
- vector: "core_press_top_right.svg";
- vector: "core_press_bottom_left.svg";
- vector: "core_press_bottom_right.svg";
- vector: "core_press_center.svg";
- }
- target_group: "bg_effect_vector" "bg_effect_top_left" "bg_effect_top_right" "bg_effect_bottom_left" "bg_effect_bottom_right";
-
- images {
- set {
- name: "core_icon_back";
- image {
- image: "core_icon_back.png" COMP;
- }
- }
- }
- parts {
- spacer { "base";
- scale;
- nomouse;
- desc { "default";
- min: BUTTON_NAVIFRAME_BACK_BUTTON_SIZE_INC;
- max: BUTTON_NAVIFRAME_BACK_BUTTON_SIZE_INC;
- fixed: 1 1;
- }
- }
- spacer { "bg_spacer";
- scale;
- desc { "default";
- fixed: 1 1;
- rel1.relative: 0.5 0.5;
- rel2.relative: 0.5 0.5;
- min: BUTTON_NAVIFRAME_BACK_BUTTON_EFFECT_MAX_SIZE_INC;
- max: BUTTON_NAVIFRAME_BACK_BUTTON_EFFECT_MAX_SIZE_INC;
- }
- }
- BUTTON_VECTOR_PART(BUTTON_NAVIFRAME_BACK_CORNER_RADIUS
- , 0.7
- , "bg", "clipper_bg"
- , "core_press_top_left.svg", "core_press_top_right.svg"
- , "core_press_center.svg"
- , "core_press_bottom_left.svg", "core_press_bottom_right.svg");
- swallow { "bg";
- scale;
- nomouse;
- clip: "clipper_bg";
- desc { "default";
- rel.to: "bg_spacer";
- }
- }
- rect { "clipper_bg";
- scale;
- desc { "default";
- color_class: "button/naviframe/back_btn/bg";
- }
- desc { "pressed";
- color_class: "button/naviframe/back_btn/bg_pressed";
- }
- desc { "disabled";
- color_class: "button/naviframe/back_btn/bg_disabled";
- }
- }
- spacer { "effect_spacer";
- scale;
- desc { "default";
- rel.to: "bg";
- }
- }
- BUTTON_VECTOR_PART(BUTTON_NAVIFRAME_BACK_CORNER_RADIUS
- , 0.7
- , "bg_effect", "clipper_bg_effect"
- , "core_press_top_left.svg", "core_press_top_right.svg"
- , "core_press_center.svg"
- , "core_press_bottom_left.svg", "core_press_bottom_right.svg");
- //Effect Shape Part
- swallow { "bg_effect";
- clip: "clipper_bg_effect";
- scale;
- desc { "default";
- fixed: 1 1;
- rel1.to: "effect_spacer";
- rel2.to: "effect_spacer";
- rel1.relative: 0.5 0.5;
- rel2.relative: 0.5 0.5;
- }
- desc { "ready";
- inherit: "default";
- }
- desc { "pressed";
- inherit: "default";
- rel1.relative: 0.0 0.0;
- rel2.relative: 1.0 1.0;
- }
- }
- rect { "clipper_bg_effect";
- desc { "default";
- fixed: 1 1;
- rel.to: "bg_effect";
- color: 0 0 0 0;
- color_class: "button/naviframe/back_btn/effect";
- hid;
- }
- desc { "ready";
- inherit: "default";
- vis;
- }
- desc { "pressed";
- inherit: "ready";
- color: 255 255 255 255;
- }
- }
- image { "icon";
- scale;
- nomouse;
- clip: "clipper_icon";
- desc { "default";
- min: BUTTON_NAVIFRAME_BACK_BUTTON_SIZE_INC;
- max: BUTTON_NAVIFRAME_BACK_BUTTON_SIZE_INC;
- fixed: 1 1;
- image.normal: "core_icon_back";
- }
- desc { "rtl";
- inherit: "default";
- map.on: 1;
- map.rotation.y: 180.0;
- }
- }
- rect { "clipper_icon";
- scale;
- desc { "default";
- color_class: "button/naviframe/back_btn/icon";
- }
- desc { "pressed";
- color_class: "button/naviframe/back_btn/icon_pressed";
- }
- desc { "disabled";
- color_class: "button/naviframe/back_btn/icon_disabled";
- }
- }
- }
- inherit: "elm/button/event/default";
- script {
- public mouse_down = 0;
- public multi_down = 0;
- public animate = 0;
- public disabled = 0;
- public minw = 0;
- public minh = 0;
- public get_effect_min_size(base_effect, Float:ratio, min_w, min_h) {
- new x, y, w, h;
- get_geometry(base_effect, x, y, w, h);
- if (w > h) {
- set_float(min_w, (w - h * (1 - ratio)) / w);
- set_float(min_h, ratio);
- } else {
- set_float(min_w, ratio);
- set_float(min_h, (h - w * (1 - ratio)) / h);
- }
- }
- BUTTON_VECTOR_PART_MIRRORED_VALUE
- }
- program_remove: "unpressed";
- program_remove: "clicked";
- programs {
- program { "on_pressed";
- script {
- if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0) && (get_int(disabled) == 0)) {
- new Float:rel_w, Float:rel_h;
- stop_program(PROGRAM:"delay_unpressed_effect");
- set_int(mouse_down, 1);
- set_int(animate, 1);
- custom_state(PART:"bg_effect", "ready", 0.0);
- get_effect_min_size(PART:"effect_spacer", 0.7, minw, minh);
- rel_w = (1 - get_float(minw)) / 2;
- rel_h = (1 - get_float(minh)) / 2;
- set_state_val(PART:"bg_effect", STATE_REL1, rel_w, rel_h);
- set_state_val(PART:"bg_effect", STATE_REL2, 1 - rel_w, 1 - rel_h);
- run_program(PROGRAM:"pressed_effect");
- }
- }
- }
- program { "unpressed";
- signal: "mouse,up,1";
- source: "event";
- script {
- if (get_int(mouse_down) == 1) {
- set_int(mouse_down, 0);
- if (get_int(disabled) == 0) {
- if (get_int(animate) == 0) {
- run_program(PROGRAM:"unpressed_effect");
- } else {
- set_state(PART:"bg_effect", "pressed", 0.0);
- set_state(PART:"clipper_bg_effect", "pressed", 0.0);
- set_int(animate, 0);
- run_program(PROGRAM:"delay_unpressed_effect");
- }
- emit("elm,action,unpress", "");
- }
- }
- }
- }
- program { "clicked";
- signal: "mouse,clicked,1";
- source: "event";
- script {
- if ((get_int(multi_down) == 0) && (get_int(disabled) == 0)) {
- run_program(PROGRAM:"play_sound");
- run_program(PROGRAM:"clicked_signal");
- }
- }
- }
- program { "on_enabled";
- script {
- set_int(disabled, 0);
- set_state(PART:"clipper_bg", "default", 0.0);
- set_state(PART:"clipper_icon", "default", 0.0);
- }
- }
- program { "on_disabled";
- script {
- set_int(disabled, 1);
- if (get_int(animate) == 1) return;
- set_state(PART:"clipper_bg", "disabled", 0.0);
- set_state(PART:"clipper_icon", "disabled", 0.0);
- }
- }
- program { "pressed_effect";
- script {
- if(get_int(rtl_mode) == 0) {
- BUTTON_VECTOR_PART_MIRRORED_SET_STATE("bg_effect","","default")
- BUTTON_VECTOR_PART_MIRRORED_SET_STATE("bg_effect","_rtl","hidden")
- }
- else if(get_int(rtl_mode) == 1) {
- BUTTON_VECTOR_PART_MIRRORED_SET_STATE("bg_effect","_rtl","default")
- BUTTON_VECTOR_PART_MIRRORED_SET_STATE("bg_effect","","hidden")
- }
- set_state(PART:"clipper_bg_effect", "ready", 0.0);
- set_state(PART:"bg_effect", "custom", 0.0);
- run_program(PROGRAM:"pressed_effect2");
- }
- }
- program { "pressed_effect2";
- script {
- if(get_int(rtl_mode) == 0) {
- BUTTON_VECTOR_PART_MIRRORED_SET_STATE("bg_effect","","pressed")
- }
- else if(get_int(rtl_mode) == 1) {
- BUTTON_VECTOR_PART_MIRRORED_SET_STATE("bg_effect","_rtl","pressed")
- }
- run_program(PROGRAM:"pressed_effect2_1");
- }
- }
- program { "pressed_effect2_1";
- action: STATE_SET "pressed";
- target: "clipper_bg_effect";
- target: "bg_effect";
- target: "clipper_icon";
- transition: GLIDE_EASE_OUT(0.15);
- after: "pressed_effect3";
- }
- program { "pressed_effect3";
- script {
- set_state(PART:"clipper_bg", "pressed", 0.0);
- set_int(animate, 0);
- }
- }
- program { "delay_unpressed_effect";
- in: 0.1 0.0;
- after: "unpressed_effect";
- }
- program { "unpressed_effect";
- script {
- run_program(PROGRAM:"unpressed_effect2");
- run_program(PROGRAM:"unpressed_effect2_1");
- }
- }
- program { "unpressed_effect2";
- action: STATE_SET "ready";
- target: "clipper_bg_effect";
- transition: GLIDE_EASE_OUT(0.45);
- after: "unpressed_effect3";
- }
- program { "unpressed_effect2_1";
- action: STATE_SET "default";
- target: "clipper_icon";
- transition: GLIDE_EASE_OUT(0.45);
- }
- program { "unpressed_effect3";
- script {
- if(get_int(rtl_mode) == 0) {
- BUTTON_VECTOR_PART_MIRRORED_SET_STATE("bg_effect","","default")
- }
- else if(get_int(rtl_mode) == 1) {
- BUTTON_VECTOR_PART_MIRRORED_SET_STATE("bg_effect","_rtl","default")
- }
- set_state(PART:"clipper_bg_effect", "default", 0.0);
- set_state(PART:"clipper_bg", "default", 0.0);
- set_state(PART:"bg_effect", "default", 0.0);
- }
- }
- program { "play_sound";
- action: RUN_PLUGIN "touch_sound";
- }
- program { "clicked_signal";
- in: 0.001 0.0;
- action: SIGNAL_EMIT "elm,action,click" "";
- }
- program { "multi_down";
- signal: "elm,action,multi,down";
- source: "elm";
- script {
- set_int(multi_down, 1);
- }
- }
- program { "multi_up";
- signal: "elm,action,multi,up";
- source: "elm";
- script {
- set_int(multi_down, 0);
- }
- }
- BUTTON_VECTOR_PART_MIRRORED_PROGRAM("icon")
- }
- }
-
+++ /dev/null
-/*
- * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-/****************************************************************************
-Document: Tizen TV_General Guide_GUI Guideline_v1.0_140508_1.ppt, Page no. 76,
-*****************************************************************************/
-#define CHECK_SIZE 38 38
-#define CHECK_FONT_SIZE 28
-
-group { name: "elm/check/base/default";
- images {
- image: "checkbox_check_foc.png" COMP;
- image: "checkbox_check_nor.png" COMP;
- image: "checkbox_uncheck_nor.png" COMP;
- image: "checkbox_uncheck_foc.png" COMP;
- }
- data.item: "focus_highlight" "on";
- script {
- public is_focus=0;
- public is_disabled=0;
- public set_focus() {
- set_int(is_focus, 1);
- }
- public unset_focus() {
- set_int(is_focus, 0);
- }
- public set_check_set() {
- if (get_int(is_focus)) {
- set_state(PART:"check", "highlight", 0.0);
- set_state(PART:"bg", "highlight", 0.0);
- }
- else {
- set_state(PART:"check", "visible", 0.0);
- set_state(PART:"bg", "default", 0.0);
- }
- if (get_int(is_disabled)) {
- set_state(PART:"background", "on_disabled", 0.0);
- }
- else {
- set_state(PART:"background", "on", 0.0);
- }
- }
- public set_check_unset() {
- set_state(PART:"check", "default", 0.0);
- if (get_int(is_focus)) {
- set_state(PART:"bg", "highlight", 0.0);
- }
- else {
- set_state(PART:"bg", "default", 0.0);
- }
- if (get_int(is_disabled)) {
- set_state(PART:"background", "disabled", 0.0);
- }
- else {
- set_state(PART:"background", "default", 0.0);
- }
- }
- }
- parts {
- part { name: "background"; mouse_events: 0;
- type: RECT;
- description { state: "default" 0.0;
- rel.to: "bg";
- color_class: "check/default/bg";
- }
- description { state: "disabled";
- inherit: "default" 0.0;
- color_class: "check/default/bg_disabled";
- }
- description { state: "on";
- inherit: "default" 0.0;
- color_class: "check/default/bg_on";
- }
- description { state: "on_disabled";
- inherit: "default" 0.0;
- color_class: "check/default/bg_on_disabled";
- }
- }
- part { name: "bg"; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- rel2.relative: 0.0 1.0;
- align: 0.0 0.5;
- min: CHECK_SIZE;
- max: CHECK_SIZE;
- aspect: 1.0 1.0;
- aspect_preference: VERTICAL;
- image.normal: "checkbox_uncheck_nor.png";
- }
- description { state: "highlight" 0.0;
- inherit: "default" 0.0;
- image.normal: "checkbox_uncheck_foc.png";
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 51;
- }
- }
- part { name: "check"; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- rel1 {
- to: "bg";
- }
- rel2 {
- to: "bg";
- }
- image.normal: "checkbox_check_nor.png";
- visible: 0;
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- description { state: "highlight" 0.0;
- inherit: "default" 0.0;
- image.normal: "checkbox_check_foc.png";
- visible: 1;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- description { state: "disabled_visible" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 51;
- visible: 1;
- }
- }
- part { name: "elm.swallow.content"; type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- visible: 0;
- align: 0.0 0.5;
- fixed: 1 0;
- rel1.to_x: "bg";
- rel1.relative: 1.0 0.0;
- rel2.to_x: "bg";
- rel2.relative: 1.0 1.0;
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- fixed: 1 0;
- visible: 1;
- aspect: 1.0 1.0;
- min: CHECK_SIZE;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 128;
- }
- description { state: "disabled_visible" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 128;
- fixed: 1 0;
- visible: 1;
- aspect: 1.0 1.0;
- }
- }
- part { name: "elm.text"; type: TEXT; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- visible: 0;
- rel1.to_x: "elm.swallow.content";
- rel1.relative: 1.0 0.0;
- rel2.to: "pad.elm.text";
- rel2.relative: 0.0 1.0;
- color_class: "check/default/text";
- text {
- font: FONT_L;
- size: CHECK_FONT_SIZE;
- min: 0 1;
- align: -1.0 0.5;
- }
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- text.min: 1 1;
- text.ellipsis: -1;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- color_class: "check/default/text_disabled";
- }
- description { state: "disabled_visible" 0.0;
- inherit: "default" 0.0;
- color_class: "check/default/text_disabled";
- visible: 1;
- text.min: 1 1;
- text.ellipsis: -1;
- }
- }
- part { name: "pad.elm.text"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 1 0;
- max: 1 0;
- fixed: 1 0;
- rel1.relative: 1.0 1.0;
- align: 1.0 0.5;
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- min: 12 0;
- max: 12 0;
- }
- }
- part { name: "events"; type: RECT;
- ignore_flags: ON_HOLD;
- description { state: "default" 0.0;
- color: 0 0 0 0;
- }
- }
- part { name: "disabler"; type: RECT;
- description { state: "default" 0.0;
- color: 0 0 0 0;
- visible: 0;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- }
- programs {
- program { name: "click";
- signal: "mouse,clicked,1"; source: "events";
- action: SIGNAL_EMIT "elm,action,check,toggle" "";
- }
- program { name: "check_on";
- signal: "elm,state,check,on"; source: "elm";
- script{
- set_check_set();
- }
- }
- program { name: "check_off";
- signal: "elm,state,check,off"; source: "elm";
- script{
- set_check_unset();
- }
- }
- program { name: "text_show";
- signal: "elm,state,text,visible"; source: "elm";
- action: STATE_SET "visible" 0.0;
- target: "elm.text";
- target: "pad.elm.text";
- }
- program { name: "text_hide";
- signal: "elm,state,text,hidden"; source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.text";
- }
- program { name: "icon_show";
- signal: "elm,state,icon,visible"; source: "elm";
- action: STATE_SET "visible" 0.0;
- target: "elm.swallow.content";
- }
- program { name: "icon_hide";
- signal: "elm,state,icon,hidden"; source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.swallow.content";
- }
- program { name: "focus";
- signal: "elm,action,focus"; source: "elm";
- script {
- set_focus();
- }
- after: "enable_focus";
- }
- program { name: "enable_focus";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"check", st, 30, vl);
- if (!strcmp(st, "visible"))
- set_state(PART:"check", "highlight", 0.0);
-
- get_state(PART:"bg", st, 30, vl);
- if (!strcmp(st, "default"))
- set_state(PART:"bg", "highlight", 0.0);
- }
- }
- program { name: "unfocus";
- signal: "elm,action,unfocus"; source: "elm";
- script {
- unset_focus();
- }
- after: "disable_focus";
- }
- program { name: "disable_focus";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"check", st, 30, vl);
- if (!strcmp(st, "highlight"))
- set_state(PART:"check", "visible", 0.0);
-
- get_state(PART:"bg", st, 30, vl);
- if (!strcmp(st, "highlight"))
- set_state(PART:"bg", "default", 0.0);
- }
- }
- program { name: "disable";
- signal: "elm,state,disabled"; source: "elm";
- action: STATE_SET "disabled" 0.0;
- target: "bg";
- target: "disabler";
- after: "disable_text";
- }
- program { name: "disable_text";
- script {
- new st[31];
- new Float:vl;
- set_int(is_disabled, 1);
-
- get_state(PART:"elm.text", st, 30, vl);
- if (!strcmp(st, "visible"))
- set_state(PART:"elm.text", "disabled_visible", 0.0);
- else
- set_state(PART:"elm.text", "disabled", 0.0);
-
- get_state(PART:"elm.swallow.content", st, 30, vl);
- if (!strcmp(st, "visible"))
- set_state(PART:"elm.swallow.content", "disabled_visible", 0.0);
- else
- set_state(PART:"elm.swallow.content", "disabled", 0.0);
-
- get_state(PART:"check", st, 30, vl);
- if (!strcmp(st, "visible")) {
- set_state(PART:"check", "disabled_visible", 0.0);
- set_state(PART:"background", "on_disabled", 0.0);
- }
- else {
- set_state(PART:"check", "disabled", 0.0);
- set_state(PART:"background", "disabled", 0.0);
- }
- }
- }
- program { name: "enable";
- signal: "elm,state,enabled"; source: "elm";
- action: STATE_SET "default" 0.0;
- target: "bg";
- target: "disabler";
- after: "enable_text";
- }
- program { name: "enable_text";
- script {
- new st[31];
- new Float:vl;
- set_int(is_disabled, 0);
- get_state(PART:"elm.text", st, 30, vl);
- if (!strcmp(st, "disabled_visible"))
- set_state(PART:"elm.text", "visible", 0.0);
- else
- set_state(PART:"elm.text", "default", 0.0);
-
- get_state(PART:"elm.swallow.content", st, 30, vl);
- if (!strcmp(st, "visible"))
- set_state(PART:"elm.swallow.content", "visible", 0.0);
- else
- set_state(PART:"elm.swallow.content", "default", 0.0);
-
- get_state(PART:"check", st, 30, vl);
- if (!strcmp(st, "disabled_visible")) {
- set_state(PART:"check", "visible", 0.0);
- set_state(PART:"background", "on", 0.0);
- }
- else {
- set_state(PART:"check", "default", 0.0);
- set_state(PART:"background", "default", 0.0);
- }
- }
- }
- }
-}
-
-group { "elm/check/event/default";
- inherit_only: 1;
- parts {
- rect { "event";
- mouse;
- desc { "default";
- color: 0 0 0 0;
- rel.to: "base";
- }
- desc { "disabled";
- inherit: "default";
- hid;
- }
- }
- }
- programs {
- program { "clicked";
- signal: "mouse,clicked,1";
- source: "event";
- action: SIGNAL_EMIT "elm,action,click" "";
- after: "on_clicked";
- }
- program { "pressed";
- signal: "mouse,down,1*";
- source: "event";
- action: SIGNAL_EMIT "elm,action,press" "";
- after: "on_pressed";
- }
- program { "unpressed";
- signal: "mouse,up,1";
- source: "event";
- action: SIGNAL_EMIT "elm,action,unpress" "";
- after: "on_unpressed";
- }
- program { "set_check";
- signal: "elm,state,check,on";
- source: "elm";
- after: "on_set_check";
- }
- program { "unset_check";
- signal: "elm,state,check,off";
- source: "elm";
- after: "on_unset_check";
- }
- program { "disabled";
- signal: "elm,state,disabled";
- source: "elm";
- after: "on_disabled";
- }
- program { "enabled";
- signal: "elm,state,enabled";
- source: "elm";
- after: "on_enabled";
- }
- }
-}
-
-group { "elm/check/base/on&off";
- nomouse;
- images{
- vector: "core_toggle_bg_green.svg";
- vector: "core_toggle_bg_gray.svg";
- vector: "core_toggle_icon_on.svg";
- vector: "core_toggle_icon_off.svg";
- }
- target_group: "vector_group" "clipper_bg_vector" "clipper_icon_on" "clipper_icon_off" "icon_on" "icon_off";
- target_group: "vector_group_base" "clipper_bg_vector";
- target_group: "vector_group_phase1" "clipper_icon_on" "icon_on";
- target_group: "vector_group_phase2" "clipper_icon_off" "icon_off";
- target_group: "programs_set_anim" "set_check_with_anim" "set_check_with_anim_phase1" "set_check_with_anim_phase2" "set_check_with_anim_base";
- target_group: "programs_unset_anim" "unset_check_with_anim" "unset_check_with_anim_phase1" "unset_check_with_anim_phase2" "unset_check_with_anim_base";
- parts {
- spacer { "base";
- scale;
- desc { "default";
- min: CHECK_ONOFF_SIZE_INC;
- }
- }
- vector { name:"bg_vector";
- scale;
- clip: "clipper_bg_vector";
- desc { "default";
- image.normal: "core_toggle_bg_green.svg";
- min: CHECK_ONOFF_SIZE_INC;
- rel1.relative: 0 0.5;
- rel2.relative: 0 0.5;
- align: 0 0.5;
- fixed: 1 1;
- }
- }
- rect { name:"clipper_bg_vector";
- desc { "default";
- color_class: "check/on&off/bg";
- }
- desc { "on";
- color_class: "check/on&off/bg_on";
- }
- desc { "off";
- inherit: "default";
- }
- desc { "disabled_on";
- color_class: "check/on&off/bg_disabled";
- }
- desc { "disabled_off";
- inherit: "disabled_on";
- }
- }
- rect { name:"clipper_icon_on";
- desc { "default";
- color_class: "check/on&off/icon_on";
- }
- desc { "on";
- inherit: "default" ;
- }
- desc { "off";
- inherit: "default";
- }
- desc { "disabled_on";
- inherit:"default";
- }
- desc { "disabled_off";
- inherit:"default";
- }
- }
- vector { "icon_on";
- scale;
- clip: "clipper_icon_on";
- desc { "default";
- image.normal: "core_toggle_icon_on.svg";
- rel.to: "bg_vector";
- rel1.relative: 0.5 0.5;
- rel2.relative: 0.5 0.5;
- }
- desc { "on";
- inherit: "default";
- rel1.relative: 0.0 0.0;
- rel2.relative: 1.0 1.0;
- }
- desc { "off";
- inherit: "default";
- }
- desc { "disabled_on";
- inherit: "on";
- }
- desc { "disabled_off";
- inherit: "off";
- }
- }
- rect { name:"clipper_icon_off";
- desc { "default";
- color_class: "check/on&off/icon";
- }
- desc { "on";
- inherit: "default" ;
- }
- desc { "off";
- inherit: "default";
- }
- desc { "disabled_on";
- inherit:"default";
- }
- desc { "disabled_off";
- inherit:"default";
- }
- }
- vector { "icon_off";
- scale;
- clip: "clipper_icon_off";
- desc { "default";
- image.normal: "core_toggle_icon_off.svg";
- rel.to: "bg_vector";
- rel1.relative: 0.0 0.0;
- rel2.relative: 1.0 1.0;
- }
- desc { "on";
- inherit: "default";
- rel1.relative: 0.5 0.5;
- rel2.relative: 0.5 0.5;
- }
- desc { "off";
- inherit: "default";
- }
- desc { "disabled_on";
- inherit: "on";
- }
- desc { "disabled_off";
- inherit:"default";
- }
- }
- spacer { "padding_before_text";
- scale;
- desc { "default";
- align: 0.0 0.5;
- min: 0 0;
- rel1 {
- to: "bg_vector";
- relative: 1.0 0.0;
- }
- rel2 {
- to: "bg_vector";
- relative: 1.0 1.0;
- }
- }
- desc { "visible";
- inherit: "default";
- min: CHECK_PAD_BEFORE_TEXT_INC;
- fixed: 1 1;
- }
- }
- textblock { "elm.text";
- nomouse;
- scale;
- desc { "default";
- hid;
- fixed: 0 1;
- rel1 {
- relative: 1.0 0.5;
- to_x : "padding_before_text";
- }
- rel2 {
- relative: 1.0 0.5;
- }
- align: 0.0 0.5;
- text {
- style: "check_on&off";
- min: 0 0;
- }
- }
- desc { "visible";
- inherit: "default";
- vis;
- text.min: 0 1;
- }
- desc { "disabled";
- inherit: "default";
- vis;
- text {
- style: "check_on&off_dim";
- min: 0 1;
- }
- }
- desc { "pressed";
- inherit: "default";
- vis;
- text {
- style: "check_on&off_press";
- min: 0 1;
- }
- }
- }
- }
- inherit: "elm/check/event/default";
- script {
- public check_state;
- public disabled;
- public text;
- public animate = 0;
- }
- programs {
- program { "on_clicked";
- script {
- if (get_int(disabled) == 0) {
- emit("elm,action,check,toggle", "");
- run_program(PROGRAM:"touch_sound");
- }
- }
- }
- program { "on_pressed";
- script {
- if (get_int(disabled) == 1) return;
- if (get_int(text) == 1) {
- set_state(PART:"elm.text", "pressed", 0.0);
- }
- }
- }
- program { "on_unpressed";
- script {
- if (get_int(disabled) == 1) return;
- if (get_int(text) == 1) {
- set_state(PART:"elm.text", "visible", 0.0);
- }
- }
- }
- program { "on_disabled";
- script {
- set_int(disabled, 1);
- if (get_int(check_state) == 0) {
- run_program(PROGRAM:"disabled_off");
- } else {
- run_program(PROGRAM:"disabled_on");
- }
- if (get_int(text) == 1) {
- set_state(PART:"elm.text", "disabled", 0.0);
- }
- }
- }
- program { "on_enabled";
- script {
- set_int(disabled, 0);
- if (get_int(check_state) == 0) {
- run_program(PROGRAM:"enabled_off");
- } else {
- run_program(PROGRAM:"enabled_on");
- }
- if (get_int(text) == 1) {
- set_state(PART:"elm.text", "visible", 0.0);
- }
- }
- }
- program { "on_set_check";
- script {
- if (get_int(disabled) == 0) {
- if (get_int(animate) == 0) {
- run_program(PROGRAM:"set_check_without_anim");
- } else {
- run_program(PROGRAM:"set_check_with_anim");
- }
- } else {
- run_program(PROGRAM:"disabled_on");
- }
- }
- }
- program { "on_unset_check";
- script {
- if (get_int(disabled) == 0) {
- if (get_int(animate) == 0) {
- run_program(PROGRAM:"unset_check_without_anim");
- } else {
- run_program(PROGRAM:"unset_check_with_anim");
- }
- } else {
- run_program(PROGRAM:"disabled_off");
- }
- }
- }
- program { "touch_sound";
- action: RUN_PLUGIN "touch_sound";
- }
- program { "check_on_activate";
- signal: "elm,activate,check,on";
- source: "elm";
- script {
- set_int(animate, 1);
- }
- }
- program { "check_off_activate";
- signal: "elm,activate,check,off";
- source: "elm";
- script {
- set_int(animate, 1);
- }
- }
- program { "post_set_check";
- script{
- set_int(animate, 0);
- set_int(check_state, 1);
- }
- }
- program { "post_unset_check";
- script{
- set_int(animate, 0);
- set_int(check_state, 0);
- }
- }
- program { "set_check_without_anim";
- action: STATE_SET "on";
- target_groups: "vector_group";
- after: "post_set_check";
- }
- program { "set_check_with_anim";
- action: ACTION_STOP;
- target_groups: "programs_set_anim";
- target_groups: "programs_unset_anim";
- after: "set_check_with_anim_phase1";
- after: "set_check_with_anim_base";
- }
- program { "set_check_with_anim_phase1";
- action: STATE_SET "on";
- transition: LINEAR 0.15;
- target_groups: "vector_group_phase2";
- after: "set_check_with_anim_phase2";
- }
- program { "set_check_with_anim_phase2";
- action: STATE_SET "on";
- transition: LINEAR 0.15;
- target_groups: "vector_group_phase1";
- after: "post_set_check";
- after: "finished_animation";
- }
- program { "set_check_with_anim_base";
- action: STATE_SET "on";
- transition: LINEAR 0.3;
- target_groups: "vector_group_base";
- }
- program { "unset_check_without_anim";
- action: STATE_SET "off";
- target_groups: "vector_group";
- after: "post_unset_check";
- }
- program { "unset_check_with_anim";
- action: ACTION_STOP;
- target_groups: "programs_set_anim";
- target_groups: "programs_unset_anim";
- after: "unset_check_with_anim_phase1";
- after: "unset_check_with_anim_base";
- }
- program { "unset_check_with_anim_phase1";
- action: STATE_SET "off";
- transition: LINEAR 0.15;
- target_groups: "vector_group_phase1";
- after: "unset_check_with_anim_phase2";
- }
- program { "unset_check_with_anim_phase2";
- action: STATE_SET "off";
- transition: LINEAR 0.15;
- target_groups: "vector_group_phase2";
- after: "post_unset_check";
- after: "finished_animation";
- }
- program { "unset_check_with_anim_base";
- action: STATE_SET "off";
- transition: LINEAR 0.3;
- target_groups: "vector_group_base";
- }
- program { "disabled_on";
- action: STATE_SET "disabled_on";
- target_groups: "vector_group";
- }
- program { "disabled_off";
- action: STATE_SET "disabled_off";
- target_groups: "vector_group";
- }
- program { "enabled_on";
- action: STATE_SET "on";
- target_groups: "vector_group";
- }
- program { "enabled_off";
- action: STATE_SET "off";
- target_groups: "vector_group";
- }
- program { "visible_text";
- signal: "elm,state,text,visible";
- source: "elm";
- script {
- set_int(text, 1);
- set_state(PART:"padding_before_text", "visible", 0.0);
- if (get_int(disabled) == 1) {
- set_state(PART:"elm.text", "disabled", 0.0);
- }else {
- set_state(PART:"elm.text", "visible", 0.0);
- }
- }
- }
- program { "hidden_text";
- signal: "elm,state,text,hidden";
- source: "elm";
- script {
- set_int(text, 0);
- set_state(PART:"padding_before_text", "default", 0.0);
- set_state(PART:"elm.text", "default", 0.0);
- }
- }
- program { "finished_animation";
- action: SIGNAL_EMIT "animation,finished" "";
- }
- program { "enabled_event_pass";
- signal: "elm,event,pass,enabled";
- source: "elm";
- script {
- set_mouse_events(PART:"event", 0);
- }
- }
- program { "disabled_event_pass";
- signal: "elm,event,pass,disabled";
- source: "elm";
- script {
- set_mouse_events(PART:"event", 1);
- }
- }
- program { "enabled_event_repeat";
- signal: "elm,event,repeat,enabled";
- source: "elm";
- script {
- set_repeat_events(PART:"event", 1);
- }
- }
- program { "disabled_event_repeat";
- signal: "elm,event,repeat,disabled";
- source: "elm";
- script {
- set_repeat_events(PART:"event", 0);
- }
- }
- }
-}
-
-group { "elm/check/base/toggle";
- inherit: "elm/check/base/on&off";
-
- parts {
- rect { name:"clipper_bg_vector";
- desc { "default";
- color_class: "check/toggle/bg";
- }
- desc { "on";
- color_class: "check/toggle/bg_on";
- }
- desc { "off";
- inherit: "default";
- }
- desc { "disabled_on";
- color_class: "check/toggle/bg_disabled";
- }
- desc { "disabled_off";
- inherit: "disabled_on";
- }
- }
- rect { name:"clipper_icon_on";
- desc { "default";
- color_class: "check/toggle/icon_on";
- }
- desc { "on";
- inherit: "default" ;
- }
- desc { "off";
- inherit: "default";
- }
- desc { "disabled_on";
- inherit:"default";
- }
- desc { "disabled_off";
- inherit:"default";
- }
- }
- rect { name:"clipper_icon_off";
- desc { "default";
- color_class: "check/toggle/icon";
- }
- desc { "on";
- inherit: "default" ;
- }
- desc { "off";
- inherit: "default";
- }
- desc { "disabled_on";
- inherit:"default";
- }
- desc { "disabled_off";
- inherit:"default";
- }
- }
- textblock { "elm.text";
- desc { "default"
- text.style: "check_toggle";
- }
- desc { "visible"
- text.style: "check_toggle";
- }
- desc { "disabled"
- text.style: "check_toggle_dim";
- }
- desc { "pressed"
- text.style: "check_toggle_press";
- }
- }
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-/*************************************************************************************
-Tizen TV_General Guide_GUI Guideline_v1.0_140508.ppt page 90 style 1text
-Tizen TV_General Guide_GUI Guideline_v1.0_140508.ppt page 91 style 1text.1icon
-***************************************************************************************/
-
-group { name: "elm/ctxpopup/bg/default";
- parts {
- part { name: "ctxpopup_bg"; type: RECT; mouse_events: 1;
- description { state: "default" 0.0;
- color: 0 0 0 0;
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- color: 0 0 0 64;
- }
- }
- }
- programs {
- program { name: "clicked_event";
- signal: "mouse,clicked,1";
- source: "ctxpopup_bg";
- action: SIGNAL_EMIT "elm,action,click" "";
- }
- program { name: "show";
- signal: "elm,state,show";
- source: "elm";
- action: STATE_SET "visible" 0.0;
- target: "ctxpopup_bg";
- transition: LINEAR 0.25;
- }
- program { name: "hide";
- signal: "elm,state,hide";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "ctxpopup_bg";
- transition: LINEAR 0.25;
- }
- }
-}
-
-group { name: "elm/ctxpopup/base/default";
- parts {
- part { name: "base"; type: RECT;
- clip_to: "clip";
- description { state: "default" 0.0;
- color_class: "ctxpopup/default/bg";
- }
- }
- part { name: "elm.swallow.content"; type: SWALLOW;
- clip_to: "clip";
- description { state: "default" 0.0;
- rel1 { to:"base"; offset: 8 6; }
- rel2 { to:"base"; offset: -7 -8; }
- }
- }
- part { name: "event"; type: RECT;
- description { state: "default" 0.0;
- color: 0 0 0 0;
- visible: 1;
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- part { name: "clip"; type: RECT;
- description { state: "default" 0.0;
- color: 255 255 255 0;
- visible: 0;
- rel1.offset: -20 -20;
- rel2.offset: 19 19;
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 255;
- visible: 1;
- }
- }
-
- // 17x10
- part { name: "arrow_area_left"; type: SPACER;
- description { state: "default" 0.0;
- min: 17 10;
- fixed: 1 0;
- align: 1.0 0.5;
- rel1.to: "base";
- rel1.offset: 2 5;
- rel2.to: "base";
- rel2.offset: 2 -6;
- rel2.relative: 0.0 1.0;
- }
- }
- part { name: "elm.swallow.arrow_left"; type: SWALLOW; mouse_events: 0;
- clip_to: "clip";
- dragable.x: 1 1 0;
- dragable.y: 1 1 0;
- dragable.confine: "arrow_area_left";
- description { state: "default" 0.0;
- min: 9 13;
- fixed: 1 1;
- }
- }
-
- part { name: "arrow_area_right"; type: SPACER;
- description { state: "default" 0.0;
- min: 17 10;
- fixed: 1 0;
- align: 0.0 0.5;
- rel1.to: "base";
- rel1.offset: -3 5;
- rel1.relative: 1.0 0.0;
- rel2.to: "base";
- rel2.offset: -3 -6;
- }
- }
- part { name: "elm.swallow.arrow_right"; type: SWALLOW; mouse_events: 0;
- clip_to: "clip";
- dragable.x: 1 1 0;
- dragable.y: 1 1 0;
- dragable.confine: "arrow_area_right";
- description { state: "default" 0.0;
- min: 9 13;
- fixed: 1 1;
- }
- }
-
- // 10x17
- part { name: "arrow_area_up"; type: SPACER;
- description { state: "default" 0.0;
- min: 10 17;
- fixed: 1 1;
- align: 0.5 1;
- rel1.to: "base";
- rel1.offset: 5 3;
- rel2.to: "base";
- rel2.offset: -6 3;
- rel2.relative: 1.0 0.0;
- }
- }
- part { name: "elm.swallow.arrow_up"; type: SWALLOW; mouse_events: 0;
- clip_to: "clip";
- dragable.x: 1 1 0;
- dragable.y: 1 1 0;
- dragable.confine: "arrow_area_up";
- description { state: "default" 0.0;
- min: 11 9;
- fixed: 1 1;
- }
- }
-
- part { name: "arrow_area_down"; type: SPACER;
- description { state: "default" 0.0;
- min: 10 17;
- fixed: 1 1;
- align: 0.5 0.0;
- rel1.to: "base";
- rel1.offset: 5 -4;
- rel1.relative: 0.0 1.0;
- rel2.to: "base";
- rel2.offset: -6 -4;
- }
- }
- part { name: "elm.swallow.arrow_down"; type: SWALLOW; mouse_events: 0;
- clip_to: "clip";
- dragable.x: 1 1 0;
- dragable.y: 1 1 0;
- dragable.confine: "arrow_area_down";
- description { state: "default" 0.0;
- min: 11 9;
- fixed: 1 1;
- }
- }
- }
- programs {
- program {
- signal: "elm,state,show"; source: "elm";
- action: STATE_SET "visible" 0.0;
- transition: LINEAR 0.2;
- target: "clip";
- target: "event";
- }
- program {
- signal: "elm,state,hide"; source: "elm";
- action: STATE_SET "default" 0.0;
- transition: LINEAR 0.3;
- target: "clip";
- target: "event";
- after: "hide2";
- }
- program { name: "hide2";
- action: SIGNAL_EMIT "elm,action,hide,finished" "elm";
- }
-
- }
-}
-
-group { name: "elm/ctxpopup/arrow/default";
- images {
- image: "popover_arrow.png" COMP;
- }
- parts {
- part { name: "ctxpopup_arrow";
- type: IMAGE;
- scale: 1;
- description {
- state: "default" 0.0;
- min: 17 10;
- fixed: 1 1;
- visible: 0;
- align: 0.5 0.5;
- image.normal: "popover_arrow.png";
- }
- description { state: "left" 0.0;
- inherit: "default" 0.0;
- align: 0.0 0.5;
- map.on: 1;
- map.smooth: 1;
- map.rotation.z: 270;
- }
- description { state: "right" 0.0;
- inherit: "default" 0.0;
- align: 1.0 0.5;
- map.on: 1;
- map.smooth: 1;
- map.rotation.z: 90;
- }
- description { state: "top" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- align: 0.5 0.0;
- }
- description { state: "bottom" 0.0;
- inherit: "default" 0.0;
- align: 0.5 1.0;
- map.on: 1;
- map.smooth: 1;
- map.rotation.z: 180;
- }
- }
- }
- programs {
- program { name: "enable_left_arrow";
- signal: "elm,state,left";
- source: "elm";
- action: STATE_SET "left" 0.0;
- target: "ctxpopup_arrow";
- }
- program { name: "enable_right_arrow";
- signal: "elm,state,right";
- source: "elm";
- action: STATE_SET "right" 0.0;
- target: "ctxpopup_arrow";
- }
- program { name: "enable_top_arrow";
- signal: "elm,state,top";
- source: "elm";
- action: STATE_SET "top" 0.0;
- target: "ctxpopup_arrow";
- }
- program { name: "enable_bottom_arrow";
- signal: "elm,state,bottom";
- source: "elm";
- action: STATE_SET "bottom" 0.0;
- target: "ctxpopup_arrow";
- }
- }
-}
-
-group {
- name: "elm/ctxpopup/icon_text_style_item/default";
- alias: "elm/ctxpopup/text_style_item/default";
- alias: "elm/ctxpopup/icon_style_item/default";
- images {
- image: "hoversel_entry_bg.png" COMP;
- }
- parts {
- part { name: "base.pad"; type: SPACER;
- mouse_events: 0;
- description { state: "default" 0.0;
- min: 12 70;
- max: 12 70;
- align: 0 1;
- }
- }
-
- part { name: "bg"; type: RECT;
- mouse_events: 0;
- description { state: "default" 0.0;
- rel1.to: "base.pad";
- rel1.relative: 1 0;
- min: 300 70;
- max: 300 70;
- color: 0 0 0 0;
- }
- description { state: "clicked" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 255;
- color_class: "ctxpopup_item/default/effect";
- }
- }
- part { name: "elm.proxy1.icon";
- type: PROXY;
- clip_to: "disclip";
- scale: 1;
- description { state: "default" 0.0;
- max: 20 20;
- fixed : 1 1;
- rel1.to: "elm.swallow.icon";
- rel2.to: "elm.swallow.icon";
- rel1.relative: 1.0 0.0;
- rel2.relative: 2.0 1.0;
- source: "elm.swallow.icon";
- visible: 0;
- align: 0.0 0.5;
- }
- }
- part { name: "elm.proxy2.icon"; type: PROXY;
- clip_to: "disclip";
- scale: 1;
- description { state: "default" 0.0;
- min: 20 20;
- fixed : 1 1;
- rel1.to: "elm.proxy1.icon";
- rel2.to: "elm.proxy1.icon";
- rel1.relative: 0.0 0.0;
- rel2.relative: 1.0 1.0;
- max: 20 20;
- source: "elm.proxy1.icon";
- visible: 0;
- align: 1.0 0.5;
- }
- }
- part { name: "elm.swallow.icon"; type: SWALLOW;
- clip_to: "disclip";
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- rel1.to: "base.pad";
- rel1.relative: 1.0 0.0;
- rel2.to: "base.pad";
- rel2.relative: 1.0 1.0;
- min: 0 0;
- max: 37 37;
- align: 0 0.5;
- }
- }
- part { name: "elm.text"; type: TEXT; mouse_events: 0;
- clip_to: "disclip";
- scale: 1;
- description { state: "default" 0.0;
- min: 1 40;
- fixed: 1 1;
- align: 0 0.5;
- rel1.relative: 1.0 0.0;
- rel1.to_x: "elm.swallow.icon";
- rel2.to_x: "elm.proxy2.icon";
- rel2.relative: 1.0 1.0;
- color_class: "ctxpopup_item/default/text";
- text {
- font: "FONT_M";
- size: 30;
- align: 0.0 0.5;
- min: 1 1;
- ellipsis: -1;
- }
- }
- description { state: "focus" 0.0;
- inherit: "default" 0.0;
- color_class: "ctxpopup_item/default/text_focused";
- }
- description { state: "clicked" 0.0;
- inherit: "default" 0.0;
- color_class: "ctxpopup_item/default/text_disabled";
- }
- }
- part { name: "over1"; type: RECT; mouse_events: 1;
- repeat_events: 1;
- description { state: "default" 0.0;
- color: 255 255 255 0;
- }
- description { state: "clicked" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 255;
- }
- }
- part { name: "bottom_line"; type: RECT;
- mouse_events: 1;
- repeat_events: 1;
- description { state: "default" 0.0;
- min: 0 2;
- max: 9999 2;
- fixed: 1 1;
- rel1.to:"over1";
- rel1.relative: 0 1;
- rel1.offset: -32 0;
- rel2.to:"over1";
- color_class: "ctxpopup_item/default/divider";
- }
-
- }
- part { name: "over2"; type: RECT; mouse_events: 1;
- repeat_events: 1;
- description { state: "default" 0.0;
- color: 255 255 0 0;
- }
- description { state: "clicked" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 255;
- }
- description { state: "focus" 0.0;
- inherit: "default" 0.0;
- }
- }
- part { name: "disclip";
- type: RECT;
- description { state: "default" 0.0;
- color: 255 255 255 255;
- }
- description { state: "enabled" 0.0;
- color: 127 127 127 127;
- }
- }
- part { name: "blocker";
- type: RECT;
- description { state: "default" 0.0;
- visible: 0;
- }
- description { state: "enabled" 0.0;
- visible: 1;
- color: 0 0 0 0;
- }
- }
- }
- programs {
- program { name: "focused";
- signal: "elm,action,focus"; source: "elm";
- action: STATE_SET "focus" 0.0;
- target: "over2";
- }
- program { name: "unfocused";
- signal: "elm,action,unfocus"; source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.text";
- }
- program{
- name: "item_unclick";
- signal: "mouse,clicked,1";
- source: "over1";
- action: SIGNAL_EMIT "elm,action,click" "";
- }
- program { name: "disable";
- signal: "elm,state,disabled";
- source: "elm";
- action: STATE_SET "enabled" 0.0;
- target: "disclip";
- target: "blocker";
- }
- program { name: "enable";
- signal: "elm,state,enabled";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "disclip";
- target: "blocker";
- }
- program { name: "item_click2";
- signal: "mouse,down,1";
- source: "over2";
- script {
- set_state(PART:"elm.text", "clicked", 0.0);
- set_state(PART:"bg", "clicked", 0.0);
- }
- }
- program { name: "item_unclick2";
- signal: "mouse,up,1";
- source: "over2";
- script {
- set_state(PART:"elm.text", "default", 0.0);
- set_state(PART:"bg", "default", 0.0);
- }
- }
- }
-}
-group {
- name: "elm/ctxpopup/item_compress/default";
- images {
- image: "hoversel_entry_bg.png" COMP;
- }
- parts {
- part { name: "bg"; type: RECT;
- mouse_events: 0;
- description { state: "default" 0.0;
- color: 255 255 255 0;
- }
- description { state: "clicked" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 255;
- }
- }
- part { name: "elm.swallow.icon";
- type: SWALLOW;
- clip_to: "disclip";
- scale: 1;
- description { state: "default" 0.0;
- min: 25 25;
- max: 25 25;
- align: 0 0.5;
- aspect: 1.0 1.0;
- }
- }
- part { name: "elm.text"; type: TEXT; mouse_events: 0;
- clip_to: "disclip";
- scale: 1;
- description { state: "default" 0.0;
- min: 1 40;
- fixed: 0 1;
- align: 0.5 0.5;
- rel1.relative: 1.0 0.0;
- rel1.to: "elm.swallow.icon";
- rel2.relative: 1.0 1.0;
- color: 255 255 255 255;
- text {
- font: "FONT_M";
- size: 30;
- min: 0 1;
- align: 0.0 0.5;
- }
- }
- description { state: "clicked" 0.0;
- inherit: "default" 0.0;
- color: 0 0 0 255;
- }
- }
- part { name: "over1"; type: RECT; mouse_events: 1;
- repeat_events: 1;
- description { state: "default" 0.0;
- color: 255 255 255 0;
- }
- description { state: "clicked" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 255;
- }
- }
- part { name: "disclip";
- type: RECT;
- description { state: "default" 0.0;
- color: 255 255 255 255;
- }
- description { state: "enabled" 0.0;
- color: 127 127 127 127;
- }
- }
- part { name: "blocker";
- type: RECT;
- description { state: "default" 0.0;
- visible: 0;
- }
- description { state: "enabled" 0.0;
- visible: 1;
- color: 0 0 0 0;
- }
- }
- }
- programs {
- program { name: "item_unclick";
- signal: "mouse,clicked,1";
- source: "over1";
- action: SIGNAL_EMIT "elm,action,click" "";
- }
- program { name: "disable";
- signal: "elm,state,disabled";
- source: "elm";
- action: STATE_SET "enabled" 0.0;
- target: "disclip";
- target: "blocker";
- }
- program { name: "enable";
- signal: "elm,state,enabled";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "disclip";
- target: "blocker";
- }
- program { name: "item_click2";
- signal: "mouse,down,1";
- source: "over2";
- script {
- set_state(PART:"elm.text", "clicked", 0.0);
- set_state(PART:"bg", "clicked", 0.0);
- }
- }
- program { name: "item_unclick2";
- signal: "mouse,up,1";
- source: "over2";
- script {
- set_state(PART:"elm.text", "default", 0.0);
- set_state(PART:"bg", "default", 0.0);
- }
- }
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-/*********************************************************************
-Doc: Tizen TV_General Guide_GUI Guideline_v1.0_140709.ppt page:93
-**********************************************************************/
-
-group { name: "elm/datetime/base/default";
- alias: "elm/datetime/base/date_layout";
- parts {
- part { name: "base_bg";
- type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- color_class: "datetime/default/bg";
- }
- }
- part { name: "base";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 646 406;
- }
- }
- part { name: "bg.top.padding";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 0 0;
- max: -1 0;
- fixed: 0 1;
- rel1 {
- relative: 0.0 0.0;
- to: "base";
- }
- rel2 {
- relative: 1.0 0.0;
- to: "base";
- }
- align: 0.5 0.0;
- }
- }
- part { name: "bg.bottom.padding";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 0 0;
- max: -1 0;
- fixed: 0 1;
- rel1 {
- relative: 0.0 1.0;
- to: "base";
- }
- rel2 {
- relative: 1.0 1.0;
- to: "base";
- }
- align: 0.5 1.0;
- }
- }
- part { name: "bg";
- type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- min: 646 348;
- max: 646 348;
- rel1 {
- relative: 0.0 1.0;
- to: "bg.top.padding";
- }
- rel2 {
- relative: 1.0 0.0;
- to: "bg.bottom.padding";
- }
- color: 250 250 250 255;
- }
- }
- part { name: "left.padding";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 0 0;
- max: 0 -1;
- fixed: 1 0;
- rel1 {
- relative: 0.0 0.0;
- to: "bg";
- }
- rel2 {
- relative: 0.0 1.0;
- to: "bg";
- }
- align: 0.0 0.0;
- }
- }
- part { name: "right.padding";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 0 0;
- max: 0 -1;
- fixed: 1 0;
- rel2.to: "bg";
- rel1 {
- relative: 1.0 0.0;
- to: "bg";
- }
- rel2 {
- relative: 1.0 1.0;
- to: "bg";
- }
- align: 1.0 1.0;
- }
- }
- part { name: "field0";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 0;
- min: 206 0;
- rel1 {
- relative: 1.0 0.0;
- to: "left.padding";
- }
- rel2.to: "left.padding";
- align: 0.0 0.5;
- }
- }
- part { name: "center.padding1";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 0;
- min: 14 0;
- max: 14 -1;
- rel1 {
- relative: 1.0 0.0;
- to: "field0";
- }
- rel2.to: "field0";
- align: 0.0 0.5;
- }
- }
- part { name: "field1";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 0;
- min: 206 0;
- rel1 {
- relative: 1.0 0.0;
- to: "center.padding1";
- }
- rel2 {
- relative: 0.0 1.0;
- to_x: "center.padding2";
- to_y: "center.padding1";
- }
- }
- }
- part { name: "center.padding2";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 0;
- min: 14 0;
- max: 14 -1;
- rel1.to: "field2";
- rel2 {
- relative: 0.0 1.0;
- to: "field2";
- }
- align: 1.0 0.5;
- }
- }
- part { name: "field2";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 0;
- min: 206 0;
- rel1.to: "right.padding";
- rel2 {
- relative: 0.0 1.0;
- to: "right.padding";
- }
- align: 1.0 0.5;
- }
- }
- part { name: "field3";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- min: 0 0;
- max: 0 0;
- visible: 0;
- }
- }
- part { name: "field4";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- min: 0 0;
- max: 0 0;
- visible: 0;
- }
- }
- part { name: "field5";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- min: 0 0;
- max: 0 0;
- visible: 0;
- }
- }
- part {
- name: "event_area";
- type: RECT;
- description { state: "default" 0.0;
- color: 0 0 0 0;
- visible: 0;
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- part { name: "access";
- type: RECT;
- repeat_events: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- rel1.to: "bg";
- rel2.to: "bg";
- color: 0 0 0 0;
- }
- }
- }
-}
-group { name: "elm/datetime/base/date_layout";
- inherit: "elm/datetime/base/default";
- parts {
- part { name: "base_bg";
- type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- color_class: "datetime/date_layout/bg";
- }
- }
- }
-}
-
-group { name: "elm/datetime/base/time_layout";
- parts {
- part { name: "base_bg";
- type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- color_class: "datetime/time_layout/bg";
- }
- }
- part { name: "base";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 603 406;
- }
- }
- part { name: "bg.top.padding";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 0 0;
- max: -1 0;
- fixed: 0 1;
- rel1 {
- relative: 0.0 0.0;
- to: "base";
- }
- rel2 {
- relative: 1.0 0.0;
- to: "base";
- }
- align: 0.5 0.0;
- }
- }
- part { name: "bg.bottom.padding";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 0 0;
- max: -1 0;
- fixed: 0 1;
- rel1 {
- relative: 0.0 1.0;
- to: "base";
- }
- rel2 {
- relative: 1.0 1.0;
- to: "base";
- }
- align: 0.5 1.0;
- }
- }
- part { name: "bg";
- type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- min: 603 348;
- max: 603 348;
- rel1 {
- relative: 0.0 1.0;
- to: "bg.top.padding";
- }
- rel2 {
- relative: 1.0 0.0;
- to: "bg.bottom.padding";
- }
- color: 250 250 250 255;
- }
- }
- part { name: "left.padding";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 0 0;
- max: 0 -1;
- fixed: 1 0;
- rel1 {
- relative: 0.0 0.0;
- to: "bg";
- }
- rel2 {
- relative: 0.0 1.0;
- to: "bg";
- }
- align: 0.0 0.0;
- }
- }
- part { name: "right.padding";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 0 0;
- max: 0 -1;
- fixed: 1 0;
- rel1 {
- relative: 1.0 0.0;
- to: "bg";
- }
- rel2 {
- relative: 1.0 1.0;
- to: "bg";
- }
- align: 1.0 1.0;
- }
- }
- part { name: "field3";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 0;
- min: 146 0;
- rel1 {
- relative: 1.0 0.0;
- to: "left.padding";
- }
- rel2.to: "left.padding";
- align: 0.0 0.5;
- }
- }
- part { name: "center.padding1";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 0;
- min: 39 0;
- max: 39 -1;
- rel1 {
- relative: 1.0 0.0;
- to: "field3";
- }
- rel2.to: "field3";
- align: 0.0 0.5;
- }
- description { state: "invisible" 0.0;
- inherit: default 0.0;
- min: 55 0;
- max: 55 -1;
- }
- }
- part { name: "text_bg";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- rel1 {
- relative: 1.0 0.0;
- to: "center.padding1";
- }
- rel2.to: "center.padding1";
- align: 0.0 0.5;
- min: 18 0;
- max: 18 -1;
- fixed: 1 0;
- }
- description { state: "invisible" 0.0;
- inherit: default 0.0;
- min: 0 0;
- max: 0 0;
- }
- }
- part { name: "hour.minute.colon";
- type: TEXT;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "text_bg";
- rel2.to: "text_bg";
- color: 0 0 0 255;
- fixed: 1 1;
- text {
- min: 1 0;
- font: "TizenSans:style=Light";
- size: "106";
- text: ":";
- align: 0.5 0.44;
- }
- visible: 1;
- }
- description { state: "invisible" 0.0;
- inherit: default 0.0;
- visible: 0;
- }
- }
- part { name: "center.padding2";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 0;
- min: 39 0;
- max: 39 -1;
- rel1 {
- relative: 1.0 0.0;
- to: "text_bg";
- }
- rel2.to: "text_bg";
- align: 0.0 0.5;
- }
- description { state: "invisible" 0.0;
- inherit: default 0.0;
- min: 0 0;
- max: 0 0;
- }
- }
- part { name: "field4";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 0;
- min: 146 0;
- rel1 {
- relative: 1.0 0.0;
- to: "center.padding2";
- }
- rel2.to: "center.padding2";
- align: 0.0 0.5;
- }
- }
- part { name: "center.padding3";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 0;
- min: 39 0;
- max: 39 -1;
- rel1 {
- relative: 1.0 0.0;
- to: "field4";
- }
- rel2.to: "field4";
- align: 0.0 0.5;
- }
- description { state: "invisible" 0.0;
- inherit: default 0.0;
- min: 55 0;
- max: 55 -1;
- }
- }
- part { name: "text_bg2";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- rel1 {
- relative: 1.0 0.0;
- to: "center.padding3";
- }
- rel2.to: "center.padding3";
- align: 0.0 0.5;
- min: 18 0;
- max: 18 -1;
- fixed: 1 0;
- }
- description { state: "invisible" 0.0;
- inherit: default 0.0;
- min: 0 0;
- max: 0 0;
- }
- }
- part { name: "hour.minute.colon2";
- type: TEXT;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "text_bg2";
- rel2.to: "text_bg2";
- color: 0 0 0 255;
- fixed: 1 1;
- text {
- min: 1 0;
- font: "TizenSans:style=Light";
- size: "106";
- text: ":";
- align: 0.5 0.44;
- }
- visible: 1;
- }
- description { state: "invisible" 0.0;
- inherit: default 0.0;
- visible: 0;
- }
- }
- part { name: "center.padding4";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 0;
- min: 39 0;
- max: 39 -1;
- rel1 {
- relative: 1.0 0.0;
- to: "text_bg2";
- }
- rel2.to: "text_bg2";
- align: 0.0 0.5;
- }
- description { state: "invisible" 0.0;
- inherit: default 0.0;
- min: 0 0;
- max: 0 0;
- }
- }
- part { name: "field5";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 0;
- min: 160 0;
- max: 160 -1;
- rel1 {
- relative: 1.0 0.0;
- to: "center.padding4";
- }
- rel2.to: "center.padding4";
- align: 0.0 0.5;
- }
- }
- part { name: "field0";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- min: 0 0;
- max: 0 0;
- visible: 0;
- }
- }
- part { name: "field1";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- min: 0 0;
- max: 0 0;
- visible: 0;
- }
- }
- part { name: "field2";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- min: 0 0;
- max: 0 0;
- visible: 0;
- }
- }
- part {
- name: "event_area";
- type: RECT;
- description { state: "default" 0.0;
- color: 0 0 0 0;
- visible: 0;
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- part { name: "access";
- type: RECT;
- repeat_events: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- rel1.to: "bg";
- rel2.to: "bg";
- color: 0 0 0 0;
- }
- }
- }
- programs {
- program { name: "colon_field3_visible";
- signal: "elm,state,colon,visible,field3";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "center.padding1";
- target: "hour.minute.colon";
- target: "text_bg";
- target: "center.padding2";
- }
- program { name: "colon_field3_invisible";
- signal: "elm,state,colon,invisible,field3";
- source: "elm";
- action: STATE_SET "invisible" 0.0;
- target: "center.padding1";
- target: "hour.minute.colon";
- target: "text_bg";
- target: "center.padding2";
- }
- program { name: "colon_field4_visible";
- signal: "elm,state,colon,visible,field4";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "center.padding3";
- target: "hour.minute.colon2";
- target: "text_bg2";
- target: "center.padding4";
- }
- program { name: "colon_field4_invisible";
- signal: "elm,state,colon,invisible,field4";
- source: "elm";
- action: STATE_SET "invisible" 0.0;
- target: "center.padding3";
- target: "hour.minute.colon2";
- target: "text_bg2";
- target: "center.padding4";
- }
- }
-}
-
-group { name: "elm/datetime/base/time_layout_24hr";
- inherit: "elm/datetime/base/time_layout";
-
- parts {
- part { name: "base_bg";
- type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- color_class: "datetime/time_layout_24hr/bg";
- }
- }
- part { name: "base";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 388 406;
- }
- }
- part { name: "left.padding";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 0 0;
- max: 0 -1;
- fixed: 1 0;
- rel1 {
- relative: 0.0 0.0;
- to: "bg";
- }
- rel2 {
- relative: 0.0 1.0;
- to: "bg";
- }
- align: 0.0 0.0;
- }
- }
- part { name: "right.padding";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 0 0;
- max: 0 -1;
- fixed: 1 0;
- rel1 {
- relative: 1.0 0.0;
- to: "bg";
- }
- rel2 {
- relative: 1.0 1.0;
- to: "bg";
- }
- align: 1.0 1.0;
- }
- }
- part { name: "bg";
- type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- min: 388 348;
- max: 388 348;
- rel1 {
- relative: 0.0 1.0;
- to: "bg.top.padding";
- }
- rel2 {
- relative: 1.0 0.0;
- to: "bg.bottom.padding";
- }
- color: 250 250 250 255;
- }
- }
- part { name: "field5";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- min: 0 0;
- max: 0 -1;
- visible: 0;
- rel1.to: "right.padding";
- rel2.to: "right.padding";
- }
- }
- part { name: "access";
- type: RECT;
- repeat_events: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- rel1.to: "bg";
- rel2.to: "bg";
- color: 0 0 0 0;
- }
- }
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#define ENTRY_TEXT_SIZE_INC 60
-#define ENTRY_PREEDIT_BACKGROUND_COLOR_INC "#FAFAFA"
-#define ENTRY_PREEDIT_TEXT_COLOR_INC "#000000"
-#define ENTRY_PREEDIT_UNDERLINE_COLOR_INC "#FAFAFA"
-#define ENTRY_PREEDIT_SUB1_COLOR_INC "#2EA8E1"
-#define ENTRY_PREEDIT_SUB2_COLOR_INC "#9962C3"
-#define ENTRY_PREEDIT_SUB3_COLOR_INC "#76DE37"
-#define ENTRY_PREEDIT_SUB4_COLOR_INC "#999999"
-#define DEFAULT_COLOR 69 143 255 255
-
-styles
-{
- style { name: "entry_single_textblock_style";
- base: "font="FONT_M" font_size="32" align=left color=#FFF wrap=none text_class=entry left_margin=0 right_margin=0 color_class=entry/default/text_edit";
- tag: "br" "";
- tag: "ps" "";
- tag: "em" "+ font_style=Oblique";
- tag: "link" "+ color=#800 underline=on underline_color=#8008";
- tag: "hilight" "+ font_weight=Bold";
- tag: "preedit" "+ underline=on underline_color=#000";
- tag: "preedit_sel" "+ backing=on backing_color=#000 color=#FFFFFF";
- }
- style { name: "entry_single_textblock_selected_style";
- base: "font="FONT_M" font_size="32" align=left color=#FFF wrap=none text_class=entry left_margin=0 right_margin=0 color_class=entry/default/text_edit_focused";
- tag: "br" "";
- tag: "ps" "";
- tag: "em" "+ font_style=Oblique";
- tag: "link" "+ color=#800 underline=on underline_color=#8008";
- tag: "hilight" "+ font_weight=Bold";
- tag: "preedit" "+ underline=on underline_color=#000";
- tag: "preedit_sel" "+ backing=on backing_color=#000 color=#FFFFFF";
- }
- style { name: "entry_single_textblock_disabled_style";
- base: "font="FONT_M" font_size="32" align=left color=#FFF wrap=none text_class=entry left_margin=0 right_margin=0 color_class=entry/default/text_edit_disabled";
- tag: "br" "";
- tag: "ps" "";
- tag: "em" "+ font_style=Oblique";
- tag: "link" "+ color=#00000080 underline=on underline_color=#00000080";
- tag: "hilight" "+ font_weight=Bold";
- tag: "preedit" "+ underline=on underline_color=#000";
- tag: "preedit_sel" "+ backing=on backing_color=#000 color=#FFFFFF";
- }
- style { name: "entry_single_textblock_guide_style";
- base: "font="FONT_M" font_size="32" align=left color=#FFF wrap=none text_class=entry left_margin=0 right_margin=0 ellipsis=0.0 color_class=entry/default/text_guide";
- tag: "br" "";
- tag: "ps" "";
- tag: "em" "+ font_style=Oblique";
- tag: "hilight" "+ font_weight=Bold";
- }
-}
-styles
-{
- style { name: "entry_textblock_style";
- base: "font="FONT_M" font_size="32" align=left color=#FFF wrap=none text_class=entry left_margin=0 right_margin=0 color_class=entry/default/text_edit";
- tag: "em" "+ font_style=Oblique";
- tag: "link" "+ color=#800 underline=on underline_color=#8008";
- tag: "hilight" "+ font_weight=Bold";
- tag: "preedit" "+ underline=on underline_color=#000";
- tag: "preedit_sel" "+ backing=on backing_color=#000 color=#000";
- }
- style { name: "entry_textblock_selected_style";
- base: "font="FONT_M" font_size="32" align=left color=#FFF wrap=none text_class=entry left_margin=0 right_margin=0 color_class=entry/default/text_focused";
- tag: "em" "+ font_style=Oblique";
- tag: "link" "+ color=#800 underline=on underline_color=#8008";
- tag: "hilight" "+ font_weight=Bold";
- tag: "preedit" "+ underline=on underline_color=#000";
- tag: "preedit_sel" "+ backing=on backing_color=#000 color=#000";
- }
- style { name: "entry_textblock_disabled_style";
- base: "font="FONT_M" font_size="32" align=left color=#FFF wrap=none text_class=entry left_margin=0 right_margin=0 color_class=entry/default/text_edit_disabled";
- tag: "em" "+ font_style=Oblique";
- tag: "link" "+ color=#00000080 underline=on underline_color=#00000080";
- tag: "hilight" "+ font_weight=Bold";
- tag: "preedit" "+ underline=on underline_color=#000";
- tag: "preedit_sel" "+ backing=on backing_color=#000 color=#000";
- }
- style { name: "entry_textblock_guide_style";
- base: "font="FONT_M" font_size="32" align=left color=#FFF wrap=none text_class=entry left_margin=0 right_margin=0 ellipsis=0.0 color_class=entry/default/text_guide";
- tag: "em" "+ font_style=Oblique";
- tag: "hilight" "+ font_weight=Bold";
- }
-}
-styles
-{
- style { name: "entry_pin_textblock_style";
- base: "font="FONT_M" font_size="34" align=center color=#3d3d3d wrap=none text_class=entry left_margin=0 right_margin=0";
- tag: "br" "";
- tag: "ps" "";
- tag: "em" "+ font_style=Oblique";
- tag: "link" "+ color=#800 underline=on underline_color=#8008";
- tag: "hilight" "+ font_weight=Bold";
- tag: "preedit" "+ underline=on underline_color=#000";
- tag: "preedit_sel" "+ backing=on backing_color=#000 color=#FFFFFF";
- }
- style { name: "entry_pin_textblock_selected_style";
- base: "font="FONT_M" font_size="34" align=center color=#3d3d3d wrap=none text_class=entry left_margin=0 right_margin=0";
- tag: "br" "";
- tag: "ps" "";
- tag: "em" "+ font_style=Oblique";
- tag: "link" "+ color=#800 underline=on underline_color=#8008";
- tag: "hilight" "+ font_weight=Bold";
- tag: "preedit" "+ underline=on underline_color=#000";
- tag: "preedit_sel" "+ backing=on backing_color=#000 color=#FFFFFF";
- }
- style { name: "entry_pin_textblock_disabled_style";
- base: "font="FONT_M" font_size="34" align=center color=#3d3d3d wrap=none text_class=entry left_margin=0 right_margin=0";
- tag: "br" "";
- tag: "ps" "";
- tag: "em" "+ font_style=Oblique";
- tag: "link" "+ color=#00000080 underline=on underline_color=#00000080";
- tag: "hilight" "+ font_weight=Bold";
- tag: "preedit" "+ underline=on underline_color=#000";
- tag: "preedit_sel" "+ backing=on backing_color=#000 color=#FFFFFF";
- }
- style { name: "entry_pin_textblock_guide_style";
- base: "font="FONT_M" font_size="34" align=center color=#3d3d3d wrap=none text_class=entry left_margin=0 right_margin=0 ellipsis=0.0";
- tag: "br" "";
- tag: "ps" "";
- tag: "em" "+ font_style=Oblique";
- tag: "hilight" "+ font_weight=Bold";
- }
-}
-styles
-{
- style { name: "entry_single_small_textblock_style";
- base: "font="FONT_M" font_size="24" align=left color=#3d3d3d wrap=none text_class=entry left_margin=0 right_margin=0";
- tag: "br" "";
- tag: "ps" "";
- tag: "em" "+ font_style=Oblique";
- tag: "link" "+ color=#800 underline=on underline_color=#8008";
- tag: "hilight" "+ font_weight=Bold";
- tag: "preedit" "+ underline=on underline_color=#000";
- tag: "preedit_sel" "+ backing=on backing_color=#000 color=#FFFFFF";
- }
- style { name: "entry_single_small_textblock_selected_style";
- base: "font="FONT_M" font_size="24" align=left color=#3d3d3d wrap=none text_class=entry left_margin=0 right_margin=0";
- tag: "br" "";
- tag: "ps" "";
- tag: "em" "+ font_style=Oblique";
- tag: "link" "+ color=#800 underline=on underline_color=#8008";
- tag: "hilight" "+ font_weight=Bold";
- tag: "preedit" "+ underline=on underline_color=#000";
- tag: "preedit_sel" "+ backing=on backing_color=#000 color=#FFFFFF";
- }
- style { name: "entry_single_small_textblock_disabled_style";
- base: "font="FONT_M" font_size="24" align=left color=#3d3d3d wrap=none text_class=entry left_margin=0 right_margin=0";
- tag: "br" "";
- tag: "ps" "";
- tag: "em" "+ font_style=Oblique";
- tag: "link" "+ color=#00000080 underline=on underline_color=#00000080";
- tag: "hilight" "+ font_weight=Bold";
- tag: "preedit" "+ underline=on underline_color=#000";
- tag: "preedit_sel" "+ backing=on backing_color=#000 color=#FFFFFF";
- }
- style { name: "entry_single_small_textblock_guide_style";
- base: "font="FONT_M" font_size="24" align=left color=#7f7f7f wrap=none text_class=entry left_margin=0 right_margin=0 ellipsis=0.0";
- tag: "br" "";
- tag: "ps" "";
- tag: "em" "+ font_style=Oblique";
- tag: "hilight" "+ font_weight=Bold";
- }
-}
-styles
-{
- style { name: "entry_textblock_style_mixedwrap";
- base: "font="FONT_M" font_size="32" color=#000 wrap=mixed text_class=entry left_margin=2 right_margin=2";
- tag: "em" "+ font_style=Oblique";
- tag: "link" "+ color=#800 underline=on underline_color=#8008";
- tag: "hilight" "+ font_weight=Bold";
- tag: "preedit" "+ underline=on underline_color=#000";
- tag: "preedit_sel" "+ backing=on backing_color=#000 color=#000";
- }
- style { name: "entry_textblock_selected_style_mixedwrap";
- base: "font="FONT_M" font_size="32" color=#019cff wrap=word text_class=entry left_margin=2 right_margin=2";
- tag: "em" "+ font_style=Oblique";
- tag: "link" "+ color=#800 underline=on underline_color=#8008";
- tag: "hilight" "+ font_weight=Bold";
- tag: "preedit" "+ underline=on underline_color=#000";
- tag: "preedit_sel" "+ backing=on backing_color=#000 color=#000";
- }
- style { name: "entry_textblock_disabled_style_mixedwrap";
- base: "font="FONT_M" font_size="32" color=#919191 wrap=char text_class=entry left_margin=2 right_margin=2";
- tag: "em" "+ font_style=Oblique";
- tag: "link" "+ color=#00000080 underline=on underline_color=#00000080";
- tag: "hilight" "+ font_weight=Bold";
- tag: "preedit" "+ underline=on underline_color=#000";
- tag: "preedit_sel" "+ backing=on backing_color=#000 color=#000";
- }
- style { name: "entry_textblock_guide_style_mixedwrap";
- base: "font="FONT_M" font_size="32" color=#7f7f7f wrap=mixed text_class=entry left_margin=2 right_margin=2 ellipsis=0.0";
- tag: "em" "+ font_style=Oblique";
- tag: "hilight" "+ font_weight=Bold";
- }
-}
-styles
-{
- style { name: "entry_textblock_style_charwrap";
- base: "font="FONT_M" font_size="32" color=#000 wrap=char text_class=entry left_margin=2 right_margin=2";
- tag: "em" "+ font_style=Oblique";
- tag: "link" "+ color=#800 underline=on underline_color=#8008";
- tag: "hilight" "+ font_weight=Bold";
- tag: "preedit" "+ underline=on underline_color=#000";
- tag: "preedit_sel" "+ backing=on backing_color=#000 color=#000";
- }
- style { name: "entry_textblock_selected_style_charwrap";
- base: "font="FONT_M" font_size="32" color=#019cff wrap=word text_class=entry left_margin=2 right_margin=2";
- tag: "em" "+ font_style=Oblique";
- tag: "link" "+ color=#800 underline=on underline_color=#8008";
- tag: "hilight" "+ font_weight=Bold";
- tag: "preedit" "+ underline=on underline_color=#000";
- tag: "preedit_sel" "+ backing=on backing_color=#000 color=#000";
- }
- style { name: "entry_textblock_disabled_style_charwrap";
- base: "font="FONT_M" font_size="32" color=#919191 wrap=char text_class=entry left_margin=2 right_margin=2";
- tag: "em" "+ font_style=Oblique";
- tag: "link" "+ color=#00000080 underline=on underline_color=#00000080";
- tag: "hilight" "+ font_weight=Bold";
- tag: "preedit" "+ underline=on underline_color=#000";
- tag: "preedit_sel" "+ backing=on backing_color=#000 color=#000";
- }
- style { name: "entry_textblock_guide_style_charwrap";
- base: "font="FONT_M" font_size="32" color=#7f7f7f wrap=char text_class=entry left_margin=2 right_margin=2 ellipsis=0.0";
- tag: "em" "+ font_style=Oblique";
- tag: "hilight" "+ font_weight=Bold";
- }
-}
-
-images {
- image: "search_searchbar_bg_foc.png" COMP;
- image: "search_searchbar_bg_nor.png" COMP;
- image: "search_searchbar_small_bg_foc.png" COMP;
- image: "search_searchbar_small_bg_nor.png" COMP;
-}
-
-/*********************************************************************************
-Document: Tizen TV_General Guide_GUI Guideline_v1.1_140709.ppt
-Page No. 103
-stlye: Text Input Field
-**********************************************************************************/
-group { name: "elm/scroller/entry/input.field";
- inherit: "elm/scroller/base/default";
- alias: "elm/scroller/entry_single/input.field";
- parts {
- part { name: "pad.left"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 28 5;
- max: 28 5;
- fixed: 1 1;
- rel1.to: "bg";
- align: 0.0 0.0;
- }
- }
- part { name: "pad.right"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 30 5;
- max: 30 5;
- fixed: 1 1;
- rel2.to: "bg";
- align: 1.0 1.0;
- }
- }
- part { name: "base_highlight";
- after: "bg";
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "bg";
- rel2.to: "bg";
- image {
- normal: "search_searchbar_bg_nor.png";
- border: 5 5 5 5;
- border_scale: 1;
- }
- }
- description { state: "selected" 0.0;
- inherit: "default" 0.0;
- image.normal: "search_searchbar_bg_foc.png";
- }
- description { state: "over" 0.0;
- inherit: "default" 0.0;
- image.normal: "search_searchbar_bg_foc.png";
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- image.normal: "search_searchbar_bg_nor.png";
- }
- description { state: "highlight" 0.0;
- inherit: "default" 0.0;
- image.normal: "search_searchbar_bg_foc.png";
- }
- description { state: "normal" 0.0;
- inherit: "default" 0.0;
- image.normal: "search_searchbar_bg_nor.png";
- }
- }
- part { name: "clipper";
- description { state: "default" 0.0;
- rel1.to: "pad.left";
- rel1.relative: 1.0 1.0;
- rel2.to: "pad.right";
- rel2.relative: 0.0 0.0;
- }
- }
- part { name: "elm.swallow.content";
- description { state: "default" 0.0;
- rel1.to: "pad.left";
- rel1.relative: 1.0 1.0;
- rel2.to: "pad.right";
- rel2.relative: 0.0 0.0;
- }
- }
- }
- programs {
- program { name: "disable";
- signal: "elm,state,disabled"; source: "elm";
- action: STATE_SET "disabled" 0.0;
- target: "base_highlight";
- }
- program { name: "select";
- signal: "elm,state,selected"; source: "elm";
- action: STATE_SET "selected" 0.0;
- target: "base_highlight";
- }
- program { name: "over";
- signal: "elm,state,mouse,in"; source: "elm";
- action: STATE_SET "over" 0.0;
- target: "base_highlight";
- }
- program { name: "enable";
- signal: "elm,state,enabled"; source: "elm";
- action: STATE_SET "default" 0.0;
- target: "base_highlight";
- }
- program { name: "go_active";
- signal: "elm,state,selected"; source: "elm";
- action: STATE_SET "selected" 0.0;
- target: "base_highlight";
- }
- program { name: "go_passive";
- signal: "elm,state,unselected"; source: "elm";
- action: STATE_SET "default" 0.0;
- target: "base_highlight";
- }
- program { name: "highlight_show";
- signal: "elm,action,focus_highlight,show"; source: "elm";
- action: STATE_SET "selected" 0.0;
- transition: ACCELERATE 0.01;
- target: "base_highlight";
- }
- program { name: "highlight_hide";
- signal: "elm,action,focus_highlight,hide"; source: "elm";
- action: STATE_SET "normal" 0.0;
- transition: DECELERATE 0.01;
- target: "base_highlight";
- }
- }
-}
-
-/*********************************************************************************
-Document: Tizen TV_General Guide_GUI Guideline_v1.1_140709.ppt
-Page No. 103
-stlye: Text Input Field with Icon
-**********************************************************************************/
-group { name: "elm/scroller/entry/input.field.icon";
- inherit: "elm/scroller/entry/input.field";
- alias: "elm/scroller/entry_single/input.field.icon";
- parts {
- part { name: "pad.left";
- description { state: "default" 0.0;
- min: 15 5;
- max: 15 5;
- }
- }
- part { name: "pad.right";
- description { state: "default" 0.0;
- min: 30 5;
- max: 30 5;
- }
- }
- part { name: "icon_base"; type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- color: 197 200 203 255;
- }
- }
- part { name: "elm.swallow.icon"; type: SWALLOW;
- scale: 1;
- clip_to: "icon_base";
- description { state: "default" 0.0;
- min: 60 60;
- max: 60 60;
- fixed: 1 1;
- rel1.to: "pad.left";
- rel1.relative: 1.0 1.0;
- rel2.to_x: "pad.left";
- rel2.to_y: "pad.right";
- rel2.relative: 1.0 0.0;
- align: 0.0 0.5;
- aspect_preference: BOTH;
- }
- }
- part { name: "clipper";
- description { state: "default" 0.0;
- rel1.to_x: "elm.swallow.icon";
- }
- }
- part { name: "elm.swallow.content";
- description { state: "default" 0.0;
- rel1.to_x: "elm.swallow.icon";
- }
- }
- }
-}
-
-/*********************************************************************************
-Document: Tizen TV_General Guide_GUI Guideline_v1.1_140709.ppt
-Page No. 105
-stlye: Text Input Field
-**********************************************************************************/
-group { name: "elm/scroller/entry/input.field.small";
- inherit: "elm/scroller/entry/input.field";
- alias: "elm/scroller/entry_single/input.field.small";
- parts {
- part { name: "pad.left";
- description { state: "default" 0.0;
- min: 18 4;
- max: 18 4;
- }
- }
- part { name: "pad.right";
- description { state: "default" 0.0;
- min: 18 4;
- max: 18 4;
- }
- }
- part { name: "base_highlight";
- description { state: "default" 0.0;
- image {
- normal: "search_searchbar_small_bg_nor.png";
- border: 4 4 4 4;
- border_scale: 1;
- }
- }
- description { state: "selected" 0.0;
- inherit: "default" 0.0;
- image.normal: "search_searchbar_small_bg_foc.png";
- }
- description { state: "over" 0.0;
- inherit: "default" 0.0;
- image.normal: "search_searchbar_small_bg_foc.png";
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- image.normal: "search_searchbar_small_bg_nor.png";
- }
- description { state: "highlight" 0.0;
- inherit: "default" 0.0;
- image.normal: "search_searchbar_small_bg_foc.png";
- }
- description { state: "normal" 0.0;
- inherit: "default" 0.0;
- image.normal: "search_searchbar_small_bg_nor.png";
- }
- }
- }
-}
-
-/*********************************************************************************
-Document: Tizen TV_General Guide_GUI Guideline_v1.1_140709.ppt
-Page No. 105
-stlye: Text Input Field with Icon
-**********************************************************************************/
-group { name: "elm/scroller/entry/input.field.small.icon";
- inherit: "elm/scroller/entry/input.field.small";
- alias: "elm/scroller/entry_single/input.field.small.icon";
- parts {
- part { name: "pad.left"; type: SPACER;
- description { state: "default" 0.0;
- min: 14 5;
- max: 14 5;
- }
- }
- part { name: "pad.right";
- description { state: "default" 0.0;
- min: 18 5;
- max: 18 5;
- }
- }
- part { name: "icon_base"; type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- color: 158 158 158 178;
- }
- }
- part { name: "elm.swallow.icon"; type: SWALLOW;
- scale: 1;
- clip_to: "icon_base";
- description { state: "default" 0.0;
- min: 60 60;
- max: 60 60;
- fixed: 1 1;
- rel1.to: "pad.left";
- rel1.relative: 1.0 1.0;
- rel2.to_x: "pad.left";
- rel2.to_y: "pad.right";
- rel2.relative: 1.0 0.0;
- align: 0.0 0.5;
- aspect_preference: BOTH;
- }
- }
-
- part { name: "clipper";
- description { state: "default" 0.0;
- rel1.to_x: "pad.icon";
- }
- }
- part { name: "elm.swallow.content";
- description { state: "default" 0.0;
- rel1.to_x: "pad.icon";
- }
- }
- part { name: "pad.icon"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 8 40;
- max: 8 40;
- fixed: 1 1;
- rel1.to: "elm.swallow.icon";
- rel1.relative: 1.0 0.5;
- align: 0.0 0.5;
- }
- }
- }
-}
-
-/*********************************************************************************
-Document: Tizen TV_General Guide_GUI Guideline_v1.1_140709.ppt
-Page No. 103
-stlye: Text Input Field
-**********************************************************************************/
-group { name: "elm/entry/base/input.field";
- alias: "elm/entry/base/default";
- data {
- item: "focus_highlight" "on";
- }
- parts {
- part { name: "elm.guide"; type: TEXTBLOCK; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "elm.text";
- rel2.to: "elm.text";
- text {
- style: "entry_textblock_guide_style";
- min: 0 1;
- }
- }
- description { state: "hidden" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- part { name: "elm.text"; type: TEXTBLOCK; mouse_events: 1;
- scale: 1;
- entry_mode: EDITABLE;
- select_mode: DEFAULT;
- cursor_mode: BEFORE;
- multiline: 1;
- source: "elm/entry/selection/input.field";
- source4: "elm/entry/cursor/input.field";
- source5: "elm/entry/anchor/input.field";
- description { state: "default" 0.0;
- text {
- style: "entry_textblock_style";
- min: 0 1;
- align: 0.0 0.5;
- }
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- text {
- style: "entry_textblock_disabled_style";
- min: 0 1;
- }
- }
- description { state: "selected" 0.0;
- inherit: "default" 0.0;
- text {
- style: "entry_textblock_selected_style";
- min: 0 1;
- }
- }
- description { state: "highlight" 0.0;
- inherit: "default" 0.0;
- text {
- style: "entry_textblock_selected_style";
- min: 0 1;
- }
- }
- description { state: "enabled" 0.0;
- inherit: "default" 0.0;
- text {
- style: "entry_textblock_style";
- min: 0 1;
- }
- }
- }
- }
- programs {
- program { name: "focus";
- signal: "load"; source: "";
- action: FOCUS_SET;
- target: "elm.text";
- }
- program { name: "disable";
- signal: "elm,state,disabled"; source: "elm";
- action: STATE_SET "disabled" 0.0;
- target: "elm.text";
- }
- program { name: "select";
- signal: "elm,state,selected"; source: "elm";
- action: STATE_SET "selected" 0.0;
- target: "elm.text";
- }
- program { name: "over";
- signal: "elm,state,mouse,in"; source: "elm";
- action: STATE_SET "over" 0.0;
- target: "elm.text";
- }
- program { name: "enable";
- signal: "elm,state,enabled"; source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.text";
- target: "elm.guide";
- }
- program { name: "go_active";
- signal: "elm,state,selected"; source: "elm";
- action: STATE_SET "selected" 0.0;
- target: "elm.text";
- target: "elm.guide";
- }
- program { name: "go_passive";
- signal: "elm,state,unselected"; source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.text";
- target: "elm.guide";
- }
- program { name: "gdisable";
- signal: "elm,guide,disabled"; source: "elm";
- action: STATE_SET "hidden" 0.0;
- target: "elm.guide";
- }
- program { name: "genable";
- signal: "elm,guide,enabled"; source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.guide";
- }
- program { name: "highlight_show";
- signal: "elm,action,focus_highlight,show"; source: "elm";
- action: STATE_SET "selected" 0.0;
- transition: ACCELERATE 0.01;
- target: "elm.text";
- }
- program { name: "highlight_hide";
- signal: "elm,action,focus_highlight,hide"; source: "elm";
- action: STATE_SET "normal" 0.0;
- transition: DECELERATE 0.01;
- target: "elm.text";
- }
- }
-}
-
-/*****************************************************************************************
-Document: Tizen TV_General Guide_GUI Guideline_v1.1_140709.ppt
-Page No. 103
-style: Text Input Field
-*******************************************************************************************/
-group { name: "elm/entry/base-single/input.field";
- inherit: "elm/entry/base/input.field";
- alias: "elm/entry/base-single/input.field.icon";
- parts {
- part { name: "elm.guide"; type: TEXTBLOCK; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "elm.text";
- rel2.to: "elm.text";
- text {
- style: "entry_single_textblock_guide_style";
- min: 0 1;
- }
- }
- description { state: "hidden" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- part { name: "elm.text"; type: TEXTBLOCK; mouse_events: 1;
- scale: 1;
- multiline: 0;
- description { state: "default" 0.0;
- text {
- style: "entry_single_textblock_style";
- min: 1 1;
- ellipsis: -1;
- max: 0 0;
- align: 0.0 0.5;
- }
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- text {
- style: "entry_single_textblock_disabled_style";
- }
- }
- description { state: "selected" 0.0;
- inherit: "default" 0.0;
- text {
- style: "entry_single_textblock_selected_style";
- min: 0 1;
- }
- }
- description { state: "enabled" 0.0;
- inherit: "default" 0.0;
- text {
- style: "entry_single_textblock_style";
- min: 0 1;
- }
- }
- }
- }
-}
-
-/*****************************************************************************************
-Document: Tizen TV_General Guide_GUI Guideline_v1.1_140709.ppt
-Page No. 103
-style : Text Input Field
-NO EDIT
-**************************************************************************/
-group { name: "elm/entry/base-single-noedit/input.field";
- inherit: "elm/entry/base/input.field";
- parts {
- part { name: "elm.guide"; type: TEXTBLOCK; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "elm.text";
- rel2.to: "elm.text";
- text {
- style: "entry_single_textblock_guide_style";
- min: 0 1;
- }
- }
- description { state: "hidden" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- part { name: "elm.text";
- entry_mode: PLAIN;
- multiline: 0;
- scale: 1;
- source: "elm/entry/selection/input.field";
- source4: "";
- source5: "elm/entry/anchor/input.field";
- description { state: "default" 0.0;
- text {
- style: "entry_single_textblock_style";
- min: 1 1;
- ellipsis: -1;
- max: 0 0;
- align: 0.0 0.5;
- }
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- text {
- style: "entry_single_textblock_disabled_style";
- }
- }
- }
- }
-}
-
-/*****************************************************************************************
-Document: Tizen TV_General Guide_GUI Guideline_v1.1_140709.ppt
-Page No. 103
-style : Text Input Field
-PASSWORD
-********************************************************************************************/
-group { name: "elm/entry/base-password/input.field";
- inherit: "elm/entry/base/input.field";
- parts {
- part { name: "elm.guide"; type: TEXTBLOCK; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "elm.text";
- rel2.to: "elm.text";
- text {
- style: "entry_single_textblock_guide_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- description { state: "hidden" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- part { name: "elm.text"; type: TEXTBLOCK; mouse_events: 1;
- entry_mode: PASSWORD;
- cursor_mode: BEFORE;
- select_mode: EXPLICIT;
- scale: 1;
- multiline: 0;
- source: "elm/entry/selection/input.field";
- source4: "elm/entry/cursor/input.field";
- source5: "elm/entry/anchor/input.field";
- description { state: "default" 0.0;
- text {
- style: "entry_single_textblock_style";
- repch: "*";
- min: 1 1;
- ellipsis: -1;
- max: 0 0;
- align: 0.0 0.5;
- }
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- text {
- style: "entry_single_textblock_disabled_style";
- }
- }
- description { state: "selected" 0.0;
- inherit: "default" 0.0;
- text {
- style: "entry_textblock_selected_style";
- min: 0 1;
- }
- }
- description { state: "enabled" 0.0;
- inherit: "default" 0.0;
- text {
- style: "entry_textblock_style";
- min: 0 1;
- }
- }
- }
- }
-}
-
-/*****************************************************************************************
-Document: Tizen TV_General Guide_GUI Guideline_v1.1_140709.ppt
-Page No. 104
-style : Text Input Field, pin style
-Summmary: This style of entry is to get middle-aligned text.
-***************************************************************************************/
-group { name: "elm/entry/base-single/input.field.pin";
- alias: "elm/entry/base/input.field.pin";
- inherit: "elm/entry/base-single/input.field";
- parts {
- part { name: "pad.left"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 18 5;
- max: 18 5;
- fixed: 1 1;
- align: 0.0 0.0;
- }
- }
- part { name: "pad.right"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 18 5;
- max: 18 5;
- fixed: 1 1;
- align: 1.0 1.0;
- }
- }
- part { name: "base_highlight";
- before: "elm.text";
- scale: 1;
- description { state: "default" 0.0;
- image {
- normal: "search_searchbar_bg_nor.png";
- border: 5 5 5 5;
- border_scale: 1;
- }
- }
- description { state: "selected" 0.0;
- inherit: "default" 0.0;
- image.normal: "search_searchbar_bg_foc.png";
- }
- description { state: "over" 0.0;
- inherit: "default" 0.0;
- image.normal: "search_searchbar_bg_foc.png";
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- image.normal: "search_searchbar_bg_nor.png";
- }
- description { state: "highlight" 0.0;
- inherit: "default" 0.0;
- image.normal: "search_searchbar_bg_foc.png";
- }
- description { state: "normal" 0.0;
- inherit: "default" 0.0;
- image.normal: "search_searchbar_bg_nor.png";
- }
- }
- part { name: "elm.text";
- entry_mode: EDITABLE;
- select_mode: EXPLICIT;
- cursor_mode: UNDER;
- multiline: 0;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "pad.left";
- rel1.relative: 1.0 1.0;
- rel2.to: "pad.right";
- rel2.relative: 0.0 0.0;
- text {
- style: "entry_pin_textblock_style";
- min: 1 1;
- ellipsis: -1;
- max: 0 0;
- }
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- text {
- style: "entry_pin_textblock_disabled_style";
- }
- }
- description { state: "selected" 0.0;
- inherit: "default" 0.0;
- text {
- style: "entry_pin_textblock_selected_style";
- min: 0 1;
- }
- }
- description { state: "enabled" 0.0;
- inherit: "default" 0.0;
- text {
- style: "entry_pin_textblock_style";
- min: 0 1;
- }
- }
- }
- }
- programs {
- program { name: "disable";
- target: "base_highlight";
- }
- program { name: "select";
- target: "base_highlight";
- }
- program { name: "over";
- signal: "elm,state,mouse,in"; source: "elm";
- action: STATE_SET "over" 0.0;
- target: "base_highlight";
- }
- program { name: "enable";
- target: "base_highlight";
- }
- program { name: "go_active";
- target: "base_highlight";
- }
- program { name: "go_passive";
- target: "base_highlight";
- }
- program { name: "highlight_show";
- target: "base_highlight";
- }
- program { name: "highlight_hide";
- target: "base_highlight";
- }
- }
-}
-
-/*****************************************************************************************
-Document: Tizen TV_General Guide_GUI Guideline_v1.1_140709.ppt
-Page No. 104
-style : Text Input Field, pin style, password mode
-Summmary: This style of entry is to get middle-aligned text in password mode.
-***************************************************************************************/
-group { name: "elm/entry/base-password/input.field.pin";
- inherit: "elm/entry/base-single/input.field.pin";
- parts {
- part { name: "elm.text";
- entry_mode: PASSWORD;
- select_mode: EXPLICIT;
- cursor_mode: UNDER;
- multiline: 0;
- scale: 1;
- source: "elm/entry/selection/input.field";
- source4: "elm/entry/cursor/input.field";
- source5: "elm/entry/anchor/input.field";
- description { state: "default" 0.0;
- text {
- style: "entry_pin_textblock_style";
- min: 1 1;
- ellipsis: -1;
- max: 0 0;
- }
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- text {
- style: "entry_pin_textblock_disabled_style";
- }
- }
- description { state: "selected" 0.0;
- inherit: "default" 0.0;
- text {
- style: "entry_pin_textblock_selected_style";
- min: 0 1;
- }
- }
- description { state: "enabled" 0.0;
- inherit: "default" 0.0;
- text {
- style: "entry_pin_textblock_style";
- min: 0 1;
- }
- }
- }
- }
-}
-
-/*****************************************************************************************
-Document: Tizen TV_General Guide_GUI Guideline_v1.1_140709.ppt
-Page No. 105
-style: Text Input Field Small
-*******************************************************************************************/
-group { name: "elm/entry/base-single/input.field.small";
- inherit: "elm/entry/base/input.field";
- alias: "elm/entry/base-single/input.field.small.icon";
- parts {
- part { name: "elm.guide"; type: TEXTBLOCK; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "elm.text";
- rel2.to: "elm.text";
- text {
- style: "entry_single_small_textblock_guide_style";
- min: 0 1;
- }
- }
- description { state: "hidden" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- part { name: "elm.text";
- scale: 1;
- entry_mode: EDITABLE;
- select_mode: DEFAULT;
- cursor_mode: BEFORE;
- multiline: 0;
- source: "elm/entry/selection/input.field";
- source4: "elm/entry/cursor/input.field.small";
- source5: "elm/entry/anchor/input.field";
- description { state: "default" 0.0;
- color: 61 61 61 127;
- text {
- style: "entry_single_small_textblock_style";
- min: 1 1;
- max: 0 0;
- align: 0.0 0.5;
- ellipsis: -1;
- }
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- text {
- style: "entry_single_small_textblock_disabled_style";
- }
- }
- description { state: "selected" 0.0;
- inherit: "default" 0.0;
- color: 61 61 61 255;
- text {
- style: "entry_single_small_textblock_selected_style";
- min: 0 1;
- }
- }
- description { state: "enabled" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 255;
- text {
- style: "entry_single_small_textblock_style";
- min: 0 1;
- }
- }
- }
- }
-}
-
-/*******************************************************************************************
-Document: Tizen TV_General Guide_GUI Guideline_v1.0_140430_1.ppt
-Page No. 81,
-style : text input field
-PROMPT
-********************************************************************************************/
-group { name: "elm/entry/cursor/input.field";
- parts {
- part { name: "base"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- }
- }
- part { name: "cursor"; type: RECT; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- min: 2 36;
- max: 2 36;
- fixed: 1 1;
- color: DEFAULT_COLOR;
- visible: 0;
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- }
- programs {
- program { name: "blink";
- action: STATE_SET "visible" 0.0;
- in: 0.4 0.0;
- target: "cursor";
- after: "blink2";
- }
- program { name: "blink2";
- action: STATE_SET "default" 0.0;
- in: 0.4 0.0;
- target: "cursor";
- after: "blink";
- }
- program { name: "focused";
- signal: "elm,action,focus"; source: "elm";
- after: "blink";
- }
- program { name: "noblink";
- action: ACTION_STOP;
- target: "blink";
- target: "blink2";
- after: "noblink2";
- }
- program { name: "noblink2";
- action: STATE_SET "default" 0.0;
- target: "cursor";
- }
- program { name: "unfocused";
- signal: "elm,action,unfocus"; source: "elm";
- action: STATE_SET "default" 0.0;
- target: "cursor";
- after: "noblink";
- }
- }
-}
-
-/*******************************************************************************************
-Document: Tizen TV_General Guide_GUI Guideline_v1.0_140430_1.ppt
-Page No. 83,
-style : text input field small
-PROMPT
-********************************************************************************************/
-group { name: "elm/entry/cursor/input.field.small";
- inherit: "elm/entry/cursor/input.field";
- parts {
- part { name: "base"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- }
- }
- part { name: "cursor"; type: RECT; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- min: 2 26;
- max: 2 26;
- fixed: 1 1;
- color: DEFAULT_COLOR;
- visible: 0;
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- }
-}
-//Selection default used as source.
-group { name: "elm/entry/selection/input.field";
- parts {
- part { name: "bg"; type: RECT; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- color: 128 128 128 128;
- }
- }
- }
-}
-
-//Anchor default used as source.
-group { name: "elm/entry/anchor/input.field";
- parts {
- part { name: "bg"; type: RECT; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- color: 128 0 0 64;
- }
- }
- }
-}
-//Mixed wrap
-group { name: "elm/entry/base-mixedwrap/input.field";
- inherit: "elm/entry/base/input.field";
- parts {
- part { name: "elm.guide"; type: TEXTBLOCK; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "elm.text";
- rel2.to: "elm.text";
- text {
- style: "entry_textblock_guide_style_mixedwrap";
- min: 0 1;
- align: 0.0 0.5;
- }
- }
- description { state: "hidden" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- part { name: "elm.text";
- description { state: "default" 0.0;
- fixed: 1 1;
- text {
- style: "entry_textblock_style_mixedwrap";
- min: 0 1;
- align: 0.0 0.5;
- }
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- text {
- style: "entry_textblock_disabled_style_mixedwrap";
- min: 0 1;
- }
- }
- description { state: "selected" 0.0;
- inherit: "default" 0.0;
- text {
- style: "entry_textblock_selected_style_mixedwrap";
- min: 0 1;
- }
- }
- description { state: "enabled" 0.0;
- inherit: "default" 0.0;
- text {
- style: "entry_textblock_style_mixedwrap";
- min: 0 1;
- }
- }
- }
- }
-}
-//Char wrap
-group { name: "elm/entry/base-charwrap/input.field";
- inherit: "elm/entry/base/input.field";
- parts {
- part { name: "elm.guide"; type: TEXTBLOCK; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "elm.text";
- rel2.to: "elm.text";
- text {
- style: "entry_textblock_guide_style_charwrap";
- min: 0 1;
- align: 0.0 0.5;
- }
- }
- description { state: "hidden" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- part { name: "elm.text";
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- text {
- style: "entry_textblock_style_charwrap";
- min: 0 1;
- align: 0.0 0.5;
- }
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- text {
- style: "entry_textblock_disabled_style_charwrap";
- min: 0 1;
- }
- }
- description { state: "selected" 0.0;
- inherit: "default" 0.0;
- text {
- style: "entry_textblock_selected_style_charwrap";
- min: 0 1;
- }
- }
- description { state: "enabled" 0.0;
- inherit: "default" 0.0;
- text {
- style: "entry_textblock_style_charwrap";
- min: 0 1;
- }
- }
- }
- }
-}
-//No wrap
-group { name: "elm/entry/base-nowrap/input.field";
- inherit: "elm/entry/base/input.field";
- parts {
- part { name: "elm.guide"; type: TEXTBLOCK; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "elm.text";
- rel2.to: "elm.text";
- text {
- style: "entry_textblock_guide_style";
- min: 0 1;
- align: 0.0 0.0;
- }
- }
- description { state: "hidden" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- part { name: "elm.text";
- scale: 1;
- description { state: "default" 0.0;
- text {
- style: "entry_textblock_style";
- min: 1 1;
- ellipsis: -1;
- align: 0.0 0.0;
- }
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- text {
- style: "entry_textblock_disabled_style";
- min: 0 1;
- }
- }
- description { state: "selected" 0.0;
- inherit: "default" 0.0;
- text {
- style: "entry_textblock_selected_style";
- min: 0 1;
- }
- }
- description { state: "enabled" 0.0;
- inherit: "default" 0.0;
- text {
- style: "entry_textblock_style";
- min: 0 1;
- }
- }
- }
- }
-}
-
-/*************************************************************************
-Doc: Tizen TV_General Guide_GUI Guideline_v1.0_140709.ppt page:93
-**************************************************************************/
-
-#define ENTRY_SOUND_PROGRAM \
- program { name: "touch_snd"; \
- signal: "mouse,clicked,1"; \
- source: "elm.text"; \
- script { \
- new st[31]; \
- new Float:vl; \
- get_state(PART:"elm.text", st, 30, vl); \
- if (strcmp(st, "disabled")) \
- run_program(PROGRAM:"touch_sound"); \
- } \
- } \
- program { name: "touch_sound"; \
- action: RUN_PLUGIN "touch_sound"; \
- }
-
-group { name: "elm/entry/base-single/spinner/vertical";
- alias: "elm/entry/base-single/spinner/vertical_time_picker";
- alias: "elm/entry/base-single/spinner/datetime";
- data.item: "default_font_size" "106";
- styles {
- style { name: "entry_single_spinner_vertical_textblock_style";
- base: "font=Tizen:style=Light font_size=106 color=#000000ff align=center";
- tag: "br" "";
- tag: "em" "+ font_style=Oblique";
- tag: "b" "+ font_weight=Bold";
- tag: "link" "+ color=#800 underline=on underline_color=#8008";
- tag: "hilight" "+ font_weight=Bold";
- tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
- tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
- tag: "preedit_highlight" "+ backing=on backing_color="ENTRY_PREEDIT_HIGHLIGHT_BACKGROUND_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
- tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
- tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
- tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
- tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
- }
- style { name: "entry_single_spinner_vertical_textblock_focused_style";
- base: "font=Tizen:style=Light font_size=106 color=#000000ff align=center";
- tag: "br" "";
- tag: "em" "+ font_style=Oblique";
- tag: "b" "+ font_weight=Bold";
- tag: "link" "+ color=#800 underline=on underline_color=#8008";
- tag: "hilight" "+ font_weight=Bold";
- tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
- tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
- tag: "preedit_highlight" "+ backing=on backing_color="ENTRY_PREEDIT_HIGHLIGHT_BACKGROUND_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
- tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
- tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
- tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
- tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
- }
- style { name: "entry_single_spinner_vertical_textblock_disabled_style";
- base: "font=Tizen:style=Light font_size=106 color=#000000a3 align=center";
- tag: "br" "";
- tag: "em" "+ font_style=Oblique";
- tag: "b" "+ font_weight=Bold";
- tag: "link" "+ color=#800 underline=on underline_color=#8008";
- tag: "hilight" "+ font_weight=Bold";
- tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
- tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
- tag: "preedit_highlight" "+ backing=on backing_color="ENTRY_PREEDIT_HIGHLIGHT_BACKGROUND_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
- tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
- tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
- tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
- tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
- }
- style { name: "entry_single_spinner_vertical_textblock_guide_style";
- base: "font=Tizen:style=Light font_size=106 color=#000000a3 align=center";
- tag: "br" "";
- tag: "em" "+ font_style=Oblique";
- tag: "b" "+ font_weight=Bold";
- tag: "link" "+ color=#800 underline=on underline_color=#8008";
- tag: "hilight" "+ font_weight=Bold";
- tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
- tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
- tag: "preedit_highlight" "+ backing=on backing_color="ENTRY_PREEDIT_HIGHLIGHT_BACKGROUND_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
- tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
- tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
- tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
- tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
- }
- }
- data {
- item: context_menu_orientation "horizontal";
- }
- parts {
- part { name: "elm.guide";
- type: TEXTBLOCK;
- mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- rel1.to: "elm.text";
- rel2.to: "elm.text";
- text {
- style: "entry_single_spinner_vertical_textblock_guide_style";
- min: 0 1;
- max: 0 0;
- align: 0.0 0.5;
- }
- }
- description { state: "hidden" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- part { name: "elm.text";
- type: TEXTBLOCK;
- mouse_events: 1;
- scale: 1;
- entry_mode: EDITABLE;
- select_mode: EXPLICIT;
- cursor_mode: BEFORE;
- multiline: 0;
- source: "elm/entry/selection/input.field"; // selection under
- source4: "elm/entry/cursor/input.field"; // cursorover
- source5: "elm/entry/anchor/input.field"; // anchor under
- description { state: "default" 0.0;
- text {
- style: "entry_single_spinner_vertical_textblock_style";
- min: 1 1;
- max: 0 0;
- align: 0.0 0.5;
- }
- }
- description { state: "focused" 0.0;
- inherit: "default" 0.0;
- text {
- style: "entry_single_spinner_vertical_textblock_focused_style";
- }
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- text {
- style: "entry_single_spinner_vertical_textblock_disabled_style";
- }
- }
- }
- }
- programs {
- program { name: "action_focus";
- signal: "elm,action,focus";
- source: "elm";
- action: STATE_SET "focused" 0.0;
- target: "elm.text";
- }
- program { name: "action_unfocus";
- signal: "elm,action,unfocus";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.text";
- }
- program { name: "focus";
- signal: "load";
- source: "";
- action: FOCUS_SET;
- target: "elm.text";
- }
- program { name: "disable";
- signal: "elm,state,disabled";
- source: "elm";
- action: STATE_SET "disabled" 0.0;
- target: "elm.text";
- }
- program { name: "enable";
- signal: "elm,state,enabled";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.text";
- }
- program { name: "gdisable";
- signal: "elm,guide,disabled";
- source: "elm";
- action: STATE_SET "hidden" 0.0;
- target: "elm.guide";
- }
- program { name: "genable";
- signal: "elm,guide,enabled";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.guide";
- }
- ENTRY_SOUND_PROGRAM
- }
-}
-
-group { name: "elm/entry/base-single/spinner/vertical_date_picker";
- inherit: "elm/entry/base-single/spinner/vertical";
- data.item: "default_font_size" "90";
- styles {
- style { name: "entry_single_spinner_vertical_date_picker_textblock_style";
- base: "font=TizenSans:style=Light font_size=90 color=#000000ff align=center text_class=tizen";
- tag: "br" "";
- tag: "em" "+ font_style=Oblique";
- tag: "b" "+ font_weight=Bold";
- tag: "link" "+ color=#800 underline=on underline_color=#8008";
- tag: "hilight" "+ font_weight=Bold";
- tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
- tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
- tag: "preedit_highlight" "+ backing=on backing_color="ENTRY_PREEDIT_HIGHLIGHT_BACKGROUND_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
- tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
- tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
- tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
- tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
- }
- style { name: "entry_single_spinner_vertical_date_picker_textblock_focused_style";
- base: "font=TizenSans:style=Light font_size=90 color=#000000ff align=center text_class=tizen";
- tag: "br" "";
- tag: "em" "+ font_style=Oblique";
- tag: "b" "+ font_weight=Bold";
- tag: "link" "+ color=#800 underline=on underline_color=#8008";
- tag: "hilight" "+ font_weight=Bold";
- tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
- tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
- tag: "preedit_highlight" "+ backing=on backing_color="ENTRY_PREEDIT_HIGHLIGHT_BACKGROUND_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
- tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
- tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
- tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
- tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
- }
- style { name: "entry_single_spinner_vertical_date_picker_textblock_disabled_style";
- base: "font=TizenSans:style=Light font_size=90 color=#000000a3 align=center text_class=tizen";
- tag: "br" "";
- tag: "em" "+ font_style=Oblique";
- tag: "b" "+ font_weight=Bold";
- tag: "link" "+ color=#800 underline=on underline_color=#8008";
- tag: "hilight" "+ font_weight=Bold";
- tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
- tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
- tag: "preedit_highlight" "+ backing=on backing_color="ENTRY_PREEDIT_HIGHLIGHT_BACKGROUND_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
- tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
- tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
- tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
- tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
- }
- style { name: "entry_single_spinner_vertical_date_picker_textblock_guide_style";
- base: "font=TizenSans:style=Light font_size=90 color=#000000a3 wrap=none align=center left_margin=1 right_margin=3 text_class=tizen ellipsis=1.0";
- tag: "br" "";
- tag: "em" "+ font_style=Oblique";
- tag: "b" "+ font_weight=Bold";
- tag: "link" "+ color=#800 underline=on underline_color=#8008";
- tag: "hilight" "+ font_weight=Bold";
- tag: "preedit" "+ underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
- tag: "preedit_sel" "+ backing=on backing_color="ENTRY_PREEDIT_BACKGROUND_COLOR_INC" color="ENTRY_PREEDIT_TEXT_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
- tag: "preedit_highlight" "+ backing=on backing_color="ENTRY_PREEDIT_HIGHLIGHT_BACKGROUND_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_TEXT_COLOR_INC;
- tag: "preedit_sub1" "+ backing=on backing_color="ENTRY_PREEDIT_SUB1_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
- tag: "preedit_sub2" "+ backing=on backing_color="ENTRY_PREEDIT_SUB2_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
- tag: "preedit_sub3" "+ backing=on backing_color="ENTRY_PREEDIT_SUB3_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
- tag: "preedit_sub4" "+ backing=on backing_color="ENTRY_PREEDIT_SUB4_COLOR_INC" underline=on underline_color="ENTRY_PREEDIT_UNDERLINE_COLOR_INC;
- }
- }
- parts {
- part { name: "elm.guide";
- type: TEXTBLOCK;
- mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- text {
- style: "entry_single_spinner_vertical_date_picker_textblock_guide_style";
- min: 0 1;
- max: 0 0;
- align: 0.0 0.5;
- }
- }
- description { state: "hidden" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- part { name: "elm.text";
- type: TEXTBLOCK;
- mouse_events: 1;
- scale: 1;
- entry_mode: EDITABLE;
- select_mode: EXPLICIT;
- cursor_mode: BEFORE;
- multiline: 0;
- source: "elm/entry/selection/input.field"; // selection under
- source4: "elm/entry/cursor/input.field"; // cursorover
- source5: "elm/entry/anchor/input.field"; // anchor under
- description { state: "default" 0.0;
- min: 206 188;
- text {
- style: "entry_single_spinner_vertical_date_picker_textblock_style";
- }
- }
- description { state: "focused" 0.0;
- inherit: "default" 0.0;
- text {
- style: "entry_single_spinner_vertical_date_picker_textblock_focused_style";
- }
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- text {
- style: "entry_single_spinner_vertical_date_picker_textblock_disabled_style";
- }
- }
- }
- }
-}
-
-#undef DEFAULT_COLOR
+++ /dev/null
-/*
- * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-/*****************************************************************************
-Tizen TV_General Guide_GUI Guideline_v1.1_140709.ppt 38
-******************************************************************************/
-
-group { name: "elm/gengrid/item/default/default";
- data.item: "texts" "elm.text";
- data.item: "contents" "elm.swallow.icon";
- data.item: "focus_highlight" "on";
- images {
- image: "content_innershadow.png" COMP;
- }
- parts {
- part { name: "base"; type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- color_class: "gengrid_item/default/bg";
- rel1 {
- relative: 1.0 1.0;
- to: "top.left.pad";
- }
- rel2 {
- relative: 0.0 0.0;
- to: "bottom.right.pad";
- }
- }
- description { state: "focused" 0.0;
- inherit: "default" 0.0;
- color_class: "gengrid_item/default/effect";
- }
- }
- part { name: "top.left.pad"; type: SPACER;
- scale:1 ;
- description { state: "default" 0.0;
- rel2.relative: 0.0 0.0;
- align: 0.0 0.0;
- min: 20 20;
- }
- }
- part { name: "bottom.right.pad"; type: SPACER;
- scale:1 ;
- description { state: "default" 0.0;
- rel1.relative: 1.0 1.0;
- align: 1.0 1.0;
- min: 20 20;
- }
- }
- part { name: "top.pad"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "base";
- rel2 {
- relative: 0.0 0.0;
- to: "base";
- }
- align: 0.0 0.0;
- min: 0 8;
- }
- }
- part { name: "left.pad"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "base";
- rel2 {
- relative: 0.0 0.0;
- to: "base";
- }
- align: 0.0 0.0;
- min: 8 0;
- }
- }
- part { name: "right.pad"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- rel1 {
- relative: 1.0 1.0;
- to: "base";
- }
- rel2.to: "base";
- align: 1.0 1.0;
- min: 8 0;
- }
- }
- part { name: "text.base"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 0 60;
- rel1 {
- relative: 0.0 1.0;
- to: "base";
- }
- rel2.to: "base";
- align: 0.5 1.0;
- }
- }
- part { name: "elm.text"; type: TEXT;
- scale: 1;
- description { state: "default" 0.0;
- color: 211 211 211 255;
- text {
- font: "Tizen Sans";
- size: 26;
- min: 1 1;
- ellipsis: -1;
- }
- rel1.to: "text.base";
- rel2.to: "text.base";
- }
- description { state: "focused" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 255;
- }
- }
- part { name: "elm.swallow.icon"; type: SWALLOW;
- scale: 1;
- clip_to: "clip";
- description { state: "default" 0.0;
- rel1.to: "base";
- rel2 {
- relative: 1.0 0.0;
- to_x: "base";
- to_y: "text.base";
- }
- }
- }
- part { name: "icon.shadow";
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "clip";
- rel2.to: "clip";
- image {
- normal: "content_innershadow.png";
- border: 5 5 5 5;
- }
- visible: 0;
- }
- description { state: "focused" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- part { name: "clip"; type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "base";
- rel2.to: "base";
- }
- description { state: "focused" 0.0;
- rel1 {
- relative: 1.0 1.0;
- to_x: "left.pad";
- to_y: "top.pad";
- }
- rel2 {
- relative: 0.0 0.0;
- to_x: "right.pad";
- to_y: "text.base";
- }
- }
- }
- }
- programs {
- program { name: "focus";
- signal: "elm,state,focused";
- source: "elm";
- action: STATE_SET "focused" 0.0;
- target: "clip";
- target: "elm.text";
- target: "base";
- target: "icon.shadow";
- transition: LINEAR 0.1;
- }
- program { name: "unfocus";
- signal: "elm,state,unfocused";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "clip";
- target: "elm.text";
- target: "base";
- target: "icon.shadow";
- transition: LINEAR 0.1;
- }
- }
-}
-
-/*****************************************************************************
-Tizen TV_General Guide_GUI Guideline_v1.1_140709.ppt 39
-******************************************************************************/
-
-group { name: "elm/gengrid/item/video_preview/default";
- inherit: "elm/gengrid/item/default/default";
- data.item: "texts" "elm.text elm.text.time";
- data.item: "contents" "elm.swallow.icon";
- images {
- image: "round_rectangle_4X4.png" COMP;
- image: "ico_default_video_180.png" COMP;
- }
- parts {
- part { name: "rect";
- scale: 1;
- description { state: "default" 0.0;
- min: 120 120;
- rel1 {
- relative: 0.5 0.5;
- to: "elm.swallow.icon";
- }
- rel2 {
- relative: 0.5 0.5;
- to: "elm.swallow.icon";
- }
- color: 100 100 100 100;
- image {
- normal: "round_rectangle_4X4.png";
- border: 4 4 4 4;
- }
- }
- }
- part { name: "video.icon";
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "rect";
- rel2.to: "rect";
- image.normal: "ico_default_video_180.png";
- }
- }
- part { name: "time.pad"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- rel1 {
- relative: 1.0 0.0;
- to: "base";
- }
- rel2 {
- relative: 1.0 0.0;
- to: "base";
- }
- align: 1.0 0.0;
- min: 21 21;
- }
- }
- part { name: "time.bg"; type: RECT;
- scale: 1;
- clip_to: "clip";
- description { state: "default" 0.0;
- rel1.to: "base";
- rel2 {
- relative: 1.0 0.0;
- to: "base";
- }
- align: 0.5 0.0;
- min: 0 54;
- color: 127 127 127 127;
- }
- }
- part { name: "elm.text.time"; type: TEXT;
- scale: 1;
- description { state: "default" 0.0;
- text {
- font: "Tizen Sans";
- size: 22;
- min: 1 1;
- ellipsis: -1;
- }
- rel1 {
- relative: 0.0 1.0;
- to: "time.pad";
- }
- rel2 {
- relative: 0.0 1.0;
- to: "time.pad";
- }
- align: 1.0 0.0;
- color: 200 200 200 200;
- }
- }
- }
-}
-
-/*****************************************************************************
-Tizen TV_General Guide_GUI Guideline_v1.1_140709.ppt 40
-******************************************************************************/
-
-group { name: "elm/gengrid/item/folder/default";
- inherit: "elm/gengrid/item/default/default";
- data.item: "texts" "elm.text elm.text2";
- data.item: "contents" "";
- images {
- image: "ico_folder.png" COMP;
- }
- parts {
- part { name: "base"; type: RECT;
- scale: 1;
- description { state: "focused" 0.0;
- color: 126 128 255 255;
- }
- }
- part { name: "icon.bg"; type: RECT;
- scale: 1;
- clip_to: "clip";
- description { state: "default" 0.0;
- color: 0 0 0 255;
- rel1.to: "elm.swallow.icon";
- rel2.to: "elm.swallow.icon";
- }
- }
- part { name: "folder.icon";
- scale: 1;
- description { state: "default" 0.0;
- min: 200 200;
- max: 200 200;
- rel1 {
- relative: 0.5 0.5;
- to: "icon.bg";
- }
- rel2 {
- relative: 0.5 0.5;
- to: "icon.bg";
- }
- image {
- normal: "ico_folder.png";
- }
- }
- }
- part { name: "text.base"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 0 80;
- }
- }
- part { name: "elm.text"; type: TEXT;
- scale: 1;
- description { state: "default" 0.0;
- color: 211 211 211 255;
- text {
- font: "Tizen Sans";
- size: 26;
- min: 1 1;
- ellipsis: -1;
- }
- rel1 {
- relative: 0.5 0.5;
- to: "text.base";
- }
- rel2 {
- relative: 0.5 0.5;
- to: "text.base";
- }
- align: 0.5 1.0;
- }
- description { state: "focused" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 255;
- }
- }
- part { name: "elm.text2"; type: TEXT;
- scale: 1;
- description { state: "default" 0.0;
- color: 128 128 128 255;
- text {
- font: "Tizen Sans";
- size: 22;
- min: 1 1;
- ellipsis: -1;
- }
- rel1 {
- relative: 0.5 0.5;
- to: "text.base";
- }
- rel2 {
- relative: 0.5 0.5;
- to: "text.base";
- }
- align: 0.5 0.0;
- }
- description { state: "focused" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 255;
- }
- }
- }
- programs {
- program { name: "focus2";
- signal: "elm,state,focused";
- source: "elm";
- action: STATE_SET "focused" 0.0;
- target: "elm.text2";
- }
- program { name: "unfocus2";
- signal: "elm,state,unfocused";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.text2";
- }
- }
-}
-
-/*****************************************************************************
-Tizen TV_General Guide_GUI Guideline_v1.1_140709.ppt 41
-******************************************************************************/
-
-group { name: "elm/gengrid/item/default_2text/default";
- inherit: "elm/gengrid/item/default/default";
- data.item: "texts" "elm.text elm.text2";
- data.item: "contents" "elm.swallow.icon";
- parts {
- part { name: "base"; type: RECT;
- scale: 1;
- description { state: "focused" 0.0;
- color: 255 168 0 255;
- }
- }
- part { name: "text.base"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 0 100;
- }
- }
- part { name: "elm.text"; type: TEXT;
- scale: 1;
- description { state: "default" 0.0;
- color: 211 211 211 255;
- text {
- font: "Tizen Sans";
- size: 30;
- min: 1 1;
- ellipsis: -1;
- }
- rel1 {
- relative: 0.5 0.5;
- to: "text.base";
- }
- rel2 {
- relative: 0.5 0.5;
- to: "text.base";
- }
- align: 0.5 1.0;
- }
- description { state: "focused" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 255;
- }
- }
- part { name: "elm.text2"; type: TEXT;
- scale: 1;
- description { state: "default" 0.0;
- color: 128 128 128 255;
- text {
- font: "Tizen Sans";
- size: 22;
- min: 1 1;
- ellipsis: -1;
- }
- rel1 {
- relative: 0.5 0.5;
- to: "text.base";
- }
- rel2 {
- relative: 0.5 0.5;
- to: "text.base";
- }
- align: 0.5 0.0;
- }
- description { state: "focused" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 255;
- }
- }
- }
- programs {
- program { name: "focus2";
- signal: "elm,state,focused";
- source: "elm";
- action: STATE_SET "focused" 0.0;
- target: "elm.text2";
- }
- program { name: "unfocus2";
- signal: "elm,state,unfocused";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.text2";
- }
- }
-}
-
-#define DEFAULT 1
-#define SELECTED 2
-#define FOCUSED 3
-#define DISABLED 4
-/*****************************************************************************
-Document: Tizen TV_General Guide_GUI Guideline_v1.0_140508_1.ppt : 36 and 11
-Description: Gengrid for single line text
-******************************************************************************/
-group { name: "elm/gengrid/item/1text.1icon.bg/default";
- data.item: "texts" "elm.text elm.text.1";
- data.item: "contents" "elm.swallow.icon elm.swallow.icon_foc elm.swallow.end";
- images {
- image: "bt_bases.png" COMP;
- image: "elipse_114.png" COMP;
- }
- script {
- public is_selected, is_enabled, is_focused, is_init, cur_state;
-
- public init_values() {
- if(get_int(is_init)==0)
- {
- set_int(is_enabled, 1);
- set_int(is_focused, 1);
- set_int(is_init, 1);
- set_int(cur_state, -1);
- }
- }
- public set_states() {
- new enab;
- new foc;
- new sel;
- new c_state;
- enab = get_int(is_enabled);
- foc = get_int(is_focused);
- sel = get_int(is_selected);
- c_state = get_int(cur_state);
- if(enab == 0)
- {
- if(c_state!=DISABLED)
- run_program(PROGRAM:"do_disable");
- }
- else
- {
- if(foc == 1)
- {
- if(c_state!=FOCUSED)
- run_program(PROGRAM:"do_focus");
- }
- else if(sel == 1)
- {
- if(c_state!=SELECTED)
- run_program(PROGRAM:"do_select");
- }
- else
- {
- if(c_state!=DEFAULT)
- run_program(PROGRAM:"do_default");
- }
- }
- }
- }
- parts {
- part { name: "event"; type: RECT;
- repeat_events: 1;
- description {
- state: "default" 0.0;
- color: 0 0 0 0;
- }
- }
- part { name: "reorder_bg"; mouse_events: 0;
- description { state: "default" 0.0;
- visible: 0;
- color: 255 255 255 0;
- image {
- normal: "bt_bases.png";
- border: 6 6 6 6;
- }
- }
- description { state: "enabled" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- color: 255 255 255 255;
- }
- }
- part { name: "base"; type: RECT; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- color: 0 0 0 77;
- }
- description { state: "focused" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- description { state: "selected" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- color: 0 0 0 77;
- }
- }
- part { name: "base_colored"; type: RECT; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- color: 0 0 0 0;
- visible: 0;
- }
- description { state: "focused" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 255;
- color_class: "open_ux_theme";
- visible: 1;
- }
- description { state: "selected" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 255;
- color_class: "open_ux_theme_alpha";
- visible: 1;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- }
- }
- part { name: "bg"; type: RECT; mouse_events: 0;
- clip_to: "base";
- description { state: "default" 0.0;
- }
- }
- part { name: "bg_color_clipped"; type: RECT; mouse_events: 0;
- clip_to: "base_colored";
- description { state: "default" 0.0;
- }
- }
- part { name: "elm.swallow.pad"; type: SWALLOW;
- description { state: "default" 0.0;
- fixed: 1 0;
- min: 25 25;
- align: 0.0 0.5;
- rel1 {
- relative: 0.0 1.0;
- }
- rel2 {
- to_y: "elm.text";
- relative: 0.0 0.0;
- }
- }
- }
- part { name: "pad.top"; type: SPACER; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- min: 0 30;
- max: 9999 30;
- rel1.to: "bg";
- rel2.to: "bg";
- align: 0.5 0.0;
- }
- }
- part { name: "pad.bottom"; type: SPACER; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- min: 0 25;
- max: 9999 25;
- rel1.to: "bg";
- rel2.to: "bg";
- align: 0.5 1.0;
- }
- }
- part { name: "pad.left"; type: SPACER; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- min: 20 0;
- max: 20 9999;
- rel1.to: "bg";
- rel2.to: "bg";
- align: 0.0 0.5;
- }
- }
- part { name: "pad.right"; type: SPACER; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- min: 20 0;
- max: 20 9999;
- rel1.to: "bg";
- rel2.to: "bg";
- align: 1.0 0.5;
- }
- }
- part { name: "pad.middle"; type: SPACER; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- min: 0 3;
- max: 9999 3;
- rel1.to_x: "pad.left";
- rel1.to_y: "elm.text";
- rel1.relative: 1.0 0.0;
- rel2.to_x: "pad.right";
- rel2.to_y: "elm.text";
- rel2.relative: 0.0 0.0;
- align: 0.5 1.0;
- }
- }
- part { name: "elm.shadow.icon.bg"; type: PROXY;
- description { state: "default" 0.0;
- source: "elm.swallow.icon";
- rel1.to: "elm.swallow.icon";
- rel1.offset: 0 3;
- rel2.to: "elm.swallow.icon";
- rel2.offset: 0 3;
- color: 0 0 0 64;
- }
- description { state: "focused" 0.0;
- inherit: "default" 0.0;
- source: "elm.swallow.icon_foc";
- }
- description { state: "selected" 0.0;
- inherit: "default" 0.0;
- source: "elm.swallow.icon_foc";
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- }
- }
- part { name: "elm.image.icon.bg"; type: IMAGE;
- clip_to: "disclip";
- description { state: "default" 0.0;
- fixed: 1 0;
- aspect: 1.0 1.0;
- aspect_preference: BOTH;
- rel1.to: "elm.swallow.icon";
- rel2.to: "elm.swallow.icon";
- color_class: "open_ux_theme";
- image.normal: "elipse_114.png";
- visible: 0;
- }
- description { state: "focused" 0.0;
- inherit: "default" 0.0;
- color_class: "open_ux_theme_white";
- }
- description { state: "selected" 0.0;
- inherit: "default" 0.0;
- color_class: "open_ux_theme_white";
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- color_class: "open_ux_theme_alpha20";
- }
- }
- part { name: "elm.swallow.icon"; type: SWALLOW;
- clip_to: "disclip";
- description { state: "default" 0.0;
- fixed: 1 0;
- aspect: 1.0 1.0;
- aspect_preference: BOTH;
- rel1.to_x: "pad.left";
- rel1.to_y: "pad.top";
- rel1.relative: 1.0 1.0;
- rel2.to_x: "pad.right";
- rel2.to_y: "pad.middle";
- rel2.relative: 0.0 0.0;
- }
- description { state: "focused" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- description { state: "selected" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- color_class: "open_ux_theme_alpha20";
- }
- }
- part { name: "elm.swallow.icon_foc"; type: SWALLOW;
- clip_to: "disclip";
- description { state: "default" 0.0;
- fixed: 1 0;
- aspect: 1.0 1.0;
- aspect_preference: BOTH;
- rel1.to: "elm.swallow.icon";
- rel2.to: "elm.swallow.icon";
- visible: 0;
- }
- description { state: "focused" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- description { state: "selected" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- part { name: "elm.swallow.end";
- clip_to: "disclip"; type: SWALLOW;
- description { state: "default" 0.0;
- fixed: 1 0;
- align: 1.0 0.0;
- aspect: 1.0 1.0;
- aspect_preference: HORIZONTAL;
- rel1.relative: 1.0 0.0;
- rel2.relative: 1.0 1.0;
- }
- }
- part { name: "area_for_text"; type: RECT; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to_x: "pad.left";
- rel1.to_y: "pad.top";
- rel1.relative: 1.0 1.0;
- rel2.to_x: "pad.right";
- rel2.to_y: "pad.bottom";
- rel2.relative: 0.0 0.0;
- align: 0.5 0.5;
- color: 255 255 255 0;
- }
- part { name: "elm.text"; type: TEXT; mouse_events: 0;
- effect: SOFT_SHADOW;
- scale: 1;
- description { state: "default" 0.0;
- color: 211 211 211 255;
- rel1.relative: 0.0 1.0;
- rel2.relative: 1.0 1.0;
- align: 0.5 1.0;
- text {
- font: "Sans";
- size: 23;
- min: 0 1;
- text_class: "grid_item";
- }
- }
- description { state: "focused" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 255;
- }
- description { state: "selected" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 255;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 51;
- }
- }
- part { name: "elm.text.1"; type: TEXT; mouse_events: 0;
- effect: SOFT_SHADOW;
- scale: 1;
- description { state: "default" 0.0;
- color: 211 211 211 255;
- rel1.relative: 0.0 1.0;
- rel2.relative: 1.0 1.0;
- align: 0.5 1.0;
- text {
- font: "Sans";
- size: 17;
- min: 0 1;
- text_class: "grid_item";
- }
- visible: 0;
- }
- description { state: "focused" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 255;
- }
- description { state: "selected" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 255;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 51;
- }
- }
- }
- part { name: "disclip"; type: RECT;
- description { state: "default" 0.0;
- fixed: 1 1;
- rel1.to: "base";
- rel2.to: "base";
- color_class: "open_ux_theme_white";
- }
- description { state: "focused" 0.0;
- inherit: "default" 0.0;
- }
- description { state: "selected" 0.0;
- inherit: "default" 0.0;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- color_class: "open_ux_theme_alpha20";
- visible: 1;
- }
- }
- part { name: "event_blocker"; type: RECT; mouse_events: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- color: 0 0 0 0;
- visible: 0;
- }
- description { state: "focused" 0.0;
- inherit: "default" 0.0;
- }
- description { state: "selected" 0.0;
- inherit: "default" 0.0;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- }
- programs {
- program { name: "go_focused";
- signal: "elm,state,focused"; source: "elm";
- script {
- init_values();
- set_int(is_focused, 1);
- set_states();
- }
- }
- program { name: "go_unfocused";
- signal: "elm,state,unfocused"; source: "elm";
- script {
- init_values();
- set_int(is_focused, 0);
- set_states();
- }
- }
-
- program { name: "go_active";
- signal: "elm,state,selected";
- source: "elm";
- script {
- init_values();
- set_int(is_selected, 1);
- set_states();
- }
- }
- program { name: "go_passive";
- signal: "elm,state,unselected";
- source: "elm";
- script {
- init_values();
- set_int(is_selected, 0);
- set_states();
- }
- }
- program { name: "go_disabled";
- signal: "elm,state,disabled";
- source: "elm";
- script {
- init_values();
- set_int(is_enabled, 0);
- set_states();
- }
- }
- program { name: "go_enabled";
- signal: "elm,state,enabled";
- source: "elm";
- script {
- init_values();
- set_int(is_enabled, 1);
- set_states();
- }
- }
- program { name: "go_reorder_disabled";
- signal: "elm,state,reorder,disabled";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "reorder_bg";
- transition: DECELERATE 0.5;
- }
- program { name: "go_reorder_enabled";
- signal: "elm,state,reorder,enabled";
- source: "elm";
- action: STATE_SET "enabled" 0.0;
- target: "reorder_bg";
- transition: DECELERATE 0.5;
- }
- program { name: "do_default";
- action: STATE_SET "default" 0.0;
- transition: LINEAR 0.1;
- target: "base";
- target: "base_colored";
- target: "elm.text";
- target: "elm.text.1";
- target: "elm.shadow.icon.bg";
- target: "elm.image.icon.bg";
- target: "elm.swallow.icon";
- target: "elm.swallow.icon_foc";
- target: "disclip";
- target: "event_blocker";
- }
-
- program { name: "do_focus";
- action: STATE_SET "focused" 0.0;
- target: "base";
- target: "base_colored";
- target: "elm.text";
- target: "elm.text.1";
- target: "elm.shadow.icon.bg";
- target: "elm.image.icon.bg";
- target: "elm.swallow.icon";
- target: "elm.swallow.icon_foc";
- target: "disclip";
- target: "event_blocker";
- }
-
- program { name: "do_select";
- action: STATE_SET "selected" 0.0;
- target: "base";
- target: "base_colored";
- target: "elm.text";
- target: "elm.text.1";
- target: "elm.shadow.icon.bg";
- target: "elm.image.icon.bg";
- target: "elm.swallow.icon";
- target: "elm.swallow.icon_foc";
- target: "disclip";
- target: "event_blocker";
- }
-
- program { name: "do_disable";
- action: STATE_SET "disabled" 0.0;
- target: "base";
- target: "base_colored";
- target: "elm.text";
- target: "elm.text.1";
- target: "elm.shadow.icon.bg";
- target: "elm.image.icon.bg";
- target: "elm.swallow.icon";
- target: "elm.swallow.icon_foc";
- target: "disclip";
- target: "event_blocker";
- }
- }
-}
-
-//Start
-#define DEFAULT 1
-#define SELECTED 2
-#define FOCUSED 3
-#define DISABLED 4
-/*****************************************************************************
-Document: Tizen TV_General Guide_GUI Guideline_v1.0_140508_1.ppt : 37 and 11
-Description: Gengrid for two line text
-******************************************************************************/
-group { name: "elm/gengrid/item/2text.1icon.bg/default";
- inherit: "elm/gengrid/item/1text.1icon.bg/default";
- data.item: "texts" "elm.text elm.text.1";
- data.item: "contents" "elm.swallow.icon elm.swallow.icon_foc elm.swallow.end";
- parts {
- part { name: "pad.top"; type: SPACER; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- min: 0 52;
- max: 9999 52;
- }
- }
- part { name: "pad.bottom"; type: SPACER; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- min: 0 43;
- max: 9999 43;
- }
- }
- part { name: "area_for_text"; type: RECT; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- }
- part { name: "elm.text"; type: TEXT; mouse_events: 0;
- effect: SOFT_SHADOW;
- scale: 1;
- description { state: "default" 0.0;
- color: 211 211 211 255;
- rel1.to: "elm.text.1";
- rel2.to: "elm.text.1";
- rel1.relative: 0.0 0.0;
- rel2.relative: 1.0 0.0;
- text {
- font: "Sans";
- size: 23;
- min: 0 1;
- text_class: "grid_item";
- }
- }
- description { state: "focused" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 255;
- }
- description { state: "selected" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 255;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 51;
- }
- }
- part { name: "elm.text.1"; type: TEXT;
- effect: SOFT_SHADOW;
- mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- visible: 1;
- color: 134 134 134 255;
- }
- description { state: "focused" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 255;
- }
- description { state: "selected" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 255;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 51;
- }
- }
- }
- }
-}
-#undef DEFAULT 1
-#undef SELECTED 2
-#undef FOCUSED 3
-#undef DISABLED 4
-#undef DEFAULT 1
-#undef SELECTED 2
-#undef FOCUSED 3
-#undef DISABLED 4
+++ /dev/null
-/*
- * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-/*******************************************************************
-Tizen TV_General Guide_GUI Guideline_v1.0_140709.pptx 70 1text
-********************************************************************/
-group { "elm/genlist/item/1text/default"; nomouse; program_source: "elm";
- alias: "elm/genlist/item/default/default";
- data.item: "texts" "elm.text";
- data.item: "focus_highlight" "on";
- target_group: "default" "base" "bottom_line" "elm.text";
- target_group: "disabled" "event" "elm.text";
- parts {
- GENLIST_BASE_COLOR_CLASS("genlist_item/default/bg", "genlist_item/default/bg_selected", "genlist_item/default/bg_focused")
- GENLIST_PAD(40, 40, 20, 20)
- GENLIST_BOTTOM_LINE_COLOR_CLASS("genlist_item/default/bottomline")
- text { "elm.text"; scale;
- desc { "default";
- rel1.to: "pad.top.left";
- rel1.relative: 1.0 1.0;
- rel2.to: "pad.bottom.right";
- rel2.relative: 0.0 0.0;
- color: 89 89 89 255;
- text { font: FONT_M; size: 30;
- min: 1 1;
- ellipsis: -1;
- align: 0.0 0.5;
- }
- }
- desc { "focused"; inherit: "default";
- color: 255 255 255 255;
- }
- desc { "disabled"; inherit: "default";
- color: 255 0 0 255;
- }
- }
- }
- programs {
- GENLIST_PROGRAMS("default", "disabled")
- }
-}
-
-/*********************************************************************
-Tizen TV_General Guide_GUI Guideline_v1.0_140709.pptx 70 1text_1icon
-**********************************************************************/
-group { "elm/genlist/item/1text_1icon/default"; nomouse; program_source: "elm";
- data.item: "texts" "elm.text";
- data.item: "contents" "elm.swallow.end";
- inherit: "elm/genlist/item/1text/default";
- parts {
- text { "elm.text"; scale;
- desc { "default";
- rel1.to: "pad.top.left";
- rel1.relative: 1.0 1.0;
- rel2.to_x: "pad.center";
- rel2.to_y: "pad.bottom.right";
- rel2.relative: 0.0 0.0;
- color: 89 89 89 255;
- text { font: FONT_M; size: 30;
- min: 1 1;
- ellipsis: -1;
- align: 0.0 0.5;
- }
- }
- desc { "focused"; inherit: "default";
- color: 255 255 255 255;
- }
- desc { "disabled"; inherit: "default";
- color: 50 50 50 255;
- }
- }
- swallow { "elm.swallow.end"; mouse;
- desc { "default";
- rel1.to_x: "pad.bottom.right";
- rel1.relative: 0.0 0.5;
- rel2.to_x: "pad.bottom.right";
- rel2.relative: 0.0 0.5;
- min: 40 40;
- fixed: 1 1;
- align: 1.0 0.5;
- }
- }
- // a padding between elm.text, elm.swallow.end
- spacer { "pad.center"; scale;
- desc { "default";
- rel1.to_x: "elm.swallow.end";
- rel1.relative: 0.0 0.5;
- rel2.to_x: "elm.swallow.end";
- rel2.relative: 0.0 0.5;
- fixed: 1 0;
- align: 1.0 0.5;
- min: 40 0;
- }
- }
- }
-}
-
-/**************************************************************************
-Tizen TV_General Guide_GUI Guideline_v1.0_140709.pptx 69 1text_1icon_2
-***************************************************************************/
-group { "elm/genlist/item/1text_1icon_2/default"; nomouse;
- data.item: "texts" "elm.text";
- data.item: "contents" "elm.swallow.end";
- inherit: "elm/genlist/item/1text_1icon/default";
- parts {
- rect { "base"; scale;
- desc { "default";
- color: 0 0 0 0;
- hid;
- }
- desc { "focused"; inherit: "default";
- color: 69 143 255 255;
- vis;
- }
- desc { "selected"; inherit: "default";
- color: 69 143 255 102;
- vis;
- }
- }
- GENLIST_PAD(70, 70, 20, 20)
- GENLIST_BOTTOM_LINE(255 255 255 25)
-
- text { "elm.text"; scale;
- desc { "default";
- rel1.to: "pad.top.left";
- rel1.relative: 1.0 1.0;
- rel2.to_x: "pad.center";
- rel2.to_y: "pad.bottom.right";
- rel2.relative: 0.0 0.0;
- color: 255 255 255 204; // 80%
- text { font: FONT_M; size: 30;
- min: 1 1;
- ellipsis: -1;
- align: 0.0 0.5;
- }
- }
- desc { "focused"; inherit: "default";
- color: 255 255 255 255;
- }
- desc { "disabled"; inherit: "default";
- color: 50 50 50 255;
- }
- }
-
- // a padding between elm.text, elm.swallow.end
- spacer { "pad.center"; scale;
- desc { "default";
- rel1.to_x: "elm.swallow.end";
- rel1.relative: 0.0 0.5;
- rel2.to_x: "elm.swallow.end";
- rel2.relative: 0.0 0.5;
- fixed: 1 0;
- align: 1.0 0.5;
- min: 30 0;
- }
- }
- }
- programs {
- GENLIST_PROGRAMS("default", "disabled")
- }
-}
-
-/***********************************************************************************************
-Tizen TV_General Guide_GUI Guideline_v1.0_140709.pptx 69 2text
-************************************************************************************************/
-group { "elm/genlist/item/2text/default"; nomouse; program_source: "elm";
- data.item: "texts" "elm.text elm.text2";
- inherit: "elm/genlist/item/1text/default";
- target_group: "default2" "base" "bottom_line" "elm.text" "elm.text2";
- target_group: "disabled2" "event" "elm.text" "elm.text2";
- parts {
- rect { "base"; scale;
- desc { "default";
- color: 0 0 0 0;
- hid;
- }
- desc { "focused"; inherit: "default";
- color: 69 143 255 255;
- vis;
- }
- desc { "selected"; inherit: "default";
- color: 69 143 255 102;
- vis;
- }
- }
- GENLIST_PAD(70, 70, 20, 20)
- GENLIST_BOTTOM_LINE(255 255 255 25)
-
- text { "elm.text"; scale;
- desc { "default";
- rel1.to: "pad.top.left";
- rel1.relative: 1.0 1.0;
- rel2.to_x: "pad.center";
- rel2.to_y: "pad.bottom.right";
- rel2.relative: 0.0 0.0;
- color: 255 255 255 204; // 80%
- text { font: FONT_M; size: 30;
- min: 1 1;
- ellipsis: -1;
- align: 0.0 0.5;
- }
- }
- desc { "focused"; inherit: "default";
- color: 255 255 255 255;
- }
- desc { "disabled"; inherit: "default";
- color: 50 50 50 255;
- }
- }
-
- text { "elm.text2"; scale;
- desc { "default";
- rel1.to_x: "pad.bottom.right";
- rel1.relative: 0.0 0.5;
- rel2.to_x: "pad.bottom.right";
- rel2.relative: 0.0 0.5;
- align: 1.0 0.5;
- color: 255 255 255 204; // 80%
- fixed: 1 1;
- text { font: FONT_M; size: 30;
- min: 1 1;
- ellipsis: -1;
- align: 1.0 0.5;
- }
- }
- desc { "focused"; inherit: "default";
- color: 255 255 255 255;
- }
- desc { "disabled"; inherit: "default";
- color: 50 50 50 255;
- }
- }
-
- // a padding between elm.text, elm.swallow.end
- spacer { "pad.center"; scale;
- desc { "default";
- rel1.to_x: "elm.text2";
- rel1.relative: 0.0 0.5;
- rel2.to_x: "elm.text2";
- rel2.relative: 0.0 0.5;
- fixed: 1 0;
- align: 1.0 0.5;
- min: 30 0;
- }
- }
- }
- programs {
- GENLIST_PROGRAMS("default2", "disabled2")
- }
-}
-
-/*******************************************************************
-Tizen TV_General Guide_GUI Guideline_v1.0_140709.pptx 45 2text_1icon
-********************************************************************/
-group { "elm/genlist/item/2text_1icon/default"; nomouse; program_source: "elm";
- data.item: "texts" "elm.text elm.text2";
- data.item: "contents" "elm.swallow.icon";
- data.item: "focus_highlight" "on";
- target_group: "default" "base" "bottom_line" "elm.text" "elm.text2";
- target_group: "disabled" "event" "elm.text" "elm.text2";
- parts {
- GENLIST_BASE(42 50 64 255, 69 143 255 255)
- GENLIST_PAD(38, 32, 32, 37)
- GENLIST_BOTTOM_LINE(222 222 222 222)
- swallow { "elm.swallow.icon"; mouse; scale;
- desc { "default";
- rel1.to_x: "pad.bottom.right";
- rel1.relative: 0.0 0.5;
- rel2.to_x: "pad.bottom.right";
- rel2.relative: 0.0 0.5;
- min: 80 80;
- fixed: 1 1;
- align: 1.0 0.5;
- }
- }
- spacer { "pad.center"; scale;
- desc { "default";
- rel1.to_x: "elm.swallow.icon";
- rel1.relative: 0.0 0.0;
- rel2.to_x: "elm.swallow.icon";
- rel2.relative: 0.0 1.0;
- min: 32 0;
- fixed: 1 0;
- align: 1.0 0.5;
- }
- }
- text { "elm.text"; scale;
- desc { "default";
- rel1.to: "pad.top.left";
- rel1.relative: 1.0 1.0;
- rel2.to_x: "pad.center";
- rel2.to_y: "pad.top.left";
- rel2.relative: 0.0 1.0;
- fixed: 0 1;
- align: 0.5 0.0;
- color: 165 167 175 255;
- text { font: FONT_M; size: 32;
- min: 1 1;
- ellipsis: -1;
- align: 0.0 0.5;
- }
- }
- desc { "selected"; inherit: "default";
- color: 255 255 255 255;
- }
- desc { "focused"; inherit: "default";
- color: 255 255 255 255;
- }
- desc { "disabled"; inherit: "default";
- color: 50 50 50 255;
- }
- }
- text { "elm.text2"; scale;
- desc { "default";
- rel1.to: "elm.text";
- rel1.relative: 0.0 1.0;
- rel2.to_x: "elm.text";
- rel2.to_y: "pad.bottom.right";
- rel2.relative: 1.0 0.0;
- fixed: 0 0;
- align: 0.5 0.5;
- color: 164 167 174 255;
- text { font: FONT_R; size: 22;
- min: 1 1;
- ellipsis: -1;
- align: 0.0 0.5;
- }
- }
- desc { "selected"; inherit: "default";
- color: 255 255 255 255;
- }
- desc { "focused"; inherit: "default";
- color: 255 255 255 255;
- }
- desc { "disabled"; inherit: "default";
- color: 50 50 50 255;
- }
- }
- }
- programs {
- GENLIST_PROGRAMS("default", "disabled")
- }
-}
-
-/*******************************************************************
-Tizen TV_General Guide_GUI Guideline_v1.0_140709.pptx 46 3text_1icon
-********************************************************************/
-group { "elm/genlist/item/3text_1icon/default"; nomouse; program_source: "elm";
- inherit: "elm/genlist/item/2text_1icon/default";
- data.item: "texts" "elm.text elm.text2 elm.text3";
- data.item: "contents" "elm.swallow.icon";
- data.item: "focus_highlight" "on";
- target_group: "default2" "base" "bottom_line" "elm.text" "elm.text2" "elm.text3";
- target_group: "disabled2" "event" "elm.text" "elm.text2" "elm.text3";
- parts {
- GENLIST_BASE(42 50 64 255, 69 143 255 255)
- GENLIST_PAD(38, 32, 32, 37)
- GENLIST_BOTTOM_LINE(222 222 222 222)
- text { "elm.text2"; scale;
- desc { "default";
- rel1.to: "elm.text";
- rel1.relative: 0.0 1.0;
- rel2.to: "elm.text";
- rel2.relative: 1.0 1.0;
- fixed: 0 1;
- align: 0.5 0.0;
- color: 164 167 174 255;
- text { font: FONT_R; size: 22;
- min: 1 1;
- ellipsis: -1;
- align: 0.0 0.5;
- }
- }
- desc { "selected"; inherit: "default";
- color: 255 255 255 255;
- }
- desc { "focused"; inherit: "default";
- color: 255 255 255 255;
- }
- desc { "disabled"; inherit: "default";
- color: 50 50 50 255;
- }
- }
- text { "elm.text3"; scale;
- desc { "default";
- rel1.to: "elm.text2";
- rel1.relative: 0.0 1.0;
- rel2.to_x: "elm.text2";
- rel2.to_y: "pad.bottom.right";
- rel2.relative: 1.0 0.0;
- fixed: 0 0;
- align: 0.5 0.5;
- color: 164 167 174 255;
- text { font: FONT_R; size: 22;
- min: 1 1;
- ellipsis: -1;
- align: 0.0 0.5;
- }
- }
- desc { "selected"; inherit: "default";
- color: 255 255 255 255;
- }
- desc { "focused"; inherit: "default";
- color: 255 255 255 255;
- }
- desc { "disabled"; inherit: "default";
- color: 50 50 50 255;
- }
- }
- }
- programs {
- GENLIST_PROGRAMS("default2", "disabled2")
- }
-}
-
-/*******************************************************************
-Tizen TV_General Guide_GUI Guideline_v1.0_140709.pptx 47 4text_1icon
-********************************************************************/
-group { "elm/genlist/item/4text_1icon/default"; nomouse; program_source: "elm";
- inherit: "elm/genlist/item/3text_1icon/default";
- data.item: "texts" "elm.text elm.text2 elm.text3 elm.text4";
- data.item: "contents" "elm.swallow.icon";
- data.item: "focus_highlight" "on";
- target_group: "default3" "base" "bottom_line" "elm.text" "elm.text2" "elm.text3" "elm.text4";
- target_group: "disabled3" "event" "elm.text" "elm.text2" "elm.text3" "elm.text4";
- parts {
- GENLIST_BASE(42 50 64 255, 69 143 255 255)
- GENLIST_PAD(38, 32, 32, 37)
- GENLIST_BOTTOM_LINE(222 222 222 222)
- text { "elm.text3"; scale;
- desc { "default";
- rel1.to: "elm.text2";
- rel1.relative: 0.0 1.0;
- rel2.to: "elm.text2";
- rel2.relative: 1.0 1.0;
- fixed: 0 1;
- align: 0.5 0.0;
- color: 164 167 174 255;
- text { font: FONT_R; size: 22;
- min: 1 1;
- ellipsis: -1;
- align: 0.0 0.5;
- }
- }
- desc { "selected"; inherit: "default";
- color: 255 255 255 255;
- color: 255 255 255 255;
- }
- desc { "focused"; inherit: "default";
- color: 255 255 255 255;
- }
- desc { "disabled"; inherit: "default";
- color: 50 50 50 255;
- }
- }
- text { "elm.text4"; scale;
- desc { "default";
- rel1.to: "elm.text3";
- rel1.relative: 0.0 1.0;
- rel2.to_x: "elm.text3";
- rel2.to_y: "pad.bottom.right";
- rel2.relative: 1.0 0.0;
- fixed: 0 0;
- align: 0.5 0.5;
- color: 164 167 174 255;
- text { font: FONT_R; size: 22;
- min: 1 1;
- ellipsis: -1;
- align: 0.0 0.5;
- }
- }
- desc { "selected"; inherit: "default";
- color: 255 255 255 255;
- }
- desc { "focused"; inherit: "default";
- color: 255 255 255 255;
- }
- desc { "disabled"; inherit: "default";
- color: 50 50 50 255;
- }
- }
- }
- programs {
- GENLIST_PROGRAMS("default3", "disabled3")
- }
-}
-
-/*************************************************************************
-Tizen TV_General Guide_GUI Guideline_v1.0_140709.pptx 48 2text_1icon_2
-**************************************************************************/
-group { "elm/genlist/item/2text_1icon_2/default"; nomouse; program_source: "elm";
- inherit: "elm/genlist/item/2text_1icon/default";
- data.item: "texts" "elm.text elm.text2";
- data.item: "contents" "elm.swallow.icon";
- data.item: "focus_highlight" "on";
- parts {
- swallow { "elm.swallow.icon"; mouse; scale;
- desc { "default";
- rel1.relative: 1.0 0.0;
- rel2.relative: 1.0 1.0;
- fixed: 1 0;
- align: 1.0 0.5;
- }
- }
- }
-}
-
-/*******************************************************************
-Tizen TV_General Guide_GUI Guideline_v1.0_140709.pptx 49 progress
-********************************************************************/
-group { "elm/genlist/item/progress/default"; nomouse; program_source: "elm";
- data.item: "texts" "elm.text elm.text2";
- data.item: "contents" "elm.swallow.icon elm.swallow.end";
- data.item: "focus_highlight" "on";
- target_group: "default" "base" "bottom_line" "elm.text" "elm.text2";
- target_group: "disabled" "event" "elm.text" "elm.text2";
- parts {
- GENLIST_BASE(42 50 64 255, 69 143 255 255)
- GENLIST_PAD(38, 32, 32, 47)
- GENLIST_BOTTOM_LINE(222 222 222 222)
- text { "elm.text"; scale;
- desc { "default";
- rel1.to: "pad.top.left";
- rel1.relative: 1.0 1.0;
- rel2.to: "pad.center";
- rel2.relative: 0.0 0.0;
- color: 211 211 211 255;
- align: 0.0 0.5;
- fixed: 0 0;
- text { font: FONT_M; size: 24;
- min: 1 1;
- ellipsis: -1;
- align: 0.0 0.5;
- }
- }
- desc { "focused"; inherit: "default" 0.0;
- color: 255 255 255 255;
- }
- desc { "disabled"; inherit: "default" 0.0;
- color: 50 50 50 255;
- }
- }
-
- ////// parts from right side
- swallow { "elm.swallow.end"; mouse; scale;
- desc { "default";
- rel1.to_x: "pad.bottom.right";
- rel1.relative: 0.0 0.5;
- rel2.to_x: "pad.bottom.right";
- rel2.relative: 0.0 0.5;
- min: 80 80;
- fixed: 0 1;
- align: 1.0 0.5;
- }
- }
- spacer { "pad.center2"; scale;
- desc { "default";
- rel1.to_x: "elm.swallow.end";
- rel1.relative: 0.0 0.0;
- rel2.to_x: "elm.swallow.end";
- rel2.relative: 0.0 1.0;
- min: 32 0;
- fixed: 1 0;
- align: 1.0 0.5;
- }
- }
- text { "elm.text2"; scale;
- desc { "default";
- rel1.to_x: "pad.center2";
- rel1.to_y: "pad.bottom2";
- rel1.relative: 0.0 0.0;
- rel2.to_x: "pad.center2";
- rel2.to_y: "pad.bottom2";
- rel2.relative: 0.0 0.0;
- align: 1.0 1.0;
- min: 100 0;
- fixed: 1 1;
- color: 211 211 211 255;
- text { font: FONT_M; size: 24;
- min: 0 1;
- }
- }
- desc { "focused"; inherit: "default" 0.0;
- color: 255 255 255 255;
- }
- desc { "disabled"; inherit: "default" 0.0;
- color: 50 50 50 255;
- }
- }
- // a padding between elm.text, elm.text2, elm.swallow.icon
- spacer { "pad.center"; scale;
- desc { "default";
- rel1.to_x: "elm.text2";
- rel1.to_y: "elm.swallow.icon";
- rel1.relative: 0.0 0.0;
- rel2.to_x: "elm.text2";
- rel2.to_y: "elm.swallow.icon";
- rel2.relative: 0.0 0.0;
- min: 20 11;
- fixed: 1 1;
- align: 1.0 1.0;
- }
- }
- swallow { "elm.swallow.icon"; mouse; scale;
- desc { "default";
- rel1.to_x: "pad.top.left";
- rel1.to_y: "pad.bottom.right";
- rel1.relative: 1.0 0.0;
- rel2.to_x: "pad.center2";
- rel2.to_y: "pad.bottom.right";
- rel2.relative: 0.0 0.0;
- min: 0 20;
- fixed: 0 1;
- align: 0.5 1.0;
- }
- }
- // a padding between elm.text2, elm.swallow.icon
- spacer { "pad.bottom2"; scale;
- desc { "default";
- rel1.to_y: "elm.swallow.icon";
- rel2.to_y: "elm.swallow.icon";
- rel2.relative: 1.0 0.0;
- min: 0 4;
- fixed: 0 1;
- align: 0.5 1.0;
- }
- }
- }
- programs {
- GENLIST_PROGRAMS("default", "disabled")
- }
-}
-
-/*******************************************************************
-Tizen TV_General Guide_GUI Guideline_v1.0_140709.pptx 59 2text_2icon
-********************************************************************/
-group { "elm/genlist/item/2text_2icon/default"; nomouse; program_source: "elm";
- data.item: "texts" "elm.text elm.text2";
- data.item: "contents" "elm.swallow.icon elm.swallow.end";
- data.item: "focus_highlight" "on";
- target_group: "default" "base" "bottom_line" "elm.text" "elm.text2";
- target_group: "disabled" "event" "elm.text" "elm.text2";
- parts {
- GENLIST_BASE(42 50 64 255, 69 143 255 255)
- GENLIST_PAD(32, 32, 29, 19)
- GENLIST_BOTTOM_LINE(222 222 222 222)
- swallow { "elm.swallow.icon"; mouse; scale;
- desc { "default";
- rel1.to: "pad.top.left";
- rel1.relative: 1.0 1.0;
- rel2.to: "pad.top.left";
- rel2.relative: 1.0 1.0;
- min: 44 44;
- fixed: 1 1;
- align: 0.0 0.0;
- }
- }
- spacer { "pad.left.center"; scale;
- desc { "default";
- rel1.to: "elm.swallow.icon";
- rel1.relative: 0.0 1.0;
- rel2.to: "elm.swallow.icon";
- min: 0 3;
- fixed: 0 1;
- align: 0.5 0.0;
- }
- }
- text { "elm.text2"; scale;
- desc { "default";
- rel1.to: "pad.left.center";
- rel1.relative: 0.0 1.0;
- rel2.to_x: "pad.left.center";
- rel2.to_y: "pad.bottom.right";
- rel2.relative: 1.0 0.0;
- color: 211 211 211 255;
- min: 0 20;
- text { font: FONT_M; size: 24;
- min: 0 1;
- }
- }
- desc { "focused"; inherit: "default" 0.0;
- color: 255 255 255 255;
- }
- desc { "disabled"; inherit: "default" 0.0;
- color: 50 50 50 255;
- }
- }
- spacer { "pad.center"; scale;
- desc { "default";
- rel1.to: "elm.swallow.icon";
- rel1.relative: 1.0 0.0;
- rel2.to: "elm.swallow.icon";
- rel2.relative: 1.0 1.0;
- min: 19 0;
- fixed: 1 0;
- align: 0.0 0.5;
- }
- }
- text { "elm.text"; scale;
- desc { "default";
- rel1.to_x: "pad.center";
- rel1.relative: 1.0 0.5;
- rel2.to_x: "pad.center";
- rel2.relative: 1.0 0.5;
- align: 0.0 0.5;
- fixed: 1 1;
- color: 211 211 211 255;
- text { font: FONT_M; size: 24;
- min: 1 1;
- ellipsis: -1;
- }
- }
- desc { "focused"; inherit: "default" 0.0;
- color: 255 255 255 255;
- }
- desc { "disabled"; inherit: "default" 0.0;
- color: 50 50 50 255;
- }
- }
- spacer { "pad.center2"; scale;
- desc { "default";
- rel1.to_x: "elm.text";
- rel1.relative: 1.0 0.0;
- rel2.to_x: "elm.text";
- rel2.relative: 1.0 1.0;
- min: 14 0;
- fixed: 1 0;
- align: 0.0 0.5;
- }
- }
- //FIXME: with icon
- swallow { "elm.swallow.end"; mouse; scale;
- desc { "default";
- rel1.to_x: "pad.center2";
- rel1.relative: 1.0 0.0;
- rel2.to_x: "pad.bottom.right";
- rel2.relative: 0.0 1.0;
- min: 40 30;
- max: 40 30;
- fixed: 0 1;
- align: 0.0 0.5;
- }
- }
- }
- programs {
- GENLIST_PROGRAMS("default", "disabled")
- }
-}
-
-#undef TOPP
-#undef IMGP
-#undef TREEIMGS
-
-group { "elm/genlist/item/full/default"; nomouse; program_source: "elm";
- alias: "elm/genlist/item_compress/full/default";
- alias: "elm/genlist/tree/full/default";
- alias: "elm/genlist/tree_compress/full/default";
- data.item: "contents" "elm.swallow.content";
- data.item: "focus_highlight" "on";
-
- target_group: "default" "base" "bottom_line";
- target_group: "disabled" "event";
- parts {
- GENLIST_BASE_COLOR_CLASS("genlist_item/full/bg", "genlist_item/full/bg_selected", "genlist_item/full/bg_focused")
- GENLIST_PAD(40, 40, 20, 20)
- swallow { "elm.swallow.content"; scale;
- desc { "default";
- rel1 { to: "base"; relative: 0.0 0.0; }
- rel2 { to: "base"; relative: 1.0 1.0; }
- }
- }
- GENLIST_BOTTOM_LINE_COLOR_CLASS("genlist_item/full/bottomline")
- }
-}
-
-group { "elm/genlist/item/group_index/default"; nomouse; program_source: "elm";
- alias: "elm/genlist/item_compress/group_index/default";
- alias: "elm/genlist/tree/group_index/default";
- alias: "elm/genlist/tree_compress/group_index/default";
-
- data.item: "texts" "elm.text elm.text.end";
- data.item: "contents" "elm.swallow.end";
- data.item: "focus_highlight" "on";
-
- target_group: "default" "base" "bottom_line" "elm.text" "elm.text.end";
- target_group: "disabled" "event" "elm.text" "elm.text.end";
-
- parts {
- GENLIST_BASE_COLOR_CLASS("genlist_item/group_index/bg", "genlist_item/group_index/bg_selected", "genlist_item/group_index/bg_focused")
- GENLIST_PAD(70, 70, 20, 20)
- GENLIST_BOTTOM_LINE_COLOR_CLASS("genlist_item/group_index/bottomline")
-
- textblock { "elm.text"; scale;
- desc { "default";
- rel1.to: "pad.top.left";
- rel1.relative: 1.0 1.0;
- rel2.to_x: "pad.center";
- rel2.to_y: "pad.bottom.right";
- rel2.relative: 0.0 0.0;
- color: 255 255 255 204; // 80%
- text {
- min: 1 1;
- style: "list_group_index_text";
- }
- }
- desc { "focused"; inherit: "default";
- color: 255 255 255 255;
- text.style: "list_group_index_text_focused";
- }
- desc { "disabled"; inherit: "default";
- color: 50 50 50 255;
- text.style: "list_group_index_text_disabled";
- }
- }
-
- textblock { "elm.text.end"; scale;
- desc { "default";
- rel1.to_x: "pad.center.right";
- rel1.relative: 0.0 0.5;
- rel2.to_x: "pad.center.right";
- rel2.relative: 0.0 0.5;
- align: 1.0 0.5;
- color: 255 255 255 204; // 80%
- fixed: 1 1;
- text {
- min: 1 1;
- style: "list_group_index_text_end";
- }
- }
- desc { "focused"; inherit: "default";
- color: 255 255 255 255;
- text.style: "list_group_index_text_end_focused";
- }
- desc { "disabled"; inherit: "default";
- color: 50 50 50 255;
- text.style: "list_group_index_text_end_disabled";
- }
- }
- swallow { "elm.swallow.end"; mouse;
- desc { "default";
- rel1.to_x: "pad.bottom.right";
- rel1.relative: 0.0 0.5;
- rel2.to_x: "pad.bottom.right";
- rel2.relative: 0.0 0.5;
- min: 40 40;
- fixed: 1 1;
- align: 1.0 0.5;
- }
- }
-
- // a padding between elm.text, elm.swallow.end
- spacer { "pad.center"; scale;
- desc { "default";
- rel1.to_x: "elm.text.end";
- rel1.relative: 0.0 0.5;
- rel2.to_x: "elm.text.end";
- rel2.relative: 0.0 0.5;
- fixed: 1 0;
- align: 1.0 0.5;
- min: 30 0;
- }
- }
- spacer { "pad.center.right"; scale;
- desc { "default";
- rel1.to_x: "elm.swallow.end";
- rel1.relative: 0.0 0.5;
- rel2.to_x: "elm.swallow.end";
- rel2.relative: 0.0 0.5;
- fixed: 1 0;
- align: 1.0 0.5;
- min: 30 0;
- }
- }
- }
- programs {
- GENLIST_PROGRAMS("default", "disabled")
- }
-}
-
-group { "elm/genlist/item/event/default"
- inherit_only: 1;
- parts {
- rect { "event"; nomouse; repeat; scale;
- desc { "default";
- color: 0 0 0 0;
- rel.to: "base";
- }
- desc { "disabled";
- inherit: "default";
- hid;
- }
- }
- }
- programs {
- /* Program for enabled event */
- program { "enabled";
- signal: "elm,state,enabled";
- source: "elm";
- action: STATE_SET "default";
- target: "event";
- after: "on_enabled";
- }
- /* Program for disabled event */
- program { "disabled";
- signal: "elm,state,disabled";
- source: "elm";
- action: STATE_SET "disabled";
- target: "event";
- after: "on_disabled";
- }
- program { "enable_event_pass";
- signal: "elm,event,pass,enabled";
- source: "elm";
- script {
- set_mouse_events(PART:"event", 0);
- }
- }
- program { "disable_event_pass";
- signal: "elm,event,pass,disabled";
- source:"elm";
- script {
- set_mouse_events(PART:"event", 1);
- }
- }
- program { "enable_event_repeat";
- signal: "elm,event,repeat,enabled";
- source: "elm";
- script {
- set_repeat_events(PART:"event", 1);
- }
- }
- program { "disable_event_repeat";
- signal: "elm,event,repeat,disabled";
- source:"elm";
- script {
- set_repeat_events(PART:"event", 0);
- }
- }
- }
-}
-
-
-group { "elm/genlist/item/type1/default";
- alias: "elm/genlist/item_compress/type1/default";
- alias: "elm/genlist/tree/type1/default";
- alias: "elm/genlist/tree_compress/type1/default";
- inherit: "elm/genlist/item/event/default";
-
- data.item: "banded_bg_area" "elm.swallow.bg";
-
- data.item: "texts" "elm.text elm.text.end elm.text.sub elm.text.sub.end";
- data.item: "contents" "elm.swallow.icon elm.swallow.icon.0 elm.swallow.icon.1 elm.swallow.icon.2 elm.swallow.end";
-
- script {
- public end_icon_visible = 0;
- public sub_end_text_visible = 0;
- }
- parts {
- // base spacer for item min height
- spacer { "base"; scale;
- desc { "default";
- min: 0 GENLIST_ITEM_1LINE_HEIGHT_INC;
- }
- desc { "sub_text_visible";
- min: 0 GENLIST_ITEM_2LINE_HEIGHT_INC;
- }
- }
- // background of item
- rect { "bg"; scale;
- desc { "default";
- rel.to: "base";
- color_class: "genlist_item/type1/bg";
- }
- desc { "pressed"; inherit: "default";
- color_class: "genlist_item/type1/bg_pressed";
- }
- desc { "disabled"; inherit: "default";
- color_class: "genlist_item/type1/bg_disabled";
- }
- }
- // swallow area for banded color
- swallow { "elm.swallow.bg"; scale;
- desc { "default";
- rel.to: "bg";
- }
- }
- // left outside padding
- spacer { "elm.padding.left"; scale;
- desc { "default";
- fixed: 1 0;
- min: GENLIST_ITEM_LR_PADDING_INC 0;
- align: 0.0 0.5;
- rel1 { to: "elm.swallow.bg"; relative: 0.0 0.0; }
- rel2 { to: "elm.swallow.bg"; relative: 0.0 1.0; }
- }
- }
- // right outside padding
- spacer { "elm.padding.right"; scale;
- desc { "default";
- fixed: 1 0;
- min: GENLIST_ITEM_LR_PADDING_INC 0;
- align: 1.0 0.5;
- rel1 { to: "elm.swallow.bg"; relative: 1.0 0.0; }
- rel2 { to: "elm.swallow.bg"; relative: 1.0 1.0; }
- }
- }
- // top outside padding
- spacer { "elm.padding.top"; scale;
- desc { "default";
- fixed: 0 1;
- min: 0 GENLIST_ITEM_TOP_PADDING_INC;
- max: -1 GENLIST_ITEM_TOP_PADDING_INC;
- align: 0.5 0.0;
- rel1 { to: "elm.swallow.bg"; relative: 0.0 0.0; }
- rel2 { to: "elm.swallow.bg"; relative: 1.0 0.0; }
- }
- }
- // bottom outside padding
- spacer { "elm.padding.bottom"; scale;
- desc { "default";
- fixed: 0 1;
- min: 0 GENLIST_ITEM_BOTTOM_PADDING_INC;
- max: -1 GENLIST_ITEM_BOTTOM_PADDING_INC;
- align: 0.5 1.0;
- rel1 { to: "elm.swallow.bg"; relative: 0.0 1.0; }
- rel2 { to: "elm.swallow.bg"; relative: 1.0 1.0; }
- }
- }
- // left swallow (Type B)
- swallow { "elm.swallow.icon"; scale;
- desc { "default";
- fixed: 1 0;
- align: 0.0 0.5;
- rel1 { to_x: "elm.padding.left"; to_y: "elm.padding.top"; relative: 1.0 1.0; }
- rel2 { to_x: "elm.padding.left"; to_y: "elm.padding.bottom"; relative: 1.0 0.0; }
- }
- }
- // padding between Type B & Type A
- spacer { "elm.padding.B.A"; scale;
- desc { "default";
- fixed: 1 0;
- min: 0 0;
- align: 0.0 0.5;
- rel1 { to_x: "elm.swallow.icon"; to_y: "elm.padding.top"; relative: 1.0 1.0; }
- rel2 { to_x: "elm.swallow.icon"; to_y: "elm.padding.bottom"; relative: 1.0 0.0; }
- }
- desc { "icon_visible"; inherit: "default";
- min: GENLIST_ITEM_TYPE_BA_PADDING_INC 0;
- }
- }
- // right swallow (Type C)
- swallow { "elm.swallow.end"; scale;
- desc { "default";
- fixed: 1 0;
- align: 1.0 0.5;
- rel1 { to_x: "elm.padding.right"; to_y: "elm.padding.top"; relative: 0.0 1.0; }
- rel2 { to_x: "elm.padding.right"; to_y: "elm.padding.bottom"; relative: 0.0 0.0; }
- }
- }
- // padding between Type D & Type C
- spacer { "elm.padding.D.C"; scale;
- desc { "default";
- fixed: 1 0;
- min: 0 0;
- align: 1.0 0.5;
- rel1 { to_x: "elm.swallow.end"; to_y: "elm.padding.top"; relative: 0.0 1.0; }
- rel2 { to_x: "elm.swallow.end"; to_y: "elm.padding.bottom"; relative: 0.0 0.0; }
- }
- desc { "icon_visible"; inherit: "default";
- min: GENLIST_ITEM_TYPE_DC_PADDING_INC 0;
- }
- }
- // right swallow 2 (Type D)
- swallow { "elm.swallow.icon.2"; scale;
- desc { "default";
- fixed: 1 0;
- align: 1.0 0.5;
- rel1 { to_x: "elm.padding.D.C"; to_y: "elm.padding.top"; relative: 0.0 1.0; }
- rel2 { to_x: "elm.padding.D.C"; to_y: "elm.padding.bottom"; relative: 0.0 0.0; }
- }
- }
- // padding between Type A & Type D
- spacer { "elm.padding.A.D"; scale;
- desc { "default";
- fixed: 1 0;
- min: 0 0;
- align: 1.0 0.5;
- rel1 { to_x: "elm.swallow.icon.2"; to_y: "elm.padding.top"; relative: 0.0 1.0; }
- rel2 { to_x: "elm.swallow.icon.2"; to_y: "elm.padding.bottom"; relative: 0.0 0.0; }
- }
- desc { "icon_visible"; inherit: "default";
- min: GENLIST_ITEM_TYPE_AD_PADDING_INC 0;
- }
- }
- // main text line
- swallow { "elm.swallow.icon.0"; scale;
- desc { "default";
- fixed: 1 0;
- align: 0.0 0.5;
- rel1 { to_x: "elm.padding.B.A"; to_y: "elm.padding.top"; relative: 1.0 1.0; }
- rel2 { to_x: "elm.padding.B.A"; to_y: "elm.text"; relative: 1.0 1.0; }
- }
- }
- swallow { "elm.swallow.icon.1"; scale;
- desc { "default";
- fixed: 1 0;
- align: 1.0 0.5;
- rel1 { to_x: "elm.padding.A.D"; to_y: "elm.padding.top"; relative: 0.0 1.0; }
- rel2 { to_x: "elm.padding.A.D"; to_y: "elm.text"; relative: 0.0 1.0; }
- }
- }
- spacer { "elm.padding.main.icon.text"; scale;
- desc { "default";
- fixed: 1 0;
- min: 0 0;
- align: 0.0 0.5;
- rel1 { to: "elm.swallow.icon.0"; to_y: "elm.padding.top"; relative: 1.0 1.0; }
- rel2 { to: "elm.swallow.icon.0"; to_y: "elm.padding.bottom"; relative: 1.0 0.0; }
- }
- desc { "icon_visible"; inherit: "default";
- min: GENLIST_ITEM_MAIN_LINE_ICON_TEXT_PADDING_INC 0;
- }
- }
- textblock { "elm.text.end"; scale;
- desc { "default";
- fixed: 1 0;
- min: 0 GENLIST_ITEM_MAIN_LINE_HEIGHT_INC;
- max: GENLIST_ITEM_END_TEXT_WIDTH_INC -1;
- align: 1.0 0.5;
- rel1 { to_x: "elm.swallow.icon.1"; to_y: "elm.padding.top"; relative: 0.0 1.0; }
- rel2 { to_x: "elm.swallow.icon.1"; to_y: "elm.text"; relative: 0.0 1.0; }
- text.style: "list_type1_text_end";
- text.min: 1 1;
- text.max: 0 1;
- }
- desc { "pressed"; inherit: "default";
- text.style: "list_type1_text_end_pressed";
- }
- desc { "disabled"; inherit: "default";
- text.style: "list_type1_text_end_disabled";
- }
- }
- spacer { "elm.padding.main.text.end"; scale;
- desc { "default";
- fixed: 1 0;
- min: 0 0;
- align: 1.0 0.5;
- rel1 { to_x: "elm.text.end"; to_y: "elm.padding.top"; relative: 0.0 1.0; }
- rel2 { to_x: "elm.text.end"; to_y: "elm.padding.bottom"; relative: 0.0 0.0; }
- }
- desc { "icon_visible"; inherit: "default";
- min: GENLIST_ITEM_MAIN_LINE_TEXT_END_PADDING_INC 0;
- }
- desc { "text_visible"; inherit: "default";
- min: GENLIST_ITEM_MAIN_LINE_TEXT_END_PADDING_INC 0;
- }
- }
- textblock { "elm.text"; scale;
- desc { "default";
- fixed: 0 1;
- min: 0 GENLIST_ITEM_MAIN_LINE_HEIGHT_INC;
- align: 0.5 0.0;
- rel1 { to_x: "elm.padding.main.icon.text"; to_y: "elm.padding.top"; relative: 1.0 1.0; }
- rel2 { to_x: "elm.padding.main.text.end"; to_y: "elm.padding.top"; relative: 0.0 1.0; }
- text.style: "list_type1_text";
- text.min: 0 1;
- }
- desc { "pressed"; inherit: "default";
- text.style: "list_type1_text_pressed";
- }
- desc { "disabled"; inherit: "default";
- text.style: "list_type1_text_disabled";
- }
- }
- // sub text line
- textblock { "elm.text.sub.end"; scale;
- desc { "default";
- fixed: 1 0;
- min: 0 GENLIST_ITEM_SUB_LINE_HEIGHT_INC;
- max: GENLIST_ITEM_END_TEXT_WIDTH_INC -1;
- align: 1.0 0.5;
- rel1 { to_x: "elm.padding.A.D"; to_y: "elm.text.sub"; relative: 0.0 0.0; }
- rel2 { to_x: "elm.padding.A.D"; to_y: "elm.padding.bottom"; relative: 0.0 0.0; }
- text.style: "list_type1_text_sub_end";
- text.min: 1 1;
- text.max: 0 1;
- }
- desc { "pressed"; inherit: "default";
- text.style: "list_type1_text_sub_end_pressed";
- }
- desc { "disabled"; inherit: "default";
- text.style: "list_type1_text_sub_end_disabled";
- }
- }
- spacer { "elm.padding.sub.text.end"; scale;
- desc { "default";
- fixed: 1 0;
- min: 0 0;
- align: 1.0 0.5;
- rel1 { to_x: "elm.text.sub.end"; to_y: "elm.padding.top"; relative: 0.0 1.0; }
- rel2 { to_x: "elm.text.sub.end"; to_y: "elm.padding.bottom"; relative: 0.0 0.0; }
- }
- desc { "icon_visible"; inherit: "default";
- min: GENLIST_ITEM_SUB_LINE_TEXT_END_PADDING_INC 0;
- }
- desc { "text_visible"; inherit: "default";
- min: GENLIST_ITEM_SUB_LINE_TEXT_END_PADDING_INC 0;
- }
- }
- textblock { "elm.text.sub"; scale;
- desc { "default";
- fixed: 0 1;
- min: 0 GENLIST_ITEM_SUB_LINE_HEIGHT_INC;
- align: 0.5 1.0;
- rel1 { to_x: "elm.padding.B.A"; to_y: "elm.padding.bottom"; relative: 1.0 0.0; }
- rel2 { to_x: "elm.padding.sub.text.end"; to_y: "elm.padding.bottom"; relative: 0.0 0.0; }
- text.style: "list_type1_text_sub";
- text.min: 0 1;
- }
- desc { "pressed"; inherit: "default";
- text.style: "list_type1_text_sub_pressed";
- }
- desc { "disabled"; inherit: "default";
- text.style: "list_type1_text_sub_disabled";
- }
- }
- // bottom base of main text line
- spacer { "base_line";
- desc { "default";
- fixed: 0 0;
- rel1 { to_y: "elm.text"; relative: 0.0 1.0; }
- rel2 { to_y: "elm.padding.bottom"; relative: 1.0 0.0; }
- }
- desc { "sub_text_visible"; inherit: "default";
- rel1 { to_y: "elm.text"; relative: 0.0 1.0; }
- rel2 { to_y: "elm.text.sub"; relative: 1.0 0.0; }
- }
- }
- rect { "elm.bottomline"; scale;
- desc { "default";
- vis;
- fixed: 0 1;
- min: 0 2;
- max: -1 2;
- align: 0.5 0.0;
- rel1.relative: 0.0 0.0;
- rel2.relative: 1.0 0.0;
- color_class: "genlist_item/type1/bottomline";
- }
- desc { "hidden"; inherit: "default";
- hid;
- }
- }
- rect { "event";
- after: "elm.bottomline";
- desc { "default";
- rel.to: "base";
- }
- desc { "disabled";
- inherit: "default";
- hid;
- }
- }
- }
- programs {
- program {
- signal: "elm,state,elm.swallow.bg,visible";
- source: "elm";
- action: STATE_SET "hidden";
- target: "elm.bottomline";
- }
- program {
- signal: "elm,state,elm.swallow.bg,hidden";
- source: "elm";
- action: STATE_SET "default";
- target: "elm.bottomline";
- }
- program {
- signal: "elm,state,elm.swallow.icon,visible";
- source: "elm";
- action: STATE_SET "icon_visible";
- target: "elm.padding.B.A";
- }
- program {
- signal: "elm,state,elm.swallow.icon,hidden";
- source: "elm";
- action: STATE_SET "default";
- target: "elm.padding.B.A";
- }
- program {
- signal: "elm,state,elm.swallow.icon.2,visible";
- source: "elm";
- action: STATE_SET "icon_visible";
- target: "elm.padding.A.D";
- }
- program {
- signal: "elm,state,elm.swallow.icon.2,hidden";
- source: "elm";
- action: STATE_SET "default";
- target: "elm.padding.A.D";
- }
- program {
- signal: "elm,state,elm.swallow.end,visible";
- source: "elm";
- action: STATE_SET "icon_visible";
- target: "elm.padding.D.C";
- }
- program {
- signal: "elm,state,elm.swallow.end,hidden";
- source: "elm";
- action: STATE_SET "default";
- target: "elm.padding.D.C";
- }
- program {
- signal: "elm,state,elm.swallow.icon.0,visible";
- source: "elm";
- action: STATE_SET "icon_visible";
- target: "elm.padding.main.icon.text";
- }
- program {
- signal: "elm,state,elm.swallow.icon.0,hidden";
- source: "elm";
- action: STATE_SET "default";
- target: "elm.padding.main.icon.text";
- }
- program {
- signal: "elm,state,elm.swallow.icon.1,visible";
- source: "elm";
- script {
- if (get_int(sub_end_text_visible) == 0) {
- set_state(PART:"elm.padding.main.text.end", "icon_visible", 0.0);
- set_state(PART:"elm.padding.sub.text.end", "icon_visible", 0.0);
- }
- else {
- set_state(PART:"elm.padding.main.text.end", "sub_text_visible", 0.0);
- set_state(PART:"elm.padding.sub.text.end", "text_visible", 0.0);
- }
- set_int(end_icon_visible, 1);
- }
- }
- program {
- signal: "elm,state,elm.swallow.icon.1,hidden";
- source: "elm";
- script {
- set_state(PART:"elm.padding.main.text.end", "default", 0.0);
- set_state(PART:"elm.padding.sub.text.end", "default", 0.0);
- set_int(end_icon_visible, 1);
- }
- }
- program {
- signal: "elm,state,elm.text.sub,visible";
- source: "elm";
- action: STATE_SET "sub_text_visible";
- target: "base";
- target: "base_line";
- }
- program {
- signal: "elm,state,elm.text.sub,hidden";
- source: "elm";
- action: STATE_SET "default";
- target: "base";
- target: "base_line";
- }
- program {
- signal: "elm,state,elm.text.end,visible";
- source: "elm";
- script {
- if (get_int(end_icon_visible) == 1 && get_int(sub_end_text_visible) == 1) {
- set_state(PART:"elm.padding.main.text.end", "sub_text_visible", 0.0);
- }
- else {
- set_state(PART:"elm.padding.main.text.end", "text_visible", 0.0);
- }
- }
- }
- program {
- signal: "elm,state,elm.text.end,hidden";
- source: "elm";
- script {
- set_state(PART:"elm.padding.main.text.end", "default", 0.0);
- }
- }
- program {
- signal: "elm,state,elm.text.sub.end,visible";
- source: "elm";
- script {
- set_int(sub_end_text_visible, 1);
- set_state(PART:"elm.padding.sub.text.end", "text_visible", 0.0);
- }
- }
- program {
- signal: "elm,state,elm.text.sub.end,hidden";
- source: "elm";
- script {
- set_int(sub_end_text_visible, 0);
- set_state(PART:"elm.padding.sub.text.end", "default", 0.0);
- }
- }
- program { "default";
- signal: "elm,state,default";
- source: "elm";
- script {
- set_state(PART:"base", "default", 0.0);
- set_state(PART:"base_line", "default", 0.0);
- set_state(PART:"elm.swallow.icon.1", "default", 0.0);
- set_state(PART:"elm.padding.B.A", "default", 0.0);
- set_state(PART:"elm.padding.A.D", "default", 0.0);
- set_state(PART:"elm.padding.D.C", "default", 0.0);
- set_state(PART:"elm.padding.main.icon.text", "default", 0.0);
- set_state(PART:"elm.padding.main.text.end", "default", 0.0);
- set_state(PART:"elm.padding.sub.text.end", "default", 0.0);
- set_state(PART:"elm.bottomline", "default", 0.0);
- set_state(PART:"bg", "default", 0.0);
- set_state(PART:"elm.text", "default", 0.0);
- set_state(PART:"elm.text.end", "default", 0.0);
- set_state(PART:"elm.text.sub", "default", 0.0);
- set_state(PART:"elm.text.sub.end", "default", 0.0);
- set_state(PART:"event", "default", 0.0);
- set_int(sub_end_text_visible, 0);
- }
- }
- program { "pressed";
- signal: "elm,state,selected";
- source: "elm";
- action: STATE_SET "pressed";
- target: "bg";
- target: "elm.text";
- target: "elm.text.end";
- target: "elm.text.sub";
- target: "elm.text.sub.end";
- }
- program { "unpressed";
- signal: "elm,state,unselected";
- source: "elm";
- action: STATE_SET "default";
- target: "bg";
- target: "elm.text";
- target: "elm.text.end";
- target: "elm.text.sub";
- target: "elm.text.sub.end";
- }
- program { "on_enabled";
- action: STATE_SET "default";
- target: "bg";
- target: "elm.text";
- target: "elm.text.end";
- target: "elm.text.sub";
- target: "elm.text.sub.end";
- }
- program { "on_disabled";
- action: STATE_SET "disabled";
- target: "bg";
- target: "elm.text";
- target: "elm.text.end";
- target: "elm.text.sub";
- target: "elm.text.sub.end";
- }
- }
-}
-
-group { "elm/genlist/item/double_label/default";
- alias: "elm/genlist/item_compress/double_label/default";
- alias: "elm/genlist/tree/double_label/default";
- alias: "elm/genlist/tree_compress/double_label/default";
- inherit: "elm/genlist/item/type1/default";
- data.item: "texts" "elm.text elm.text.sub";
- data.item: "contents" "elm.swallow.icon elm.swallow.end";
- parts {
- rect { "bg"; scale;
- desc { "default";
- color_class: "genlist_item/double_label/bg";
- }
- desc { "pressed"; inherit: "default";
- color_class: "genlist_item/double_label/bg_pressed";
- }
- desc { "disabled"; inherit: "default";
- color_class: "genlist_item/double_label/bg_disabled";
- }
- }
- textblock { "elm.text.sub"; scale;
- desc { "default";
- text.style: "list_double_label_text_sub";
- }
- desc { "pressed"; inherit: "default";
- text.style: "list_double_label_text_sub_pressed";
- }
- desc { "disabled"; inherit: "default";
- text.style: "list_double_label_text_sub_disabled";
- }
- }
- textblock { "elm.text"; scale;
- desc { "default";
- text.style: "list_double_label_text";
- }
- desc { "pressed"; inherit: "default";
- text.style: "list_double_label_text_pressed";
- }
- desc { "disabled"; inherit: "default";
- text.style: "list_double_label_text_disabled";
- }
- }
- rect { "elm.bottomline"; scale;
- desc { "default";
- color_class: "genlist_item/double_label/bottomline";
- }
- }
- }
-}
-
-group { "elm/genlist/item/end_icon/default"; nomouse; program_source: "elm";
- alias: "elm/genlist/item_compress/end_icon/default";
- alias: "elm/genlist/tree/end_icon/default";
- alias: "elm/genlist/tree_compress/end_icon/default";
-
- data.item: "texts" "elm.text";
- data.item: "contents" "elm.swallow.end";
- data.item: "focus_highlight" "on";
- target_group: "default" "base" "bottom_line" "elm.text";
- target_group: "disabled" "event" "elm.text";
- parts {
- GENLIST_BASE_COLOR_CLASS("genlist_item/end_icon/bg", "genlist_item/end_icon/bg_selected", "genlist_item/end_icon/bg_focused")
- GENLIST_PAD(40, 40, 20, 20)
- GENLIST_BOTTOM_LINE_COLOR_CLASS("genlist_item/end_icon/bottomline")
-
- text { "elm.text"; scale;
- desc { "default";
- rel1.to: "pad.top.left";
- rel1.relative: 1.0 1.0;
- rel2.to_x: "pad.center";
- rel2.to_y: "pad.bottom.right";
- rel2.relative: 0.0 0.0;
- color: 89 89 89 255;
- text { font: FONT_M; size: 30;
- min: 1 1;
- ellipsis: -1;
- align: 0.0 0.5;
- }
- }
- desc { "focused"; inherit: "default";
- color: 255 255 255 255;
- }
- desc { "disabled"; inherit: "default";
- color: 50 50 50 255;
- }
- }
- swallow { "elm.swallow.end"; mouse;
- desc { "default";
- rel1.to_x: "pad.bottom.right";
- rel1.relative: 0.0 0.5;
- rel2.to_x: "pad.bottom.right";
- rel2.relative: 0.0 0.5;
- min: 40 40;
- fixed: 1 1;
- align: 1.0 0.5;
- }
- }
- // a padding between elm.text, elm.swallow.end
- spacer { "pad.center"; scale;
- desc { "default";
- rel1.to_x: "elm.swallow.end";
- rel1.relative: 0.0 0.5;
- rel2.to_x: "elm.swallow.end";
- rel2.relative: 0.0 0.5;
- fixed: 1 0;
- align: 1.0 0.5;
- min: 40 0;
- }
- }
- }
- programs {
- GENLIST_PROGRAMS("default", "disabled")
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#define GENLIST_TREEPAD 19
-#define IMGP() \
- images.image: "list_highlight.png" COMP;
-#define BASEP(vert_align) \
- rect { "base"; mouse; \
- scale; \
- ignore_flags: ON_HOLD; \
- desc { "default"; \
- min: vert_align; \
- color: 0 0 0 0; \
- } \
- desc { "odd"; \
- min: vert_align; \
- color: 0 0 0 0; \
- } \
- } \
- program { \
- signal: "elm,state,odd"; source: "elm"; \
- action: STATE_SET "odd" 1.0; \
- target: "base"; \
- } \
- program { \
- signal: "elm,state,even"; source: "elm"; \
- action: STATE_SET "default" 0.0; \
- target: "base"; \
- }
-#define TOPP() \
- rect { "event_block"; \
- desc { "default"; \
- color: 0 0 0 0; \
- hid; \
- } \
- desc { "disabled"; \
- inherit: "default" 0.0; \
- vis; \
- } \
- } \
- program { \
- signal: "elm,state,disabled"; source: "elm"; \
- action: STATE_SET "disabled" 0.0; \
- target: "event_block"; \
- } \
- program { \
- signal: "elm,state,enabled"; source: "elm"; \
- action: STATE_SET "default" 0.0; \
- target: "event_block"; \
- }
-
-#define GENLIST_BASE(COLOR, COLOR2) \
- rect { "event"; mouse; \
- desc { "default"; \
- color: 0 0 0 0; \
- } \
- desc { "disabled"; \
- inherit: "default"; \
- hid; \
- } \
- } \
- rect { "base"; \
- scale; \
- desc { "default"; \
- color: COLOR; \
- } \
- desc { "selected"; \
- inherit: "default"; \
- color: COLOR2; \
- } \
- desc { "focused"; \
- inherit: "default"; \
- color: COLOR2; \
- } \
- }
-
-#define GENLIST_BASE_COLOR_CLASS(COLOR_CLASS, COLOR_CLASS_SELECTED, COLOR_CLASS_FOCUSED) \
- rect { "event"; mouse; \
- desc { "default"; \
- color: 0 0 0 0; \
- } \
- desc { "disabled"; \
- inherit: "default"; \
- hid; \
- } \
- } \
- rect { "base"; \
- scale; \
- desc { "default"; \
- color_class: COLOR_CLASS; \
- } \
- desc { "selected"; \
- inherit: "default"; \
- color_class: COLOR_CLASS_SELECTED; \
- } \
- desc { "focused"; \
- inherit: "default"; \
- color_class: COLOR_CLASS_FOCUSED; \
- } \
- }
-
-#define GENLIST_PAD(LEFT, RIGHT, TOP, BOTTOM) \
- spacer { "pad.top.left"; \
- scale; \
- desc { "default"; \
- rel2.relative: 0.0 0.0; \
- min: LEFT TOP; \
- fixed: 1 1; \
- align: 0.0 0.0; \
- } \
- } \
- spacer { "pad.bottom.right"; \
- scale; \
- desc { "default"; \
- rel1.relative: 1.0 1.0; \
- min: RIGHT BOTTOM; \
- fixed: 1 1; \
- align: 1.0 1.0; \
- } \
- }
-
-#define GENLIST_BOTTOM_LINE(COLOR) \
- rect { "bottom_line"; \
- desc { "default"; \
- fixed: 0 1; \
- min: 0 1; \
- rel1.relative: 0.0 1.0; \
- align: 0.5 1.0; \
- color: COLOR; \
- } \
- desc { "focused"; \
- inherit: "default"; \
- hid; \
- } \
- }
-
-#define GENLIST_BOTTOM_LINE_COLOR_CLASS(COLOR_CLASS) \
- rect { "bottom_line"; \
- desc { "default"; \
- fixed: 0 1; \
- min: 0 1; \
- rel1.relative: 0.0 1.0; \
- align: 0.5 1.0; \
- color_class: COLOR_CLASS; \
- } \
- desc { "focused"; \
- inherit: "default"; \
- hid; \
- } \
- }
-
-#define GENLIST_PROGRAMS(TARGET, TARGET_DISABLE) \
- program { name: "selected"; \
- signal: "elm,state,selected"; \
- action: STATE_SET "selected"; \
- target_groups: TARGET; \
- } \
- program { name: "unselected"; \
- signal: "elm,state,unselected"; \
- action: STATE_SET "default"; \
- target_groups: TARGET; \
- } \
- program { name: "focused"; \
- signal: "elm,state,focused"; \
- action: STATE_SET "focused"; \
- target_groups: TARGET; \
- } \
- program { name: "unfocused"; \
- signal: "elm,state,unfocused"; \
- action: STATE_SET "default"; \
- target_groups: TARGET; \
- } \
- program { name: "disabled"; \
- signal: "elm,state,disabled"; \
- action: STATE_SET "disabled"; \
- target_groups: TARGET_DISABLE; \
- } \
- program { name: "enabled"; \
- signal: "elm,state,enabled"; \
- action: STATE_SET "default"; \
- target_groups: TARGET_DISABLE; \
- }
-
-/*
-group { "elm/genlist/item/no_icon/default";
- data.item: "selectraise" "on";
- data.item: "texts" "elm.text";
- data.item: "treesize" GENLIST_TREEPAD;
- data.item: "flips" "elm.text.flip";
- IMGP()
- parts {
- BASEP(0 100)
-
- text { "elm.text"; mouse_events: 0;
- effect: SHADOW BOTTOM;
- scale;
- desc { "default";
- rel1.offset: 2 3;
- rel1.relative: 1.0 0.0;
- rel1.to_x: "elm.padding.start";
- rel2.offset: -3 -3;
- color: 255 255 255 255;
- color3: 0 0 0 128;
- color_class: "list_item";
- text { font: FN; size: GENLIST_FONT_SIZE_36;
- min: 1 1;
- align: 0.0 0.5;
- text_class: "list_item";
- }
- }
- desc { "selected";
- inherit: "default" 0.0;
- color: 51 153 255 255;
- color2: 51 153 255 24;
- color3: 51 153 255 18;
- }
- desc { "focused";
- inherit: "default" 0.0;
- color: 51 153 255 255;
- color2: 51 153 255 24;
- color3: 51 153 255 18;
- }
- desc { "disabled";
- inherit: "default" 0.0;
- color: 0 0 0 0;
- }
- desc { "flip_enabled";
- inherit: "default" 0.0;
- hid;
- }
- }
- swallow { "elm.text.flip";
- scale;
- desc { "default";
- hid;
- rel1.to_y: "elm.text";
- rel2.to_y: "elm.text";
- }
- desc { "flip_enabled";
- inherit: "default" 0.0;
- vis;
- }
- }
- program {
- signal: "elm,state,default"; source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.text";
- }
- program {
- signal: "elm,state,disabled"; source: "elm";
- action: STATE_SET "disabled" 0.0;
- target: "elm.text";
- }
- program {
- signal: "elm,state,enabled"; source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.text";
- }
- program {
- signal: "elm,state,flip,enabled"; source: "elm";
- action: STATE_SET "flip_enabled" 0.0;
- target: "elm.text";
- target: "elm.text.flip";
- }
- program {
- signal: "elm,state,flip,disabled"; source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.text";
- target: "elm.text.flip";
- }
- spacer { "elm.padding.start";
- scale;
- desc { "default";
- fixed: 1 1;
- align: 0.0 0.5;
- min: 10 10;
- max: 10 10;
- }
- }
-
- TOPP()
- }
-}
-*/
+++ /dev/null
-/*
- * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-group { name: "elm/hover/base/menu";
- parts {
- part { name: "elm.swallow.offset"; type: SWALLOW;
- description { state: "default" 0.0;
- align: 0.0 0.0;
- rel2.relative: 0.0 0.0;
- }
- }
- part { name: "elm.swallow.size"; type: SWALLOW;
- description { state: "default" 0.0;
- align: 0.0 0.0;
- rel1.to: "elm.swallow.offset";
- rel1.relative: 1.0 1.0;
- rel2.to: "elm.swallow.offset";
- }
- }
- part { name: "base"; type: RECT; mouse_events: 1;
- description { state: "default" 0.0;
- color: 0 0 0 0;
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- color: 0 0 0 64;
- }
- }
- part { name: "elm.swallow.slot.left"; type: SWALLOW;
- description { state: "default" 0.0;
- }
- }
- part { name: "elm.swallow.slot.right"; type: SWALLOW;
- description { state: "default" 0.0;
- }
- }
- part { name: "elm.swallow.slot.top"; type: SWALLOW;
- description { state: "default" 0.0;
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- }
- }
- part { name: "bottomclip"; type: RECT;
- description { state: "default" 0.0;
- rel1.to_y: "pop";
- rel1.relative: 0.0 1.0;
- }
- }
- part { name: "pad.left_top"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 1 2;
- max: 1 2;
- rel1.to: "elm.swallow.size";
- rel2.to: "elm.swallow.size";
- rel2.relative: 0.0 0.0;
- }
- }
- part { name: "pad.right_bottom"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 1 24;
- max: 1 24;
- rel1.to: "elm.swallow.slot.bottom";
- rel1.relative: 1.0 1.0;
- rel2.to: "elm.swallow.slot.bottom";
- }
- }
- part { name: "bottom"; type: SPACER;
- clip_to: "bottomclip";
- scale: 1;
- description { state: "default" 0.0;
- //visible: 0;
- rel1.to: "pad.left_top";
- rel1.relative: 0.0 1.0;
- rel2.to: "pad.right_bottom";
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- //visible: 1;
- }
- }
- part { name: "pad.top_left"; type: SPACER;
- clip_to: "bottomclip";
- scale: 1;
- description { state: "default" 0.0;
- min: 4 6;
- max: 4 6;
- align: 0.0 0.0;
- rel2.to: "elm.swallow.slot.middle";
- rel2.relative: 0.0 0.0;
- }
- }
- part { name: "pad.slot.top"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- align: 0.5 0.0;
- min: 0 16;
- max: 9999 14;
- rel1.to_y: "elm.swallow.size";
- rel1.to_x: "elm.swallow.size";
- rel2.to_x: "elm.swallow.size";
- rel2.relative: 1.0 0.0;
- }
- }
- part { name: "elm.swallow.slot.bottom"; type: SWALLOW;
- clip_to: "bottomclip";
- description { state: "default" 0.0;
- align: 0.5 1.0;
- rel1.to: "pad.slot.top";
- rel1.relative: 0.0 1.0;
- rel2.to: "elm.swallow.slot.middle";
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- align: 0.5 0.0;
- }
- }
- part { name: "pop"; type: SPACER; mouse_events: 1; repeat_events:1;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "elm.swallow.slot.middle";
- rel2.to: "elm.swallow.slot.middle";
- }
- }
- part { name: "elm.swallow.slot.middle"; type: SWALLOW; repeat_events:1;
- description { state: "default" 0.0;
- rel1.to: "elm.swallow.size";
- rel2.to: "elm.swallow.size";
- }
- }
- }
- programs {
- program { name: "end";
- signal: "mouse,up,1"; source: "base";
- action: SIGNAL_EMIT "elm,action,dismiss" "";
- }
- program { name: "show";
- signal: "elm,action,show"; source: "elm";
- action: STATE_SET "visible" 0.0;
- target: "base";
- }
- program { name: "hide";
- signal: "elm,action,hide"; source: "elm";
- action: STATE_SET "default" 0.0;
- target: "base";
- }
- program { name: "bottomshow";
- signal: "elm,action,slot,bottom,show"; source: "elm";
- action: STATE_SET "visible" 0.0;
- transition: DECELERATE 0.3;
- target: "bottom";
- target: "elm.swallow.slot.bottom";
- }
- program { name: "bottomhide";
- signal: "elm,action,slot,bottom,hide"; source: "elm";
- action: STATE_SET "default" 0.0;
- transition: DECELERATE 0.5;
- target: "bottom";
- target: "elm.swallow.slot.bottom";
- }
- }
-}
-
-group { name: "elm/hover/base/submenu";
- parts {
- part { name: "elm.swallow.offset"; type: SWALLOW; repeat_events:1;
- description { state: "default" 0.0;
- align: 0.0 0.0;
- rel2.relative: 0.0 0.0;
- }
- }
- part { name: "elm.swallow.size"; type: SWALLOW;
- description { state: "default" 0.0;
- align: 0.0 0.0;
- rel1.to: "elm.swallow.offset";
- rel1.relative: 1.0 1.0;
- rel2.to: "elm.swallow.offset";
- }
- }
- part { name: "base"; type: RECT; mouse_events: 1;
- description { state: "default" 0.0;
- color: 0 0 0 0;
- visible: 0;
- }
- }
- part { name: "elm.swallow.slot.left"; type: SWALLOW;
- description { state: "default" 0.0;
- }
- }
- part { name: "elm.swallow.slot.right"; type: SWALLOW;
- description { state: "default" 0.0;
- }
- }
- part { name: "elm.swallow.slot.top"; type: SWALLOW;
- description { state: "default" 0.0;
- }
- }
- part { name: "pad.pop_bottom_right"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 1 2;
- max: 1 2;
- align: 0.0 0.0;
- rel1.to: "pop";
- }
- }
- part { name: "bottomclip"; type: RECT;
- description { state: "default" 0.0;
- rel1.to: "pad.pop_bottom_right";
- rel1.relative: 0.0 1.0;
- }
- }
- part { name: "pad.left_top"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 1 2;
- max: 1 2;
- rel1.to: "elm.swallow.size";
- rel2.to: "elm.swallow.size";
- rel2.relative: 0.0 0.0;
- }
- }
- part { name: "pad.right_bottom"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 1 14;
- max: 1 14;
- rel1.to: "elm.swallow.slot.bottom";
- rel1.relative: 1.0 1.0;
- rel2.to: "elm.swallow.slot.bottom";
- }
- }
- part { name: "bottom"; type: SPACER;
- clip_to: "bottomclip";
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "pad.left_top";
- rel1.relative: 0.0 1.0;
- rel2.to: "pad.right_bottom";
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- }
- }
- part { name: "pad.top_left"; type: SPACER;
- clip_to: "bottomclip";
- scale: 1;
- description { state: "default" 0.0;
- min: 4 7;
- max: 4 7;
- align: 0.0 0.0;
- rel1.to: "elm.swallow.slot.middle";
- }
- }
- part { name: "pad.slot.top"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- align: 0.5 0.0;
- min: 0 16;
- max: 9999 14;
- rel1.to_y: "elm.swallow.size";
- rel1.relative: 0.0 0.0;
- rel1.to_x: "elm.swallow.size";
- rel1.relative: 0.0 0.0;
- rel2.to_x: "elm.swallow.size";
- rel2.relative: 1.0 0.0;
- }
- }
- part { name: "elm.swallow.slot.bottom"; type: SWALLOW;
- clip_to: "bottomclip";
- description { state: "default" 0.0;
- align: 0.5 1.0;
- rel1.to: "pad.slot.top";
- rel1.relative: 0.0 1.0;
- rel2.to: "elm.swallow.slot.middle";
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- rel1.to: "pad.top_left";
- rel1.relative: 0.0 1.0;
- align: 0.5 0.0;
- }
- }
- part { name: "pop"; type: SPACER; mouse_events: 1; repeat_events:1;
- description { state: "default" 0.0;
- rel1.to: "elm.swallow.slot.middle";
- rel2.to: "elm.swallow.slot.middle";
- }
- }
- part { name: "elm.swallow.slot.middle"; type: SWALLOW; repeat_events:1;
- description { state: "default" 0.0;
- rel1.to: "elm.swallow.size";
- rel2.to: "elm.swallow.size";
- }
- }
- }
- programs {
- program { name: "end";
- signal: "mouse,up,1"; source: "base";
- action: SIGNAL_EMIT "elm,action,dismiss" "";
- }
- program { name: "show";
- signal: "elm,action,show"; source: "elm";
- action: STATE_SET "visible" 0.0;
- target: "base";
- }
- program { name: "hide";
- signal: "elm,action,hide"; source: "elm";
- action: STATE_SET "default" 0.0;
- target: "base";
- }
- program { name: "bottomshow";
- signal: "elm,action,slot,bottom,show"; source: "elm";
- action: STATE_SET "visible" 0.0;
- transition: DECELERATE 0.3;
- target: "bottom";
- target: "elm.swallow.slot.bottom";
- }
- program { name: "bottomhide";
- signal: "elm,action,slot,bottom,hide"; source: "elm";
- action: STATE_SET "default" 0.0;
- transition: DECELERATE 0.5;
- target: "bottom";
- target: "elm.swallow.slot.bottom";
- }
- }
-}
-
-group { name: "elm/hover/base/main_menu";
- parts {
- part { name: "elm.swallow.offset"; type: SWALLOW;
- description { state: "default" 0.0;
- visible: 0;
- fixed: 1 1;
- }
- }
- part { name: "elm.swallow.size"; type: SWALLOW;
- description { state: "default" 0.0;
- align: 0.0 0.0;
- rel2.relative: 0.0 0.0;
- fixed: 1 1;
- }
- }
- part { name: "pad.pop_bottom_right"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 1 2;
- max: 1 2;
- align: 0.0 0.0;
- }
- }
- part { name: "bottomclip"; type: RECT;
- description { state: "default" 0.0;
- rel1.to: "pad.pop_bottom_right";
- rel1.relative: 1.0 1.0;
- }
- }
- part { name: "pad.left_top"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 1 2;
- max: 1 2;
- rel1.to: "elm.swallow.size";
- rel2.to: "elm.swallow.size";
- rel2.relative: 0.0 0.0;
- }
- }
- part { name: "pad.right_bottom"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 1 14;
- max: 1 14;
- rel1.to: "elm.swallow.slot.bottom";
- rel1.relative: 1.0 1.0;
- rel2.to: "elm.swallow.slot.bottom";
- }
- }
- part { name: "bottom"; type: RECT;
- clip_to: "bottomclip";
- scale: 1;
- description { state: "default" 0.0;
- visible: 0;
- rel1.to: "pad.left_top";
- rel1.relative: 0.0 1.0;
- rel2.to: "pad.right_bottom";
- }
- }
- part { name: "pad.slot.top"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- align: 0.5 0.0;
- min: 0 16;
- max: 9999 14;
- rel1.to_y: "elm.swallow.size";
- rel1.to_x: "elm.swallow.size";
- rel2.to_x: "elm.swallow.size";
- rel2.relative: 1.0 0.0;
- }
- }
- part { name: "elm.swallow.slot.bottom"; type: SWALLOW;
- clip_to: "bottomclip";
- description { state: "default" 0.0;
- align: 0.5 1.0;
- rel1.to: "pad.slot.top";
- rel1.relative: 0.0 1.0;
- rel2.to: "elm.swallow.size";
- fixed: 1 1;
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- align: 0.5 0.0;
- }
- }
- }
- programs {
- program { name: "bottomshow";
- signal: "elm,action,slot,bottom,show"; source: "elm";
- action: STATE_SET "visible" 0.0;
- transition: DECELERATE 0.3;
- target: "elm.swallow.slot.bottom";
- }
- }
-}
-
-group { name: "elm/hover/base/main_menu_submenu";
- parts {
- part { name: "elm.swallow.offset"; type: SWALLOW; repeat_events:1;
- description { state: "default" 0.0;
- align: 0.0 0.0;
- rel2.relative: 0.0 0.0;
- }
- }
- part { name: "elm.swallow.size"; type: SWALLOW;
- description { state: "default" 0.0;
- align: 0.0 0.0;
- rel1.to: "elm.swallow.offset";
- rel1.relative: 1.0 1.0;
- rel2.to: "elm.swallow.offset";
- }
- }
- part { name: "base"; type: RECT;
- mouse_events: 1;
- description { state: "default" 0.0;
- color: 0 0 0 0;
- }
- }
- part { name: "pad.pop_bottom_right"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 1 2;
- max: 1 2;
- align: 0.0 0.0;
- rel1.to: "pop";
- }
- }
- part { name: "bottomclip"; type: RECT;
- description { state: "default" 0.0;
- rel1.to_y: "pad.pop_bottom_right";
- rel1.relative: 0.0 1.0;
- }
- }
- part { name: "pad.left_top"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 1 2;
- max: 1 2;
- rel1.to: "elm.swallow.size";
- rel2.to: "elm.swallow.size";
- rel2.relative: 0.0 0.0;
- }
- }
- part { name: "pad.right_bottom"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 1 14;
- max: 1 14;
- rel1.to: "elm.swallow.slot.bottom";
- rel1.relative: 1.0 1.0;
- rel2.to: "elm.swallow.slot.bottom";
- }
- }
- part { name: "bottom"; type: SPACER;
- clip_to: "bottomclip";
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "pad.left_top";
- rel1.relative: 0.0 1.0;
- rel2.to: "pad.right_bottom";
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- }
- }
- part { name: "pad.slot.top"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- align: 0.5 0.0;
- min: 0 16;
- max: 9999 14;
- rel1.to_y: "elm.swallow.size";
- rel1.to_x: "elm.swallow.size";
- rel2.to_x: "elm.swallow.size";
- rel2.relative: 1.0 0.0;
- }
- }
- part { name: "elm.swallow.slot.bottom"; type: SWALLOW;
- clip_to: "bottomclip";
- description { state: "default" 0.0;
- align: 0.5 1.0;
- rel1.to: "pad.slot.top";
- rel1.relative: 0.0 1.0;
- rel2.to: "elm.swallow.slot.middle";
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- align: 0.5 0.0;
- }
- }
- part { name: "pop"; type: SPACER; mouse_events: 1; repeat_events:1;
- description { state: "default" 0.0;
- rel1.to: "elm.swallow.slot.middle";
- rel2.to: "elm.swallow.slot.middle";
- }
- }
- part { name: "elm.swallow.slot.middle"; type: SWALLOW; repeat_events:1;
- description { state: "default" 0.0;
- rel1.to: "elm.swallow.size";
- rel2.to: "elm.swallow.size";
- }
- }
- }
- programs {
- program { name: "end";
- signal: "mouse,up,1"; source: "base";
- action: SIGNAL_EMIT "elm,action,dismiss" "";
- }
- program { name: "show";
- signal: "elm,action,show"; source: "elm";
- action: STATE_SET "visible" 0.0;
- target: "base";
- }
- program { name: "hide";
- signal: "elm,action,hide"; source: "elm";
- action: STATE_SET "default" 0.0;
- target: "base";
- }
- program { name: "bottomshow";
- signal: "elm,action,slot,bottom,show"; source: "elm";
- action: STATE_SET "visible" 0.0;
- transition: DECELERATE 0.3;
- target: "bottom";
- target: "elm.swallow.slot.bottom";
- }
- program { name: "bottomhide";
- signal: "elm,action,slot,bottom,hide"; source: "elm";
- action: STATE_SET "default" 0.0;
- transition: DECELERATE 0.5;
- target: "bottom";
- target: "elm.swallow.slot.bottom";
- }
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#define HOVERSEL_FONT_SIZE 30
-
-/*********************************************************************************
-Document: Tizen TV_General Guide_GUI Guideline_v1.1_140709.pdf
-HOVERSEL
-Page No.: 84~89
-*********************************************************************************/
-images {
- image: "round_rectangle_4X4.png" COMP;
- image: "ico_dropdown_menu_open_arrow.png" COMP;
- image: "ico_dropdown_menu_check.png" COMP;
-}
-
-group { name: "elm/button/base/hoversel_vertical/default";
- data.item: "focus_highlight" "on";
- parts {
- part { name: "base"; type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- min: 0 70;
- color: 193 193 193 204;
- }
- description { state: "focus" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 255;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- color: 193 193 193 51;
- }
- }
- part { name: "pad.left"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- align: 0.0 0.5;
- min: 32 0;
- max: 32 0;
- }
- }
- part { name: "pad.icon"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- rel2.to: "down_icon";
- rel2.relative: 0.0 1.0;
- align: 1 0.5;
- fixed: 1 1;
- min: 20 0;
- max: 20 0;
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- min: 56 0;
- max: 56 0;
- }
- }
- part { name: "pad.right"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- align: 1.0 0.5;
- min: 24 0;
- max: 24 0;
- }
- }
- part { name: "button_base";
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "base";
- rel2.to: "base";
- color_class: "hoversel/default/bg";
- image {
- normal: "round_rectangle_4X4.png";
- border: 4 4 4 4;
- border_scale: 1;
- }
- }
- description { state: "focus" 0.0;
- inherit: "default" 0.0;
- color_class: "hoversel/default/bg_focused";
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- color_class: "hoversel/default/bg_disabled";
- }
- }
- part { name: "down_icon";
- scale: 1;
- clip_to: "base";
- description { state: "default" 0.0;
- rel2.to_x: "pad.right";
- rel2.relative: 0.0 1.0;
- align: 1.0 0.5;
- fixed: 1 1;
- min: 26 26;
- max: 26 26;
- image.normal: "ico_dropdown_menu_open_arrow.png";
- }
- }
- part { name: "elm.text"; type: TEXT; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to_x: "pad.left";
- rel1.relative: 1.0 0.0;
- rel2.to_x: "pad.icon";
- rel2.relative: 0.0 1.0;
- align: 0 0.5;
- fixed: 1 1;
- color_class: "hoversel/default/text";
- text {
- size: HOVERSEL_FONT_SIZE;
- max: 1 0;
- text_class: "button";
- align: 0.0 0.5;
- }
- }
- description { state: "focus" 0.0;
- inherit: "default" 0.0;
- color_class: "hoversel/default/text_focused";
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- color: 175 175 175 102;
- color_class: "hoversel/default/text_disabled";
- }
- description { state: "disabled_visible" 0.0;
- inherit: "default" 0.0;
- color_class: "hoversel/default/text_disabled_visible";
- }
- }
- part { name: "pad.text"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 10 0;
- max: 10 0;
- fixed: 1 1;
- align: 0.0 0.5;
- rel1.to_x: "elm.text";
- rel1.relative: 1.0 0.0;
- rel2.to_x: "elm.text";
- rel2.relative: 1.0 1.0;
- }
- }
- part { name: "elm.swallow.content"; type: SWALLOW;
- scale: 1;
- clip_to: "base";
- description { state: "default" 0.0;
- min: 26 26;
- max: 26 26;
- fixed: 1 1;
- align: 0.0 0.5;
- rel1.to_x: "pad.text";
- rel1.relative: 1.0 0.5;
- rel2.to_x: "pad.text";
- rel2.relative: 1.0 0.5;
- }
- }
- part { name: "event"; type: RECT;
- description { state: "default" 0.0;
- color: 0 0 0 0;
- fixed: 1 1;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- }
- programs {
- program { name: "button_click";
- signal: "mouse,down,1"; source: "event";
- action: SIGNAL_EMIT "elm,action,press" "";
- after: "button_click_anim";
- }
- program { name: "button_click_anim";
- action: STATE_SET "focus" 0.0;
- target: "button_base";
- target: "base";
- target: "elm.text";
- }
- program { name: "button_unclick";
- signal: "mouse,up,1"; source: "event";
- action: SIGNAL_EMIT "elm,action,unpress" "";
- after: "button_unclick_anim";
- }
- program { name: "button_unclick_anim";
- action: STATE_SET "focus" 0.0;
- target: "elm.text";
- target: "button_base";
- target: "base";
- }
- program { name: "mouse_unclick_after";
- signal: "mouse,clicked,1"; source: "event";
- action: SIGNAL_EMIT "elm,action,click" "";
- }
- program { name: "key_press";
- signal: "elm,anim,activate"; source: "elm";
- action: STATE_SET "focus" 0.0;
- target: "elm.text";
- target: "button_base";
- target: "base";
- after: "key_unpress";
- }
- program { name: "key_unpress";
- action: STATE_SET "focus" 0.0;
- transition: DECELERATE 0.2;
- target: "button_base";
- target: "base";
- target: "elm.text";
- }
- program { name: "focused";
- signal: "elm,action,focus"; source: "elm";
- action: STATE_SET "focus" 0.0;
- target: "elm.text";
- target: "button_base";
- target: "base";
- }
- program { name: "unfocused";
- signal: "elm,action,unfocus"; source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.text";
- target: "button_base";
- target: "base";
- }
- program { name: "icon_show";
- signal: "elm,state,icon,visible"; source: "elm";
- action: STATE_SET "visible" 0.0;
- target: "pad.icon";
- }
- program { name: "icon_hide";
- signal: "elm,state,icon,hidden"; source: "elm";
- action: STATE_SET "default" 0.0;
- target: "pad.icon";
- }
- program { name: "text_show";
- signal: "elm,state,text,visible"; source: "elm";
- script {
- new st[31];
- new Float: vl;
- get_state(PART:"elm.text", st, 30, vl);
- if ((!strcmp(st, "disabled")) || (!strcmp(st, "disabled_visible")))
- set_state(PART:"elm.text", "disabled_visible", 0.0);
- else
- set_state(PART:"elm.text", "visible", 0.0);
- }
- }
- program { name: "text_hide";
- signal: "elm,state,text,hidden"; source: "elm";
- script {
- new st[31];
- new Float: vl;
- get_state(PART:"elm.text", st, 30, vl);
- if ((!strcmp(st, "default")) || (!strcmp(st, "visible")))
- set_state(PART:"elm.text", "default", 0.0);
- else
- set_state(PART:"elm.text", "disabled", 0.0);
- }
- }
- program { name: "disable";
- signal: "elm,state,disabled"; source: "elm";
- script {
- new st[31];
- new Float: vl;
- set_state(PART:"button_base", "disabled", 0.0);
- set_state(PART:"event", "disabled", 0.0);
- set_state(PART:"down_icon", "disabled", 0.0);
- get_state(PART:"elm.text", st, 30, vl);
- if ((!strcmp(st, "visible")) || (!strcmp(st, "disabled_visible")))
- set_state(PART:"elm.text", "disabled_visible", 0.0);
- else
- set_state(PART:"elm.text", "disabled", 0.0);
- }
- }
- program { name: "enable";
- signal: "elm,state,enabled"; source: "elm";
- script {
- new st[31];
- new Float: vl;
- set_state(PART:"button_base", "visible", 0.0);
- set_state(PART:"event", "visible", 0.0);
- get_state(PART:"elm.text", st, 30, vl);
- if ((!strcmp(st, "visible")) || (!strcmp(st, "disabled_visible")))
- set_state(PART:"elm.text", "visible", 0.0);
- else
- set_state(PART:"elm.text", "default", 0.0);
- }
- }
- }
-}
-
-/******************************************************************************
-Document: Tizen TV_General Guide_GUI Guideline_v1.1_140709.pdf
-HOVERSEL
-Page No.: 84~89
-******************************************************************************/
-group { name: "elm/button/base/hoversel_vertical_entry/default";
- data.item: "focus_highlight" "on";
- script {
- public is_selected = 0;
- }
- parts {
- part { name: "base"; type: RECT;
- description { state: "default" 0.0;
- min: 0 70;
- color: 98 98 98 255;
- }
- description { state: "focus" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 255;
- }
- description { state: "highlight" 0.0;
- inherit: "focus" 0.0;
- color_class: "open_ux_theme";
- }
- description { state: "highlight_focus" 0.0;
- inherit: "focus" 0.0;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- }
- }
- part { name: "pad.left"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- align: 0 0.5;
- fixed: 1 1;
- min: 32 0;
- max: 32 0;
- }
- }
- part { name: "pad.right"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- align: 1.0 0.5;
- min: 24 0;
- max: 24 0;
- }
- }
- part { name: "clipper.all_item"; type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "base";
- rel2.to: "base";
- }
- description { state: "last_item" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- part { name: "clipper.last_item"; type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "base";
- rel2.to: "base";
- visible: 0;
- }
- description { state: "last_item" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- part { name: "button_image"; type: RECT;
- scale: 1;
- clip_to: "clipper.all_item";
- description { state: "default" 0.0;
- rel1.to: "base";
- rel2.to: "base";
- color_class: "hoversel_item/default/bg";
- }
- description { state: "focus" 0.0;
- inherit: "default" 0.0;
- color_class: "hoversel_item/default/bg_focused";
- }
- description { state: "highlight" 0.0;
- inherit: "default" 0.0;
- color_class: "hoversel_item/default/bg_highlight";
- }
- description { state: "highlight_focus" 0.0;
- inherit: "default" 0.0;
- color_class: "hoversel_item/default/bg_focused_highlight";
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- color_class: "hoversel_item/default/bg_disabled";
- }
- }
- part { name: "pad.last_item"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 0 4;
- fixed: 1 1;
- rel1.to: "base";
- rel1.relative: 0.0 0.0;
- rel2.to: "base";
- rel2.relative: 1.0 0.0;
- align: 0.5 1.0;
- }
- }
- part { name: "button_image_last";
- scale: 1;
- clip_to: "clipper.last_item";
- description { state: "default" 0.0;
- rel1.to: "pad.last_item";
- rel2.to: "base";
- image {
- normal: "round_rectangle_4X4.png";
- border: 4 4 4 4;
- border_scale: 1;
- }
- color_class: "open_ux_theme";
- }
- description { state: "focus" 0.0;
- inherit: "default" 0.0;
- color_class: "hoversel_item/default/bg_focused";
- }
- description { state: "highlight" 0.0;
- inherit: "default" 0.0;
- color_class: "hoversel_item/default/bg_highlight";
- }
- description { state: "highlight_focus" 0.0;
- inherit: "default" 0.0;
- color_class: "hoversel_item/default/bg_focused_highlight";
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- color_class: "hoversel_item/default/bg_disabled";
- }
- }
- part { name: "list_division"; type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "base";
- rel2.to: "base";
- rel2.relative: 1 0;
- fixed: 1 1;
- color: 222 222 222 255;
- min: 2 2;
- max: 9999 2;
- }
- description { state: "focus" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- description { state: "highlight" 0.0;
- inherit: "default" 0.0;
- }
- description { state: "highlight_focus" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- }
- }
- part { name: "check";
- scale: 1;
- clip_to:"base";
- description { state: "default" 0.0;
- rel2.to_x: "pad.right";
- rel2.relative: 0.0 1.0;
- align: 1 0.5;
- fixed: 1 1;
- min: 0 0;
- max: 0 0;
- image.normal: "ico_dropdown_menu_check.png";
- visible: 0;
- }
- description { state: "highlight" 0.0;
- inherit: "default" 0.0;
- min: 26 26;
- max: 26 26;
- visible: 1;
- }
- }
- part { name: "pad.middle_right"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "check";
- rel1.relative: 1 0;
- rel2.to: "check";
- rel2.relative: 0 1;
- fixed: 1 1;
- align: 1 0.5;
- min: 20 0;
- max: 20 0;
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- min: 56 0;
- max: 56 0;
- }
- }
- part { name: "elm.text"; type: TEXT; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "pad.left";
- rel1.relative: 1.0 0.0;
- rel2.to: "pad.middle_right";
- rel2.relative: 0 1;
- align: 0.0 0.5;
- fixed: 1 1;
- color: 89 89 89 255;
- text.text_source: "elm.text";
- text {
- size: 30;
- max: 1 0;
- align: 0 0.5;
- text_class: "button";
- }
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- }
- description { state: "focus" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 255;
- }
- description { state: "highlight" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 255;
- color_class: "open_ux_theme";
- color3: 0 0 0 0;
- }
- description { state: "highlight_focus" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 255;
- color3: 0 0 0 0;
- }
- }
- part { name: "pad.middle_left"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "elm.text";
- rel1.relative: 1.0 0.0;
- rel2.to: "elm.text";
- fixed: 1 1;
- align: 0.0 0.5;
- min: 10 0;
- max: 10 0;
- }
- }
- part { name: "elm.swallow.content"; type: SWALLOW;
- scale: 1;
- clip_to: "base";
- description { state: "default" 0.0;
- rel1.to: "pad.middle_left";
- rel1.relative: 1.0 0.5;
- rel2.to_x: "pad.middle_left";
- rel2.relative: 1.0 0.5;
- align: 0.0 0.5;
- fixed: 1 1;
- min: 26 26;
- max: 26 26;
- }
- }
- part { name: "event"; type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- color: 0 0 0 0;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- }
- programs {
- program { name: "init";
- signal: "load";
- script {
- new var = 0;
- set_int(is_selected, var);
- }
- }
- program { name: "button_click";
- signal: "mouse,down,1"; source: "event";
- action: SIGNAL_EMIT "elm,action,press" "";
- after: "button_click_anim";
- }
- program { name: "button_click_anim";
- action: STATE_SET "highlight" 0.0;
- target: "elm.text";
- target: "button_image";
- target: "button_image_last";
- target: "base";
- }
- program { name: "button_unclick";
- signal: "mouse,up,1"; source: "event";
- action: SIGNAL_EMIT "elm,action,unpress" "";
- after: "button_unclick_anim";
- }
- program { name: "mouse_unclick_after";
- signal: "mouse,clicked,1"; source: "event";
- action: SIGNAL_EMIT "elm,action,click" "";
- }
- program { name: "button_pressed_anim";
- signal: "elm,anim,activate"; source: "elm";
- action: STATE_SET "highlight" 0.0;
- target: "elm.text";
- target: "button_image";
- target: "button_image_last";
- target: "list_division";
- target: "base";
- }
- program { name: "button_unclick_anim";
- action: STATE_SET "default" 0.0;
- target: "elm.text";
- target: "button_image";
- target: "button_image_last";
- target: "base";
- }
- program { name: "focused";
- signal: "elm,action,focus"; source: "elm";
- action: STATE_SET "focus" 0.0;
- target: "elm.text";
- target: "button_image";
- target: "button_image_last";
- target: "list_division";
- target: "base";
- }
- program { name: "unfocused";
- signal: "elm,action,unfocus"; source: "elm";
- script {
- set_state(PART:"button_image", "default", 0.0);
- set_state(PART:"button_image_last", "default", 0.0);
- set_state(PART:"list_division", "default", 0.0);
- if(!get_int(is_selected))
- {
- set_state(PART:"elm.text", "default", 0.0);
- set_state(PART:"base", "default", 0.0);
- }
- else
- {
- set_state(PART:"elm.text", "highlight", 0.0);
- set_state(PART:"base", "highlight", 0.0);
- }
- }
- }
- program { name: "button_highlight";
- signal: "elm,state,highlight"; source: "elm";
- script {
- new var = 1;
- set_int(is_selected, var);
- set_state(PART:"elm.text", "highlight", 0.0);
- set_state(PART:"base", "highlight", 0.0);
- set_state(PART:"check", "highlight", 0.0);
- }
- }
- program { name: "icon_show";
- signal: "elm,state,icon,visible"; source: "elm";
- action: STATE_SET "visible" 0.0;
- target: "pad.middle_right";
- }
- program { name: "icon_hide";
- signal: "elm,state,icon,hidden"; source: "elm";
- action: STATE_SET "default" 0.0;
- target: "pad.middle_right";
- }
- program { name: "disable";
- signal: "elm,state,disabled"; source: "elm";
- script {
- new st[31];
- new Float: vl;
- set_state(PART:"base", "disabled", 0.0);
- set_state(PART:"event", "disabled", 0.0);
- get_state(PART:"elm.text", st, 30, vl);
- if ((!strcmp(st, "visible")) || (!strcmp(st, "disabled_visible")))
- set_state(PART:"elm.text", "disabled_visible", 0.0);
- else
- set_state(PART:"elm.text", "disabled", 0.0);
- }
- }
- program { name: "any_item";
- signal: "elm,state,any,item"; source: "elm";
- action: STATE_SET "default" 0.0;
- target: "clipper.all_item";
- target: "clipper.last_item";
- }
- program { name: "last_item";
- signal: "elm,state,last,item"; source: "elm";
- action: STATE_SET "last_item" 0.0;
- target: "clipper.all_item";
- target: "clipper.last_item";
- }
- }
-}
-
-/*****************************************************************************************
-Document: Tizen TV_General Guide_GUI Guideline_v1.1_140613.pdf
-HOVERSEL
-Page No.: 86, Style Name: menu_text close
-*****************************************************************************************/
-group { name: "elm/hover/base/hoversel_vertical/default";
- parts {
- part { name: "elm.swallow.offset"; type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- rel1.relative: 0.0 0.0;
- rel2.relative: 0.0 0.0;
- align: 0.0 0.0;
- }
- }
- part { name: "elm.swallow.size"; type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "elm.swallow.offset";
- rel1.relative: 1.0 1.0;
- rel2.to: "elm.swallow.offset";
- align: 0.0 0.0;
- }
- }
- part { name: "button_image"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to_x: "limit0";
- rel1.to_y: "pad.top.upper";
- rel1.relative: 1.0 0.5;
- rel2.to_x: "limit1";
- rel2.to_y: "elm.swallow.slot.middle";
- rel2.relative: 0.0 0.0;
- align: 0 0;
- }
- description { state: "bottom" 0.0;
- rel1.to_x: "limit0";
- rel1.to_y: "elm.swallow.slot.middle";
- rel1.relative: 1.0 1.0;
- rel2.to_x: "limit1";
- rel2.to_y: "pad.bottom.lower";
- rel2.relative: 0.0 0.5;
- }
- }
- part { name: "limit0"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to_x: "elm.swallow.slot.top";
- rel2.to_x: "elm.swallow.slot.middle";
- rel2.relative: 0.0 1.0;
- align: 1 1;
- min: 1 1;
- max: 1 99999;
- }
- description { state: "bottom" 0.0;
- inherit: "default" 0.0;
- rel1.to_x: "elm.swallow.slot.bottom";
- }
- }
- part { name: "limit1"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to_x: "elm.swallow.slot.middle";
- rel1.relative: 1.0 0.0;
- rel2.to_x: "elm.swallow.slot.top";
- align: 0 0;
- min: 1 1;
- max: 1 99999;
- }
- description { state: "bottom" 0.0;
- inherit: "default" 0.0;
- rel2.to_x: "elm.swallow.slot.bottom";
- }
- }
- part { name: "base"; type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- color: 0 0 0 128;
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- }
- }
- part { name: "topclip"; type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- rel2.to_y: "button_image";
- }
- }
- part { name: "pad.middle.left_top"; type: SPACER;
- scale: 1;
- clip_to: "topclip";
- description { state: "default" 0.0;
- rel1.to: "elm.swallow.slot.middle";
- rel1.relative: 0.0 1.0;
- rel2.to: "elm.swallow.slot.middle";
- align: 0.0 0.0;
- min: 0 0;
- max: 0 0;
- }
- }
- part { name: "pad.middle.upper.right_bottom"; type: SPACER;
- scale: 1;
- clip_to: "topclip";
- description { state: "default" 0.0;
- rel1.to: "pad.middle.upper";
- rel2.to: "pad.middle.upper";
- rel2.relative: 1.0 0.0;
- align: 1.0 1.0;
- min: 0 0;
- max: 0 0;
- }
- }
- part { name: "elm.swallow.slot.top"; type: SWALLOW;
- clip_to: "topclip";
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "pad.middle.left_top";
- rel1.relative: 1.0 0.0;
- rel2.to: "pad.middle.upper.right_bottom";
- rel2.relative: 0.0 0.0;
- align: 0.5 0.0;
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- align: 0.5 1.0;
- }
- }
- part { name: "bottomclip"; type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to_y: "button_image";
- }
- }
- part { name: "pad.middle.lower.left_top"; type: RECT;
- clip_to: "topclip";
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "pad.middle.lower";
- rel1.relative: 0.0 1.0;
- rel2.to: "pad.middle.lower";
- align: 0.0 0.0;
- min: 0 0;
- max: 0 0;
- }
- }
- part { name: "pad.middle.right_bottom"; type: SPACER;
- clip_to: "topclip";
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "elm.swallow.slot.middle";
- rel2.to: "elm.swallow.slot.middle";
- rel2.relative: 1.0 0.0;
- align: 1.0 1.0;
- min: 0 0;
- max: 0 0;
- }
- }
- part { name: "elm.swallow.slot.bottom"; type: SWALLOW;
- clip_to: "bottomclip";
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "pad.middle.lower.left_top";
- rel1.relative: 1.0 1.0;
- rel2.to: "pad.middle.right_bottom";
- rel2.relative: 0.0 1.0;
- align: 0.5 1.0;
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- align: 0.5 0.0;
- }
- }
- part { name: "elm.swallow.slot.middle"; type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "elm.swallow.size";
- rel2.to: "elm.swallow.size";
- }
- }
- part { name: "pad.top.upper"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to_x: "limit0";
- rel2.to_x: "limit1";
- rel2.to_y: "elm.swallow.slot.top";
- rel1.relative: 1.0 1.0;
- rel2.relative: 1.0 0.0;
- align: 0.5 1.0;
- min: 12 0;
- max: 9999 0;
- }
- }
- part { name: "pad.bottom.lower"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to_x: "limit0";
- rel1.to_y: "elm.swallow.slot.bottom";
- rel1.relative: 1.0 1.0;
- rel2.to_x: "limit1";
- rel2.relative: 0.0 1.0;
- align: 0.5 0.0;
- min: 1 0;
- max: 9999 0;
- }
- }
- part { name: "pad.middle.upper"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to_x: "elm.swallow.size";
- rel1.relative: 0.0 1.0;
- rel2.to_x: "elm.swallow.size";
- rel2.to_y: "elm.swallow.size";
- rel2.relative: 1.0 0.0;
- align: 0.5 1.0;
- min: 1 0;
- max: 9999 0;
- }
- }
- part { name: "pad.middle.lower"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to_x: "elm.swallow.size";
- rel1.to_y: "elm.swallow.size";
- rel1.relative: 0.0 1.0;
- rel2.to_x: "elm.swallow.size";
- align: 0.5 0.0;
- min: 1 0;
- max: 9999 0;
- }
- }
- }
- programs {
- program { name: "end";
- signal: "mouse,up,1"; source: "base";
- action: SIGNAL_EMIT "elm,action,dismiss" "";
- }
- program { name: "show";
- signal: "elm,action,show"; source: "elm";
- action: STATE_SET "visible" 0.0;
- target: "base";
- }
- program { name: "hide";
- signal: "elm,action,hide"; source: "elm";
- action: STATE_SET "default" 0.0;
- target: "base";
- }
- program { name: "topshow";
- signal: "elm,action,slot,top,show"; source: "elm";
- action: STATE_SET "visible" 0.0;
- transition: DECELERATE 0.5;
- target: "elm.swallow.slot.top";
- }
- program { name: "topshow3";
- signal: "elm,action,slot,top,show"; source: "elm";
- action: STATE_SET "default" 0.0;
- target: "button_image";
- target: "limit0";
- target: "limit1";
- }
- program { name: "tophide";
- signal: "elm,action,slot,top,hide"; source: "elm";
- action: STATE_SET "default" 0.0;
- transition: DECELERATE 0.5;
- target: "elm.swallow.slot.top";
- }
- program { name: "bottomshow";
- signal: "elm,action,slot,bottom,show"; source: "elm";
- action: STATE_SET "visible" 0.0;
- transition: DECELERATE 0.5;
- target: "elm.swallow.slot.bottom";
- }
- program { name: "bottomshow3";
- signal: "elm,action,slot,bottom,show"; source: "elm";
- action: STATE_SET "bottom" 0.0;
- target: "button_image";
- target: "limit0";
- target: "limit1";
- }
- program { name: "bottomhide";
- signal: "elm,action,slot,bottom,hide"; source: "elm";
- action: STATE_SET "default" 0.0;
- transition: DECELERATE 0.5;
- target: "elm.swallow.slot.bottom";
- }
- }
-}
-
-#undef HOVERSEL_FONT_SIZE
+++ /dev/null
-/*
- * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
- group { "elm/index/event/default";
- alias: "elm/index/event/level0";
- inherit_only: 1;
- parts {
- /* Swallow for event rectangle */
- swallow { "elm.swallow.event.0";
- mouse;
- desc { "default";
- fixed: 1 1;
- rel.to: "elm.swallow.index.0";
- }
- }
- }
- programs {
- /* Program for index show */
- program { "active";
- signal: "elm,state,active";
- source: "elm";
- after: "on_active";
- }
- /* Program for index autohide */
- program { "inactive";
- signal: "elm,state,inactive";
- source: "elm";
- after: "on_inactive";
- }
- /* Program for indicator show */
- program { "active_indicator";
- signal: "elm,indicator,state,active";
- source: "elm";
- after: "on_active_indicator";
- }
- /* Program for indicator hide */
- program { "inactive_indicator";
- signal: "elm,indicator,state,inactive";
- source: "elm";
- after: "on_inactive_indicator";
- }
- /* Program for access active */
- program { "active_access";
- signal: "elm,access,state,active";
- source: "elm";
- after: "on_active_access";
- }
- /* Program for access inactive */
- program { "inactive_access";
- signal: "elm,access,state,inactive";
- source: "elm";
- after: "on_inactive_access";
- }
- }
- }
- /* Event for index with level1 */
- group { "elm/index/event/level1";
- inherit_only: 1;
- mouse;
- parts {
- swallow { "elm.swallow.event.1";
- desc { "default";
- fixed: 1 1;
- rel.to: "elm.swallow.index.1";
- }
- }
- }
- programs {
- /* Program for level changed to 0 */
- program { "level_0";
- signal: "elm,state,level,0";
- source: "elm";
- after: "on_level_0";
- }
- /* Program for level changed to 1 */
- program { "level_1";
- signal: "elm,state,level,1";
- source: "elm";
- after: "on_level_1";
- }
- }
- }
- group { "elm/index/base/template";
- inherit_only: 1;
- nomouse;
- parts {
- spacer { "base";
- }
- /* Swallow for index item box for level 0 */
- swallow { "elm.swallow.index.0";
- }
- /* Swallow for index item box for level 1 */
- // swallow { "elm.swallow.index.1";
- // }
- /* Rect for accessibility */
- rect { "access";
- }
- }
- /* Event for index level 0 */
- inherit: "elm/index/event/default";
- /* Event for index level 1 */
- // inherit: "elm/index/event/level1";
- programs {
- /* Program for index show */
- program { "on_active";
- }
- /* Program for index autohide */
- program { "on_inactive";
- }
- /* Program for indicator show */
- program { "on_active_indicator";
- }
- /* Program for indicator hide */
- program { "on_inactive_indicator";
- }
- /* Program for access active */
- program { "on_active_access";
- }
- /* Program for access inactive */
- program { "on_inactive_access";
- }
- /* Program for level changed to 0 */
- // program { "on_level_0"; // level 0
- // }
- /* Program for level changed to 1 */
- // program { "on_level_1"; // level 1
- // }
- }
- }
- /* Event for index item */
- group { "elm/index/item/event/default";
- inherit_only: 1;
- programs {
- /* Program for index item activate */
- program { "active";
- signal: "elm,state,active";
- source: "elm";
- after: "on_active";
- }
- /* Program for index item inactivate */
- program { "inactive";
- signal: "elm,state,inactive";
- source: "elm";
- after: "on_inactive";
- }
- }
- }
- group { "elm/index/item/template";
- inherit_only: 1;
- nomouse;
- parts {
- /* Base part for index item */
- spacer { "base";
- desc { "default";
- }
- }
- /* Text for index item */
- text { "elm.text";
- }
- }
- inherit: "elm/index/item/event/default";
- programs {
- /* Program for index item activate */
- program { "on_active";
- }
- /* Program for index item inactivate */
- program { "on_inactive";
- }
- }
- }
- group { "elm/index/base/vertical/default";
- alias: "elm/index/base/vertical/fastscroll";
- nomouse;
- images {
- set {
- name: "core_index_scroll_popup_bg";
- image {
- image: "core_index_scroll_popup_bg.png" COMP;
- }
- }
- }
- parts {
- spacer { "base";
- desc { "default";
- }
- }
- rect { "clipper";
- desc { "default";
- hid;
- rel.to: "base";
- color: 255 255 255 0;
- }
- desc { "active";
- vis;
- rel.to: "base";
- color: 255 255 255 255;
- }
- }
- rect { "clipper_indicator";
- clip: "clipper";
- desc { "default";
- hid;
- rel.to: "base";
- color: 255 255 255 0;
- }
- desc { "active";
- vis;
- rel.to: "base";
- color: 255 255 255 255;
- }
- }
- rect { "bg";
- clip: "clipper";
- desc { "default";
- rel.to_x: "elm.swallow.index.0";
- rel.to_y: "base";
- color_class: "index/default/bg";
- }
- }
- swallow { "elm.swallow.index.0";
- clip: "clipper";
- desc { "default";
- align: 1.0 0.5;
- fixed: 1 1;
- rel.to:"base";
- rel1.relative: 1.0 0.0;
- }
- }
- // Popup Indicator group: "clipper_indicator "popup_bg" "sizer_text"
- // "elm.text" "padding_text_left" "padding_text_bottom_right"
- image { "popup_bg";
- clip: "clipper_indicator";
- desc { "default";
- fixed: 1 1;
- image.normal: "core_index_scroll_popup_bg";
- rel1.to: "padding_text_left";
- rel2.to: "padding_text_bottom_right";
- color_class: "index/default/bg_popup";
- }
- }
- spacer { "sizer_text";
- scale;
- clip: "clipper_indicator";
- desc { "default";
- min: 1 1;
- fixed: 1 1;
- rel.to: "base";
- rel1.relative: 0.5 0.5;
- rel2.relative: 0.5 0.5;
- }
- }
- text { "elm.text";
- scale;
- clip: "clipper_indicator";
- desc { "default";
- min: INDEX_SCROLL_TEXT1_DEFAULT_SIZE_INC;
- fixed: 1 1;
- rel.to: "sizer_text";
- rel1.relative: 1.0 0.0;
- text {
- font: "BreezeSans:weight=Light";
- size: 112;
- size_range: 50 112;
- fit: 1 0;
- }
- color_class: "index/default/text_popup";
- }
- }
- spacer { "padding_text_left";
- scale;
- clip: "clipper_indicator";
- desc { "default";
- min: INDEX_TEXT_LEFT_PADDING_SIZE_INC 0;
- fixed: 1 0;
- rel.to: "elm.text";
- rel2.relative: 0.0 1.0;
- align: 1.0 0.5;
- }
- }
- spacer { "padding_text_bottom_right";
- scale;
- clip: "clipper_indicator";
- desc { "default";
- min: INDEX_TEXT_RIGHT_PADDING_SIZE_INC INDEX_TEXT_BOTTOM_PADDING_SIZE_INC;
- fixed: 1 1;
- rel.to: "elm.text";
- rel1.relative: 1.0 1.0;
- align: 0.0 0.0;
- }
- }
- rect { "access";
- desc { "default";
- fixed: 1 1;
- rel.to: "elm.swallow.index.0";
- rel1.offset: -3 0;
- color: 0 0 0 0;
- hid;
- }
- desc { "active";
- inherit: "default";
- vis;
- }
- }
- }
- inherit: "elm/index/event/default";
- script {
- public animate = 0;
- }
- programs {
- program { "on_active";
- action: STATE_SET "active";
- target: "clipper";
- }
- program { "on_inactive";
- action: STATE_SET "default";
- target: "clipper";
- }
- program { "on_active_indicator";
- script {
- if (get_int(animate) == 0) {
- set_int(animate, 1);
- }
- else {
- set_state(PART:"clipper_indicator", "default", 0.0);
- }
- }
- after: "anim_active";
- }
- program { "anim_active";
- action: STATE_SET "active";
- target: "clipper_indicator";
- transition: GLIDE_EASE_OUT(0.15);
- after: "anim_finished";
- }
- program { "on_inactive_indicator";
- script {
- if (get_int(animate) == 0) {
- set_int(animate, 1);
- }
- else {
- set_state(PART:"clipper_indicator", "active", 0.0);
- }
- }
- after: "anim_inactive";
- }
- program { "anim_inactive";
- action: STATE_SET "default";
- target: "clipper_indicator";
- transition: GLIDE_EASE_OUT(0.45);
- after: "anim_finished";
- }
- program { "anim_finished";
- script {
- set_int(animate, 0);
- }
- }
- program { "on_active_access";
- action: STATE_SET "active";
- target: "access";
- }
- program { "on_inactive_access";
- action: STATE_SET "default";
- target: "access";
- }
- }
- }
- group { "elm/index/item/vertical/default";
- alias: "elm/index/item_odd/vertical/default";
- data.item: "stacking" "above";
- data.item: "selectraise" "on";
- nomouse;
- images {
- image: "core_index_fastscroll_rollover_line_focus.#.png" COMP;
- }
- parts {
- rect { "base";
- scale;
- desc { "default";
- min: INDEX_ITEM_WIDTH_INC INDEX_ITEM_HEIGHT_INC;
- color: 255 255 255 255;
- hid;
- }
- desc { "active";
- inherit: "default";
- vis;
- }
- }
- spacer { "padding_right";
- scale;
- desc { "default";
- align: 1.0 0.5;
- min: INDEX_SCROLL_BG_LINE_WIDTH_INC 0;
- fixed: 1 0;
- rel.to: "base";
- rel1.relative: 1.0 0.0;
- }
- }
- spacer { "padding_top_bg_item";
- scale;
- desc { "default";
- align: 0.5 1.0;
- rel.to: "base";
- rel2.relative: 1.0 0.0;
- min: 0 INDEX_SCROLL_BG_LINE_WIDTH_INC;
- fixed: 0 1;
- }
- }
- text { "elm.text";
- scale;
- desc { "default";
- min: INDEX_ITEM_TEXT_WIDTH_INC INDEX_ITEM_TEXT_HEIGHT_INC;
- fixed: 1 1;
- rel1 {
- to_x: "bg_line_left";
- to_y: "base";
- }
- rel2 {
- to_x: "base";
- to_y: "bg_divider";
- relative: 1.0 0.0;
- }
- text {
- font: "Tizen:weight=Light";
- size: 24;
- size_range: 18 24;
- fit: 1 0;
- text_class: "tizen";
- }
- color_class: "index_item/default/text";
- }
- desc { "active";
- inherit: "default";
- color_class: "index_item/default/text_pressed";
- }
- }
- rect { "bg_line_left";
- scale;
- desc { "default";
- align: 0.0 0.5;
- min: INDEX_SCROLL_BG_LINE_WIDTH_INC 0;
- fixed: 1 0;
- rel.to: "base";
- rel2.relative: 0.0 1.0;
- color_class: "index_item/default/line";
- }
- desc { "active";
- inherit: "default";
- }
- }
- rect { "bg_divider";
- scale;
- desc { "default";
- align: 0.5 1.0;
- min: 0 INDEX_DIVIDER_HEIGHT_INC;
- fixed: 0 1;
- rel.to: "base";
- rel1.relative: 0.0 1.0;
- color_class: "index_item/default/divider";
- }
- desc { "inactive";
- inherit: "default";
- hid;
- }
- }
- image { "bg_item";
- scale;
- desc { "default";
- image.normal: "core_index_fastscroll_rollover_line_focus.#.png";
- rel1.to: "padding_top_bg_item";
- rel2.to: "bg_divider";
- fixed: 1 1;
- color_class: "index_item/default/border";
- hid;
- }
- desc { "active";
- inherit: "default";
- vis;
- }
- }
- }
- inherit: "elm/index/item/event/default";
- programs {
- program { "on_active";
- action: STATE_SET "active";
- transition: DECELERATE 0.0;
- target: "elm.text";
- target: "bg_line_left";
- target: "bg_item";
- target: "base";
- }
- program { "on_inactive";
- action: STATE_SET "default";
- transition: DECELERATE 0.0;
- target: "elm.text";
- target: "bg_line_left";
- target: "bg_item";
- target: "base";
- }
- program { "item_last";
- signal: "elm,last,item";
- source: "elm";
- action: STATE_SET "inactive";
- target: "bg_divider";
- }
- }
- }
- group { "elm/index/base/vertical/pagecontrol";
- alias: "elm/index/base/horizontal/pagecontrol";
- nomouse;
- parts {
- spacer { "base";
- desc { "default";
- }
- }
- rect { "clipper";
- desc { "default";
- hid;
- rel.to: "base";
- color: 255 255 255 0;
- }
- desc { "active";
- vis;
- rel.to: "base";
- color: 255 255 255 255;
- }
- }
- swallow { "elm.swallow.index.0";
- scale;
- clip: "clipper";
- desc { "default";
- rel.to: "base";
- rel1.relative: 0.5 0.5;
- rel2.relative: 0.5 0.5;
- fixed: 1 1;
- }
- }
- }
- inherit: "elm/index/event/default";
- programs {
- program { "on_active";
- action: STATE_SET "active";
- transition: DECELERATE 0.5;
- target: "clipper";
- }
- program { "on_inactive";
- action: STATE_SET "default";
- transition: DECELERATE 0.5;
- target: "clipper";
- }
- program { "on_active_indicator";
- }
- program { "on_inactive_indicator";
- }
- program { "on_priority_up";
- }
- program { "on_priority_down";
- }
- program { "on_active_access";
- }
- program { "on_inactive_access";
- }
- }
- }
- group { "elm/index/item/vertical/pagecontrol";
- alias: "elm/index/item_odd/vertical/pagecontrol";
- alias: "elm/index/item/horizontal/pagecontrol";
- alias: "elm/index/item_odd/horizontal/pagecontrol";
- images {
- image: "core_page_indicator_on.png" COMP;
- image: "core_page_indicator_on_ef.png" COMP;
- image: "core_page_indicator_off.png" COMP;
- image: "core_page_indicator_off_ef.png" COMP;
- }
- nomouse;
- parts {
- spacer { "base";
- scale;
- desc { "default";
- min: INDEX_PAGECONTROL_IND_INC;
- max: INDEX_PAGECONTROL_IND_INC;
- }
- }
- image { "bg_indicator_off";
- scale;
- desc { "default";
- fixed: 1 1;
- rel.to: "base";
- min: INDEX_PAGECONTROL_IND_MIN_INC;
- max: INDEX_PAGECONTROL_IND_MIN_INC;
- image.normal: "core_page_indicator_off.png";
- color_class: "index_item/pagecontrol/icon";
- }
- desc { "active";
- inherit: "default";
- hid;
- }
- }
- image { "bg_indicator_off_shadow";
- scale;
- desc { "default";
- fixed: 1 1;
- image.normal: "core_page_indicator_off_ef.png";
- rel.to: "bg_indicator_off";
- }
- desc { "active";
- inherit: "default";
- hid;
- }
- }
- image { "bg_indicator_on";
- scale;
- desc { "default";
- fixed: 1 1;
- min: INDEX_PAGECONTROL_IND_MIN_INC;
- max: INDEX_PAGECONTROL_IND_MIN_INC;
- image.normal: "core_page_indicator_on.png";
- color_class: "index_item/pagecontrol/icon_on";
- hid;
- }
- desc { "active";
- inherit: "default";
- vis;
- }
- }
- image { "bg_indicator_on_shadow";
- scale;
- desc { "default";
- fixed: 1 1;
- image.normal: "core_page_indicator_on_ef.png";
- rel.to: "bg_indicator_on";
- hid;
- }
- desc { "active";
- inherit: "default";
- vis;
- }
- }
- }
- inherit: "elm/index/item/event/default";
- programs {
- program { "on_active";
- action: STATE_SET "active";
- target: "bg_indicator_off";
- target: "bg_indicator_off_shadow";
- target: "bg_indicator_on";
- target: "bg_indicator_on_shadow";
- }
- program { "on_inactive";
- action: STATE_SET "default";
- target: "bg_indicator_off";
- target: "bg_indicator_off_shadow";
- target: "bg_indicator_on";
- target: "bg_indicator_on_shadow";
- }
- }
- }
-
+++ /dev/null
-/*
- * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-/**********************************************************************************************
-Document: "Tizen TV_General Guide_GUI Guideline_v1.0_140430.ppt" page no. 36 , name:"nocontent"
-***********************************************************************************************/
-#define FONT_SIZE 35
-#define FONT_SIZE_SMALL 24
-
-group { name: "elm/layout/application/default";
- parts {
- part { name: "elm.swallow.bg";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- }
- }
- part { name: "elm.swallow.content";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- }
- }
- }
-}
-
-group { name: "elm/layout/application/nocontent";
- parts {
- part { name: "base"; type: RECT; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- color: 0 0 0 38;
- }
- }
- part { name: "right.pad"; type: SPACER; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "base";
- rel2.to: "base";
- min: 50 50;
- max: 50 -1;
- align: 1.0 0.0;
- }
- }
- part { name: "left.pad"; type: SPACER; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "base";
- rel2.to: "base";
- min: 50 50;
- max: 50 -1;
- align: 0.0 0.0;
- }
- }
- part { name: "base.pad"; type: SPACER; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "left.pad";
- rel1.relative: 1.0 0.0;
- rel2.to: "right.pad";
- rel2.relative: 0 1.0;
- min: 0 70;
- max: -1 70;
- align: 0.0 0.5;
- }
- }
-
- part { name: "elm.text"; type: TEXT; mouse_events: 0;
- scale: 1;
- multiline: 1;
- description { state: "default" 0.0;
- rel1.to: "base.pad";
- rel2.to: "base.pad";
- color: 211 211 211 255;
- align: 0 0;
- min: 0 40;
- max: -1 40;
- text {
- size: FONT_SIZE;
- min: 0 0;
- font: FONT_M;
- }
- }
- }
- part { name: "elm.text.1"; type: TEXT; mouse_events: 0;
- scale: 1;
- multiline: 1;
- description { state: "default" 0.0;
- rel1.to: "elm.text";
- rel1.relative: 0.0 1.0;
- rel2.to: "right.pad";
- rel2.relative: 0.0 1.0;
- color: 134 134 134 255;
- min: 0 30;
- max: -1 30;
- align: 0 0;
- text {
- font: FONT_M;
- size: FONT_SIZE_SMALL;
- min: 0 0;
- }
- }
- }
- }
-}
-
-/***********************************************************************************************
-Document: "Tizen TV_General Guide_GUI Guideline_v1.0_140430.ppt" page no. 48, name:"nocontent.1"
-***********************************************************************************************/
-group { name: "elm/layout/application/nocontent.1";
- inherit:"elm/layout/application/nocontent";
- parts {
- part { name: "right.pad"; type: SPACER; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- min: 30 30;
- max: 30 -1;
- }
- }
- part { name: "left.pad"; type: SPACER; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- min: 30 30;
- max: 30 -1;
- }
- }
- }
-}
-
-group { "elm/layout/background/default";
- parts {
- rect { "bg";
- scale;
- desc { "default";
- color_class: "layout/background/bg";
- }
- }
- swallow { "elm.swallow.content";
- scale;
- desc { "default"; }
- }
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-group { name: "elm/list/item/default";
- alias: "elm/list/item_odd/default";
- data.item: "texts" "elm.text";
- data.item: "focus_highlight" "on";
- parts {
- part { name: "base"; type: RECT;
- scale: 1;
- ignore_flags: ON_HOLD;
- description { state: "default" 0.0;
- min: 0 96;
- color: 0 0 0 0;
- }
- }
- part { name: "border_down"; type: RECT;
- description { state: "default" 0.0;
- fixed: 0 1;
- min: 64 2;
- rel1.relative: 0.0 1.0;
- color: 222 222 222 222;
- }
- description { state: "focused" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- part { name: "border_up"; type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 0 1;
- min: 64 2;
- rel2.relative: 1.0 0.0;
- color: 222 222 222 222;
- }
- description { state: "focused" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- part { name: "base_highlight_bg"; type: IMAGE;
- mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- image {
- normal: "round_rectangle_4X4.png";
- border: 4 4 4 4;
- border_scale: 1;
- }
- color: 255 255 255 255;
- }
- }
- part { name: "base_highlight"; type: RECT;
- mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- color: 255 255 255 255;
- }
- description { state: "focused" 0.0;
- inherit: "default" 0.0;
- color_class: "open_ux_theme";
- }
- }
- part { name: "pad.text.1_right"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 0 1;
- align: 1.0 0.5;
- min: 32 96;
- max: 32 96;
- }
- }
- part { name: "pad.text.1_left"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 0 1;
- align: 0.0 0.5;
- min: 32 96;
- max: 32 96;
- }
- }
- part { name: "elm.text"; type: TEXT; mouse_events: 0;
- effect: SHADOW BOTTOM;
- ignore_flags: ON_HOLD;
- scale: 1;
- description { state: "default" 0.0;
- align: 0.0 0.5;
- min: 0 40;
- rel1.to: "pad.text.1_left";
- rel1.relative: 1.0 0.0;
- rel2.to: "pad.text.1_right";
- rel2.relative: 0.0 1.0;
- color: 89 89 89 255;
- text { font: FONT_M; size: 30;
- min: 1 1;
- max: 1 0;
- ellipsis: -1;
- }
- }
- description { state: "focused" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 255;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- color: 89 89 89 51;
- }
- }
- }
- programs {
- program {
- signal: "elm,state,default"; source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.text";
- }
- program { name: "select_text.1";
- signal: "elm,state,focused"; source: "elm";
- action: STATE_SET "focused" 0.0;
- target: "elm.text";
- target: "base_highlight";
- target: "border_up";
- target: "border_down";
- }
- program { name: "unselect_text.1";
- signal: "elm,state,unfocused"; source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.text";
- target: "base_highlight";
- target: "border_up";
- target: "border_down";
- }
- program {
- signal: "elm,state,disabled"; source: "elm";
- action: STATE_SET "disabled" 0.0;
- target: "elm.text";
- }
- program {
- signal: "elm,state,enabled"; source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.text";
- }
- }
-}
-
-/******************************************************************
-Tizen TV_General Guide_GUI Guideline_v1.0_140508.ppt 90 1text
-*******************************************************************/
-
-group { name: "elm/list/item/1text";
- alias: "elm/list/item_odd/1text";
- data.item: "texts" "elm.text";
- data.item: "focus_highlight" "on";
- inherit: "elm/list/item/default";
- parts {
- part { name: "border_down"; type: RECT;
- description { state: "default" 0.0;
- fixed: 0 1;
- min: 64 2;
- rel1.relative: 0.0 1.0;
- color: 222 222 222 222;
- }
- description { state: "last" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- description { state: "single" 0.0;
- inherit: "last" 0.0;
- }
- description { state: "focused" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- part { name: "border_up"; type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 0 1;
- min: 64 2;
- rel2.relative: 1.0 0.0;
- color: 222 222 222 222;
- }
- description { state: "first" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- description { state: "single" 0.0;
- inherit: "first" 0.0;
- }
- description { state: "focused" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- part { name: "base_highlight_bg"; type: IMAGE;
- mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- image {
- normal: "round_rectangle_4X4.png";
- border: 4 4 4 4;
- border_scale: 1;
- }
- color: 255 255 255 255;
- }
- description { state: "focused" 0.0;
- inherit: "default" 0.0;
- color_class: "open_ux_theme";
- }
- }
- part { name: "base_highlight"; type: RECT;
- mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- color: 255 255 255 255;
- }
- description { state: "first" 0.0;
- inherit: "default" 0.0;
- rel1.offset: 0 10;
- }
- description { state: "last" 0.0;
- inherit: "default" 0.0;
- rel2.offset: 0 -11;
- }
- description { state: "single" 0.0;
- inherit: "default" 0.0;
- rel1.offset: 0 10;
- rel2.offset: 0 -11;
- }
- description { state: "focused" 0.0;
- inherit: "default" 0.0;
- color_class: "open_ux_theme";
- }
- description { state: "first_focused" 0.0;
- inherit: "first" 0.0;
- color_class: "open_ux_theme";
- }
- description { state: "last_focused" 0.0;
- inherit: "last" 0.0;
- color_class: "open_ux_theme";
- }
- description { state: "single_focused" 0.0;
- inherit: "single" 0.0;
- color_class: "open_ux_theme";
- }
- }
- part { name: "pad.text.1_right"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 0 1;
- align: 1.0 0.5;
- min: 32 96;
- max: 32 96;
- }
- }
- part { name: "pad.text.1_left"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 0 1;
- align: 0.0 0.5;
- min: 32 96;
- max: 32 96;
- }
- }
- part { name: "elm.text"; type: TEXT; mouse_events: 0;
- effect: SHADOW BOTTOM;
- ignore_flags: ON_HOLD;
- scale: 1;
- description { state: "default" 0.0;
- align: 0.0 0.5;
- min: 0 40;
- rel1.to: "pad.text.1_left";
- rel1.relative: 1.0 0.0;
- rel2.to: "pad.text.1_right";
- rel2.relative: 0.0 1.0;
- color: 89 89 89 255;
- text { font: FONT_M; size: 30;
- min: 1 1;
- max: 1 0;
- ellipsis: -1;
- }
- }
- description { state: "focused" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 255;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- color: 89 89 89 51;
- }
- }
- }
- programs {
- program {
- signal: "elm,state,default"; source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.text";
- }
- program { name: "select_text.1";
- signal: "elm,state,focused"; source: "invalidation";
- }
- program {
- signal: "elm,state,focused"; source: "elm";
- script {
- new st[31], Float:vl;
- get_state(PART:"base_highlight", st, 30, vl);
- if (!strncmp(st, "first", 5))
- set_state(PART:"base_highlight", "first_focused", 0.0);
- else if (!strncmp(st, "last", 4))
- set_state(PART:"base_highlight", "last_focused", 0.0);
- else if (!strncmp(st, "single", 6))
- set_state(PART:"base_highlight", "single_focused", 0.0);
- else
- set_state(PART:"base_highlight", "focused", 0.0);
- set_state(PART:"elm.text", "focused", 0.0);
- set_state(PART:"base_highlight_bg", "focused", 0.0);
- }
- }
- program { name: "unselect_text.1";
- signal: "elm,state,unfocused"; source: "invalidation";
- }
- program {
- signal: "elm,state,unfocused"; source: "elm";
- script {
- new st[31], Float:vl;
- get_state(PART:"base_highlight", st, 30, vl);
- if (!strncmp(st, "first", 5))
- set_state(PART:"base_highlight", "first", 0.0);
- else if (!strncmp(st, "last", 4))
- set_state(PART:"base_highlight", "last", 0.0);
- else if (!strncmp(st, "single", 6))
- set_state(PART:"base_highlight", "single", 0.0);
- else
- set_state(PART:"base_highlight", "default", 0.0);
- set_state(PART:"elm.text", "default", 0.0);
- set_state(PART:"base_highlight_bg", "default", 0.0);
- }
- }
- program {
- signal: "elm,state,disabled"; source: "elm";
- action: STATE_SET "disabled" 0.0;
- target: "elm.text";
- }
- program {
- signal: "elm,state,enabled"; source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.text";
- }
- program {
- signal: "elm,state,list,first"; source: "elm";
- action: STATE_SET "first" 0.0;
- target: "base_highlight";
- target: "border_up";
- }
- program {
- signal: "elm,state,list,last"; source: "elm";
- action: STATE_SET "last" 0.0;
- target: "base_highlight";
- target: "border_down";
- }
- program {
- signal: "elm,state,list,single"; source: "elm";
- action: STATE_SET "single" 0.0;
- target: "base_highlight";
- target: "border_up";
- target: "border_down";
- }
- }
-}
-
-/******************************************************************
-Tizen TV_General Guide_GUI Guideline_v1.0_140508.ppt 91 1text.1icon
-*******************************************************************/
-
-group { name: "elm/list/item/1text.1icon";
- alias: "elm/list/item_odd/1text.1icon";
- data.item: "texts" "elm.text";
- data.item: "contents" "elm.swallow.icon";
- inherit: "elm/list/item/1text";
- parts{
- part { name: "elm.swallow.icon"; type: SWALLOW;
- description { state: "default" 0.0;
- fixed: 1 1;
- visible: 1;
- align: 0.0 0.5;
- rel1.to: "pad.text.1_left";
- rel1.relative: 1.0 0.0;
- rel2.to: "pad.text.1_left";
- rel2.relative: 1.0 1.0;
- }
- }
- part { name: "pad.text.1_middle"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 0 1;
- align: 0.0 0.5;
- min: 20 96;
- max: 20 96;
- rel1.to: "elm.swallow.icon";
- rel1.relative: 1.0 0.0;
- rel2.to: "elm.swallow.icon";
- rel2.relative: 1.0 1.0;
- }
- }
- part { name: "elm.text";
- description { state: "default" 0.0;
- rel1.to: "pad.text.1_middle";
- rel1.relative: 1.0 0.0;
- rel2.to: "pad.text.1_right";
- rel2.relative: 0.0 1.0;
- }
- description { state: "focused" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 255;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- }
- }
- }
-}
-
+++ /dev/null
-/*
- * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-
-styles {
- style { "naviframe_default_maintitle_text";
- base: "font=Tizen:width=Condensed align=center font_size="NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC" color=#FFFFFFFF wrap=none ellipsis=1.0 text_class=tizen color_class=naviframe_item/default/text_maintitle";
- tag: "br" "\n";
- tag: "tab" "\t";
- }
- style { "naviframe_default_maintitle_text_subtitle_enabled";
- base: "font=Tizen:width=Condensed align=center font_size="NAVIFRAME_SUBTITLE_VISIBLE_TEXT_FONT_SIZE_INC" color=#FFFFFFFF wrap=none ellipsis=1.0 text_class=tizen color_class=naviframe_item/default/text_maintitle_subtitle_enabled";
- tag: "br" "\n";
- tag: "tab" "\t";
- }
- style { "naviframe_default_subtitle_text";
- base: "font=Tizen:width=Condensed align=center font_size="NAVIFRAME_VISIBLE_TEXT_FONT_SIZE_INC" color=#FFFFFFFF wrap=none ellipsis=1.0 text_class=tizen color_class=naviframe_item/default/text_subtitle";
- tag: "br" "\n";
- tag: "tab" "\t";
- }
-}
-
-group { "elm/naviframe/base/default";
- parts {
- spacer { "base";
- desc { "default";
- }
- }
- rect { "bg";
- desc { "default";
- color: 0 0 0 0;
- }
- }
- }
-}
-
-group { "elm/naviframe/item/event/default";
- inherit_only: 1;
- programs {
- program { "deferred_pushed_new";
- signal: "elm,state,new,pushed,deferred";
- source: "elm";
- after: "on_deferred_pushed_new";
- }
- program { "deferred_pushed_cur";
- signal: "elm,state,cur,pushed,deferred";
- source: "elm";
- after: "on_deferred_pushed_cur";
- }
- program { "deferred_popped_prev";
- signal: "elm,state,prev,popped,deferred";
- source: "elm";
- after: "on_deferred_popped_prev";
- }
- program { "deferred_popped_cur";
- signal: "elm,state,cur,popped,deferred";
- source: "elm";
- after: "on_deferred_popped_cur";
- }
- program { "pushed_new";
- signal: "elm,state,new,pushed";
- source: "elm";
- after: "on_pushed_new";
- }
- program { "popped_prev";
- signal: "elm,state,prev,popped";
- source: "elm";
- after: "on_popped_prev";
- }
- program { "finished_show";
- action: SIGNAL_EMIT "elm,action,show,finished" "";
- }
- program { "finished_pushed";
- action: SIGNAL_EMIT "elm,action,pushed,finished" "";
- }
- program { "finished_popped";
- action: SIGNAL_EMIT "elm,action,popped,finished" "";
- }
- program { "visible";
- signal: "elm,state,visible";
- source: "elm";
- after: "on_visible";
- }
- program { "invisible";
- signal: "elm,state,invisible";
- source: "elm";
- after: "on_invisible";
- }
- program { "orient_90";
- source: "elm";
- signal: "elm,state,orient,90";
- after: "on_orient_90";
- }
- program { "orient_270";
- source: "elm";
- signal: "elm,state,orient,270";
- after: "on_orient_270";
- }
- program { "orient_0";
- source: "elm";
- signal: "elm,state,orient,0";
- after: "on_orient_0";
- }
- program { "orient_180";
- source: "elm";
- signal: "elm,state,orient,180";
- after: "on_orient_180";
- }
- }
-}
-
-group { "elm/naviframe/item/default/default";
- alias: "elm/naviframe/item/basic/default";
- inherit: "elm/naviframe/item/event/default";
- data.item: "tizen_effect" 1;
- images {
- set {
- name: "core_icon_badge_container.#";
- image {
- image: "core_icon_badge_container.#.png" COMP;
- }
- }
- set {
- name: "core_theme_bg_01";
- image {
- image: "core_theme_bg_01.png" COMP;
- }
- }
- }
- script {
- public is_landscape = 0; //Landscape status
- public is_prev_btn_visible = 0; //Previous button visible status
- public is_title_left_btn_visible = 0; //Title left button visible status
- public is_title_right_btn_visible = 0; //Title right button visible status
- public is_tabbar_visible = 0; //Tabbar visible status (This value is used for tabbar group)
- }
- parts {
- spacer { "base";
- desc { "default";
- }
- }
- rect { "clipper";
- nomouse;
- desc { "default";
- vis;
- }
- desc { "hidden";
- hid;
- }
- }
- image { "bg_image";
- scale;
- nomouse;
- clip: "clipper";
- desc { "default";
- rel.to: "base";
- align: 0.5 0.0;
- fixed: 0 1;
- min: 0 NAVIFRAME_BG_PORTRAIT_HEIGHT_INC;
- image.normal: "core_theme_bg_01";
- }
- desc { "landscape";
- inherit: "default";
- min: 0 NAVIFRAME_BG_LANDSCAPE_HEIGHT_INC;
- }
- }
- rect { "bg_title";
- scale;
- nomouse;
- desc { "default";
- min: 0 NAVIFRAME_TITLE_HEIGHT_INC;
- max: -1 NAVIFRAME_TITLE_HEIGHT_INC;
- align: 0.0 0.0;
- fixed: 0 1;
- rel1 { to: "base"; relative: 0.0 0.0; }
- rel2 { to: "base"; relative: 1.0 0.0; }
- color_class: "naviframe_item/default/bg_title";
- }
- desc { "hidden";
- inherit: "default";
- min: 0 0;
- max: -1 0;
- }
- }
- rect { "clipper_title";
- nomouse;
- clip: "clipper";
- desc { "default";
- rel.to_y: "bg_title";
- }
- desc { "hidden";
- inherit: "default";
- hid;
- }
- }
- spacer { "padding_left_title_text";
- scale;
- desc { "default";
- rel1.to: "bg_title";
- rel2.to: "bg_title_left_btn";
- }
- desc { "visible_title_badge";
- rel1.to: "bg_title";
- rel2.to: "padding_title_badge2";
- }
- desc { "visible_prev_btn";
- rel1.to: "bg_title";
- rel2 { to_x: "elm.swallow.prev_btn"; to_y: "bg_title"; relative: 1.0 1.0; }
- }
- }
- spacer { "padding_right_title_text";
- scale;
- desc { "default";
- rel1.to: "bg_title_right_btn";
- rel2.to: "bg_title";
- }
- desc { "visible_title_badge";
- rel1.to: "padding_left_icon_badge";
- rel2.to: "bg_title";
- }
- desc { "visible_prev_btn";
- rel1.to: "padding_right_prev_btn";
- rel2.to: "bg_title";
- }
- }
- textblock { "elm.text.title";
- scale;
- nomouse;
- clip: "clipper_title_text";
- desc { "default";
- text {
- style: "naviframe_default_maintitle_text";
- size: NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC;
- size_range: NAVIFRAME_TITLE_TEXT_FONT_RANGE_INC;
- fit: 1 0;
- }
- fixed: 1 1;
- rel1 { to_x: "padding_left_title_text"; to_y: "bg_title"; relative: 1.0 0.0; }
- rel2 { to_x: "padding_right_title_text"; to_y: "bg_title"; relative: 0.0 1.0; }
- }
- desc { "visible_subtitle";
- text {
- style: "naviframe_default_maintitle_text_subtitle_enabled";
- size: NAVIFRAME_SUBTITLE_VISIBLE_TEXT_FONT_SIZE_INC;
- size_range: NAVIFRAME_SUBTITLE_VISIBLE_TEXT_FONT_RANGE_INC;
- fit: 1 0;
- }
- fixed: 1 1;
- rel1 { to_x: "padding_left_title_text"; to_y: "padding_top_title"; relative: 1.0 1.0; }
- rel2 { to_x: "padding_right_title_text"; to_y: "elm.text.subtitle"; relative: 0.0 0.0; }
- }
- }
- rect { "clipper_title_text";
- nomouse;
- clip: "clipper_title";
- desc { "default";
- rel.to: "elm.text.title";
- }
- }
- spacer { "padding_top_title";
- desc { "default";
- min: 0 NAVIFRAME_TITLE_TOP_PADDING_HEIGHT_INC;
- max: -1 NAVIFRAME_TITLE_TOP_PADDING_HEIGHT_INC;
- fixed: 0 1;
- align: 0.5 0.0;
- rel1 { to: "bg_title"; relative: 0.0 0.0; }
- rel2 { to: "bg_title"; relative: 1.0 0.0; }
- }
- }
- textblock { "elm.text.subtitle";
- scale;
- nomouse;
- clip: "clipper_subtitle_text";
- desc { "default";
- text {
- style: "naviframe_default_subtitle_text";
- }
- min: 0 NAVIFRAME_SUBTITLE_HEIGHT_INC;
- max: -1 NAVIFRAME_SUBTITLE_HEIGHT_INC;
- fixed: 1 1;
- align: 0.5 1.0;
- rel1 { to_x: "padding_left_title_text"; to_y: "padding_bottom_subtitle"; relative: 1.0 0.0; }
- rel2 { to_x: "padding_right_title_text"; to_y: "padding_bottom_subtitle"; relative: 0.0 0.0; }
- }
- }
- rect { "clipper_subtitle_text";
- nomouse;
- clip: "clipper_title";
- desc { "default";
- rel.to: "elm.text.subtitle";
- }
- }
- spacer { "padding_bottom_subtitle";
- desc { "default";
- min: 0 NAVIFRAME_SUBTITLE_BOTTOM_PADDING_HEIGHT_INC;
- max: -1 NAVIFRAME_SUBTITLE_BOTTOM_PADDING_HEIGHT_INC;
- fixed: 0 1;
- align: 0.5 1.0;
- rel1 { to: "bg_title"; relative: 0.0 1.0; }
- rel2 { to: "bg_title"; relative: 1.0 1.0; }
- }
- }
- rect { "event";
- ignore: ON_HOLD;
- desc { "default";
- rel.to: "bg_title";
- color: 0 0 0 0;
- }
- }
- rect { "access.title";
- repeat;
- desc { "default";
- rel1 { to_x: "padding_left_title_text"; to_y: "bg_title"; relative: 1.0 0.0; }
- rel2 { to_x: "padding_right_title_text"; to_y: "bg_title"; relative: 0.0 1.0; }
- color: 0 0 0 0;
- }
- }
- swallow { "elm.swallow.icon";
- scale;
- clip: "clipper_title";
- desc { "default";
- max: 0 0;
- fixed: 1 0;
- align: 0.0 0.5;
- rel1 { relative: 1.0 0.0; to: "padding_left_title"; }
- rel2 { relative: 1.0 1.0; to: "padding_left_title"; }
- hid;
- }
- }
- spacer { "padding_left_icon_badge";
- scale;
- desc { "default";
- min: 0 0;
- max: 0 -1;
- fixed: 1 0;
- align: 1.0 0.5;
- rel1 { to_x: "padding_left_badge_text"; to_y: "bg_title"; relative: 0.0 0.0; }
- rel2 { to_x: "padding_left_badge_text"; to_y: "bg_title"; relative: 0.0 1.0; }
- }
- desc { "visible";
- inherit: "default";
- min: NAVIFRAME_BADGE_ICON_LEFT_PADDING_WIDTH_INC 0;
- max: NAVIFRAME_BADGE_ICON_LEFT_PADDING_WIDTH_INC -1;
- }
- }
- image { "icon_badge";
- scale;
- nomouse;
- clip: "clipper_title";
- desc { "default";
- min: 0 0;
- max: 0 0;
- fixed: 1 1;
- rel1 { to_x: "padding_left_badge_text"; to_y: "title_badge"; }
- rel2 { to_x: "padding_right_badge_text"; to_y: "title_badge"; }
- color: 195 219 226 255;
- image.normal: "core_icon_badge_container.#";
- hid;
- }
- desc { "visible";
- rel1 { to_x: "padding_left_badge_text"; to_y: "title_badge"; }
- rel2 { to_x: "padding_right_badge_text"; to_y: "title_badge"; }
- color: 195 219 226 255;
- image.normal: "core_icon_badge_container.#";
- vis;
- }
- }
- spacer { "padding_left_badge_text";
- scale;
- desc { "default";
- min: 0 0;
- max: 0 -1;
- fixed: 1 0;
- align: 1.0 0.5;
- rel1 { to_x: "title_badge"; to_y: "bg_title"; relative: 0.0 0.0; }
- rel2 { to_x: "title_badge"; to_y: "bg_title"; relative: 0.0 1.0; }
- }
- desc { "visible";
- inherit: "default";
- min: NAVIFRAME_BADGE_TEXT_LEFT_PADDING_WIDTH_INC 0;
- max: NAVIFRAME_BADGE_TEXT_LEFT_PADDING_WIDTH_INC -1;
- }
- }
- spacer { "padding_right_badge_text";
- scale;
- desc { "default";
- min: 0 0;
- max: 0 -1;
- fixed: 1 0;
- align: 1.0 0.5;
- rel1 { to_x: "padding_right_title"; to_y: "bg_title"; relative: 0.0 0.0; }
- rel2 { to_x: "padding_right_title"; to_y: "bg_title"; relative: 0.0 1.0; }
- }
- desc { "visible";
- inherit: "default";
- min: NAVIFRAME_BADGE_TEXT_LEFT_PADDING_WIDTH_INC 0;
- max: NAVIFRAME_BADGE_TEXT_LEFT_PADDING_WIDTH_INC -1;
- }
- }
- text { "title_badge";
- scale;
- nomouse;
- clip: "clipper_title";
- desc { "default";
- text {
- font: "Tizen:weight=Normal"; size: "32";
- text_class: "tizen";
- min: 1 0;
- max: 1 0;
- align: 1.0 0.5;
- ellipsis: -1;
- }
- color: 7 7 7 255;
- min: 0 NAVIFRAME_BADGE_HEIGHT_INC;
- max: -1 NAVIFRAME_BADGE_HEIGHT_INC;
- fixed: 1 1;
- align: 1.0 0.5;
- rel1 { to_x: "padding_right_badge_text"; to_y: "elm.text.title"; relative: 0.0 0.0; }
- rel2 { to_x: "padding_right_badge_text"; to_y: "elm.text.title"; relative: 0.0 1.0; }
- }
- }
- text { "title_badge2";
- scale;
- nomouse;
- clip: "clipper_title";
- desc { "default";
- text {
- font: "Tizen:weight=Normal"; size: "32";
- text_class: "tizen";
- min: 1 0;
- max: 1 0;
- align: 0.0 0.5;
- ellipsis: -1;
- }
- color: 7 7 7 255;
- min: 0 NAVIFRAME_BADGE_HEIGHT_INC;
- max: -1 NAVIFRAME_BADGE_HEIGHT_INC;
- fixed: 1 1;
- align: 0.0 0.5;
- rel1 { to_x: "padding_left_title"; to_y: "elm.text.title"; relative: 1.0 0.0; }
- rel2 { to_x: "padding_left_title"; to_y: "elm.text.title"; relative: 1.0 1.0; }
- hid;
- }
- }
- spacer { "padding_title_badge2";
- scale;
- desc { "default";
- min: 0 0;
- max: 0 -1;
- fixed: 1 0;
- align: 0.0 0.5;
- rel1 { to_x: "title_badge2"; to_y: "bg_title"; relative: 1.0 0.0; }
- rel2 { to_x: "title_badge2"; to_y: "bg_title"; relative: 1.0 1.0; }
- }
- desc { "visible";
- inherit: "default";
- min: NAVIFRAME_BADGE2_PADDING_WIDTH_INC 0;
- max: NAVIFRAME_BADGE2_PADDING_WIDTH_INC -1;
- }
- }
- spacer { "padding_left_title";
- scale;
- desc { "default";
- min: NAVIFRAME_TITLE_LEFT_PADDING_WIDTH_INC 0;
- max: NAVIFRAME_TITLE_LEFT_PADDING_WIDTH_INC -1;
- fixed: 1 0;
- align: 0.0 0.0;
- rel1 { to: "bg_title"; relative: 0.0 0.0; }
- rel2 { to: "bg_title"; relative: 0.0 1.0; }
- }
- desc { "hidden";
- inherit: "default";
- min: 0 0;
- max: 0 -1;
- }
- }
- spacer { "bg_title_left_btn";
- scale;
- desc { "default";
- min: 0 0;
- fixed: 1 0;
- align: 0.0 0.5;
- rel1 { to: "padding_left_title"; relative: 1.0 0.0; }
- rel2 { to: "padding_left_title"; relative: 1.0 1.0; }
- }
- desc { "visible";
- inherit: "default";
- min: NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC;
- max: NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC;
- }
- }
- swallow { "title_left_btn";
- scale;
- clip: "clipper_title";
- desc { "default";
- fixed: 1 1;
- rel.to: "bg_title_left_btn";
- hid;
- }
- desc { "visible";
- inherit: "default";
- vis;
- }
- }
- spacer { "bg_title_right_btn";
- scale;
- desc { "default";
- min: 0 0;
- fixed: 1 0;
- align: 1.0 0.5;
- rel1 { to: "padding_right_title"; relative: 0.0 0.0; }
- rel2 { to: "padding_right_title"; relative: 0.0 1.0; }
- }
- desc { "visible";
- inherit: "default";
- min: NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC;
- max: NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC;
- }
- }
- spacer { "padding_right_title";
- scale;
- desc { "default";
- min: NAVIFRAME_TITLE_RIGHT_PADDING_WIDTH_INC 0;
- max: NAVIFRAME_TITLE_RIGHT_PADDING_WIDTH_INC -1;
- fixed: 1 0;
- align: 1.0 0.0;
- rel1 { to: "bg_title"; relative: 1.0 0.0; }
- rel2 { to: "bg_title"; relative: 1.0 1.0; }
- }
- desc { "hidden";
- inherit: "default";
- min: 0 0;
- max: 0 -1;
- }
- }
- swallow { "title_right_btn";
- scale;
- clip: "clipper_title";
- desc { "default";
- fixed: 1 1;
- rel.to: "bg_title_right_btn";
- hid;
- }
- desc { "visible";
- inherit: "default";
- vis;
- }
- }
- swallow { "elm.swallow.content";
- scale;
- norepeat;
- clip: "clipper_content";
- desc { "default";
- align: 0.0 0.0;
- rel1 { to_x: "base"; to_y: "bg_title"; relative: 0.0 1.0; }
- rel2 { to_x: "base"; to_y: "toolbar"; relative: 1.0 0.0; }
- }
- }
- rect { "clipper_content";
- nomouse;
- clip: "clipper";
- desc { "default";
- rel.to_y: "elm.swallow.content";
- }
- }
- rect { "bg_toolbar";
- scale;
- clip: "clipper_toolbar";
- desc { "default";
- rel.to: "toolbar";
- color: NAVIFRAME_TOOLBAR_COLOR_INC;
- }
- }
- swallow { "toolbar";
- scale;
- clip: "clipper_toolbar";
- desc { "default";
- min: 0 0;
- max: -1 0;
- fixed: 0 1;
- align: 0.5 1.0;
- rel1 { to: "base"; relative: 0.0 1.0; }
- rel2 { to: "base"; relative: 1.0 1.0; }
- hid;
- }
- desc { "visible";
- inherit: "default";
- min: 0 NAVIFRAME_TOOLBAR_HEIGHT_INC;
- max: -1 NAVIFRAME_TOOLBAR_HEIGHT_INC;
- vis;
- }
- }
- rect { "clipper_toolbar";
- nomouse;
- clip: "clipper";
- desc { "default";
- rel.to: "toolbar";
- }
- }
- spacer { "padding_left_prev_btn";
- scale;
- desc { "default";
- min: NAVIFRAME_BACK_BUTTON_LR_PADDING_WIDTH_INC 0;
- max: NAVIFRAME_BACK_BUTTON_LR_PADDING_WIDTH_INC -1;
- align: 0.0 0.0;
- fixed: 1 1;
- rel1 { to: "bg_title"; relative: 0.0 0.0; }
- rel2 { to: "bg_title"; relative: 0.0 1.0; }
- }
- }
- swallow { "elm.swallow.prev_btn";
- clip: "clipper_title";
- scale;
- desc { "default";
- min: BUTTON_NAVIFRAME_BACK_BUTTON_SIZE_INC;
- max: BUTTON_NAVIFRAME_BACK_BUTTON_SIZE_INC;
- align: 0.0 0.5;
- fixed: 1 1;
- rel1 { to: "padding_left_prev_btn"; relative: 1.0 0.0; }
- rel2 { to: "padding_left_prev_btn"; relative: 1.0 1.0; }
- vis;
- }
- desc { "hidden";
- inherit: "default";
- hid;
- }
- }
- spacer { "padding_right_prev_btn";
- scale;
- desc { "default";
- min: NAVIFRAME_BACK_BUTTON_TITLE_RIGHT_PADDING_WIDTH_INC 0;
- max: NAVIFRAME_BACK_BUTTON_TITLE_RIGHT_PADDING_WIDTH_INC -1;
- align: 1.0 0.0;
- fixed: 1 1;
- rel1 { to: "bg_title"; relative: 1.0 0.0; }
- rel2 { to: "bg_title"; relative: 1.0 1.0; }
- }
- }
- swallow { "toolbar_more_btn";
- clip: "clipper_title";
- desc { "default";
- min: 0 0;
- max: 0 0;
- align: 0.0 0.0;
- fixed: 1 1;
- rel.to: "base";
- hid;
- }
- }
- }
- programs {
- program { "on_deferred_pushed_new";
- after: "finished_show";
- }
- program { "on_deferred_pushed_cur";
- after: "finished_pushed";
- }
- program { "on_deferred_popped_prev";
- after: "finished_show";
- }
- program { "on_deferred_popped_cur";
- after: "finished_popped";
- }
- program { "on_pushed_new";
- }
- program { "on_popped_prev";
- }
- program { "on_visible";
- }
- program { "on_invisible";
- }
- program { "clicked_title";
- signal: "mouse,clicked,1";
- source: "event";
- action: SIGNAL_EMIT "elm,action,title,clicked" "";
- }
- program { "show_title";
- signal: "elm,state,title,show";
- source: "elm";
- script {
- set_state(PART:"bg_title", "default", 0.0);
- set_state(PART:"clipper_title", "default", 0.0);
- if (get_int(is_title_left_btn_visible)) {
- set_state(PART:"padding_left_title", "hidden", 0.0);
- set_state(PART:"bg_title_left_btn", "visible", 0.0);
- set_state(PART:"title_left_btn", "visible", 0.0);
- set_state(PART:"bg_title_right_btn", "visible", 0.0);
- set_state(PART:"padding_right_title", "hidden", 0.0);
- }
- else if (get_int(is_prev_btn_visible)) {
- set_state(PART:"elm.swallow.prev_btn", "default", 0.0);
- set_state(PART:"padding_left_title_text", "visible_prev_btn", 0.0);
- set_state(PART:"padding_right_title_text", "visible_prev_btn", 0.0);
- }
- if (get_int(is_title_right_btn_visible)) {
- set_state(PART:"padding_right_title", "hidden", 0.0);
- set_state(PART:"bg_title_right_btn", "visible", 0.0);
- set_state(PART:"title_right_btn", "visible", 0.0);
- set_state(PART:"bg_title_left_btn", "visible", 0.0);
- set_state(PART:"padding_left_title", "hidden", 0.0);
- if (get_int(is_prev_btn_visible) == 1) {
- set_state(PART:"padding_left_title_text", "default", 0.0);
- set_state(PART:"padding_right_title_text", "default", 0.0);
- }
- }
- }
- }
- program { "show_title_anim";
- signal: "elm,action,title,show";
- source: "elm";
- after: "show_title";
- }
- program { "hide_title";
- signal: "elm,state,title,hide";
- source: "elm";
- script {
- set_state(PART:"bg_title", "hidden", 0.0);
- set_state(PART:"clipper_title", "hidden", 0.0);
- set_state(PART:"padding_left_title", "default", 0.0);
- set_state(PART:"bg_title_left_btn", "default", 0.0);
- set_state(PART:"title_left_btn", "default", 0.0);
- set_state(PART:"bg_title_right_btn", "default", 0.0);
- set_state(PART:"padding_right_title", "default", 0.0);
- set_state(PART:"title_right_btn", "default", 0.0);
- set_state(PART:"elm.swallow.prev_btn", "hidden", 0.0);
- if (get_int(is_prev_btn_visible) == 1) {
- set_state(PART:"padding_left_title_text", "visible_prev_btn", 0.0);
- set_state(PART:"padding_right_title_text", "visible_prev_btn", 0.0);
- }
- }
- }
- program { "hide_title_anim";
- signal: "elm,action,title,hide";
- source: "elm";
- after: "hide_title";
- }
- program { "show_subtitle";
- signal: "elm,state,subtitle,show";
- source: "elm";
- script {
- set_state(PART:"elm.text.title", "visible_subtitle", 0.0);
- }
- }
- program { "hide_subtitle";
- signal: "elm,state,subtitle,hide";
- source: "elm";
- script {
- set_state(PART:"elm.text.title", "default", 0.0);
- }
- }
- program { "show_prev_btn";
- signal: "elm,state,prev_btn,show";
- source: "elm";
- script {
- set_int(is_prev_btn_visible, 1);
- if (get_int(is_title_left_btn_visible) == 0) {
- set_state(PART:"elm.swallow.prev_btn", "default", 0.0);
- set_state(PART:"padding_left_title_text", "visible_prev_btn", 0.0);
- set_state(PART:"padding_right_title_text", "visible_prev_btn", 0.0);
- }
- }
- }
- program { "hide_prev_btn";
- signal: "elm,state,prev_btn,hide";
- source: "elm";
- script {
- set_state(PART:"elm.swallow.prev_btn", "hidden", 0.0);
- set_state(PART:"padding_left_title_text", "default", 0.0);
- set_state(PART:"padding_right_title_text", "default", 0.0);
- set_int(is_prev_btn_visible, 0);
- }
- }
- program { "show_title_left_btn";
- signal: "elm,state,title_left_btn,show";
- source: "elm";
- script {
- set_state(PART:"padding_left_title", "hidden", 0.0);
- set_state(PART:"bg_title_left_btn", "visible", 0.0);
- set_state(PART:"title_left_btn", "visible", 0.0);
- set_state(PART:"bg_title_right_btn", "visible", 0.0);
- set_state(PART:"padding_right_title", "hidden", 0.0);
- set_state(PART:"elm.swallow.prev_btn", "hidden", 0.0);
- set_state(PART:"padding_left_title_text", "default", 0.0);
- set_state(PART:"padding_right_title_text", "default", 0.0);
- set_int(is_title_left_btn_visible, 1);
- }
- }
- program { "hide_title_left_btn";
- signal: "elm,state,title_left_btn,hide";
- source: "elm";
- script {
- set_state(PART:"title_left_btn", "default", 0.0);
- if (get_int(is_title_right_btn_visible) == 0) {
- set_state(PART:"padding_left_title", "default", 0.0);
- set_state(PART:"bg_title_left_btn", "default", 0.0);
- set_state(PART:"padding_right_title", "default", 0.0);
- set_state(PART:"bg_title_right_btn", "default", 0.0);
-
- if (get_int(is_prev_btn_visible) == 1) {
- set_state(PART:"elm.swallow.prev_btn", "default", 0.0);
- set_state(PART:"padding_left_title_text", "visible_prev_btn", 0.0);
- set_state(PART:"padding_right_title_text", "visible_prev_btn", 0.0);
- }
- }
- set_int(is_title_left_btn_visible, 0);
- }
- }
- program { "show_title_right_btn";
- signal: "elm,state,title_right_btn,show";
- source: "elm";
- script {
- set_state(PART:"padding_right_title", "hidden", 0.0);
- set_state(PART:"bg_title_right_btn", "visible", 0.0);
- set_state(PART:"title_right_btn", "visible", 0.0);
- set_state(PART:"bg_title_left_btn", "visible", 0.0);
- set_state(PART:"padding_left_title", "hidden", 0.0);
- if (get_int(is_prev_btn_visible) == 1) {
- set_state(PART:"padding_left_title_text", "default", 0.0);
- set_state(PART:"padding_right_title_text", "default", 0.0);
- }
- set_int(is_title_right_btn_visible, 1);
- }
- }
- program { "hide_title_right_btn";
- signal: "elm,state,title_right_btn,hide";
- source: "elm";
- script {
- set_state(PART:"title_right_btn", "default", 0.0);
- if (get_int(is_title_left_btn_visible) == 0) {
- set_state(PART:"padding_right_title", "default", 0.0);
- set_state(PART:"bg_title_right_btn", "default", 0.0);
- set_state(PART:"padding_left_title", "default", 0.0);
- set_state(PART:"bg_title_left_btn", "default", 0.0);
-
- if (get_int(is_prev_btn_visible) == 1) {
- set_state(PART:"elm.swallow.prev_btn", "default", 0.0);
- set_state(PART:"padding_left_title_text", "visible_prev_btn", 0.0);
- set_state(PART:"padding_right_title_text", "visible_prev_btn", 0.0);
- }
- }
- set_int(is_title_right_btn_visible, 0);
- }
- }
- program { "show_title_badge";
- signal: "elm,state,title_badge,show";
- source: "elm";
- script {
- new buf[128];
-
- set_state(PART:"padding_left_badge_text", "visible", 0.0);
- set_state(PART:"padding_right_badge_text", "visible", 0.0);
- set_state(PART:"icon_badge", "visible", 0.0);
- set_state(PART:"padding_left_icon_badge", "visible", 0.0);
-
- get_text(PART:"title_badge", buf, 128);
- set_text(PART:"title_badge2", buf);
- set_state(PART:"padding_title_badge2", "visible", 0.0);
- set_state(PART:"padding_left_title_text", "visible_title_badge", 0.0);
- set_state(PART:"padding_right_title_text", "visible_title_badge", 0.0);
- }
- }
- program { "hide_title_badge";
- signal: "elm,state,title_badge,hide";
- source: "elm";
- script {
- set_state(PART:"padding_left_badge_text", "default", 0.0);
- set_state(PART:"padding_right_badge_text", "default", 0.0);
- set_state(PART:"icon_badge", "default", 0.0);
- set_state(PART:"padding_left_icon_badge", "default", 0.0);
-
- set_text(PART:"title_badge2", "");
- set_state(PART:"padding_title_badge2", "default", 0.0);
- set_state(PART:"padding_left_title_text", "default", 0.0);
- set_state(PART:"padding_right_title_text", "default", 0.0);
- }
- }
- program { "show_toolbar";
- signal: "elm,state,toolbar,show";
- source: "elm";
- script {
- set_state(PART:"toolbar", "visible", 0.0);
- }
- }
- program { "hide_toolbar";
- signal: "elm,state,toolbar,hide";
- source: "elm";
- script {
- set_state(PART:"toolbar", "default", 0.0);
- }
- }
- program { "landscape";
- script {
- if (!get_int(is_landscape)) {
- set_int(is_landscape, 1);
- }
- set_state(PART:"bg_image", "landscape", 0.0);
- }
- }
- program { "portrait";
- script {
- if (get_int(is_landscape)) {
- set_int(is_landscape, 0);
- }
- set_state(PART:"bg_image", "default", 0.0);
- }
- }
- program { "on_orient_90";
- after: "landscape";
- }
- program { "on_orient_270";
- after: "landscape";
- }
- program { "on_orient_0";
- after: "portrait";
- }
- program { "on_orient_180";
- after: "portrait";
- }
- }
-}
-
-
+++ /dev/null
-/*
- * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-// MACRO
-#define POPUP_BASE_DEFAULT_TEXT_FONT_SIZE_INC 30
-#define POPUP_DESCRIPTION_DEFAULT_TEXT_FONT_SIZE_INC 28
-
-#define POPUP_BASE_DEFAULT_BASE_DEFAULT_MIN_INC 688 378
-#define POPUP_BASE_DEFAULT_BASE_DEFAULT_MAX_INC 688 378
-#define POPUP_BASE_DEFAULT_BASE_LANDSCAPE_MIN_INC 720 0
-#define POPUP_BASE_DEFAULT_BASE_LANDSCAPE_MAX_INC 720 648
-#define POPUP_BASE_DEFAULT_TITLE_DEFAULT_MIN_INC 670 84
-#define POPUP_BASE_DEFAULT_BUTTON_BG_DEFAULT_MIN_INC 688 146
-
-#define POPUP_BUTTON_DEFAULT_ACTION_AREA_HEIGHT "146"
-
-#define POPUP_BUTTON_MIN_SIZE 196 70
-#define POPUP_BUTTON_PADDING_SIZE 20 70
-
-
-// notify
-group { name: "elm/notify/center/popup/default";
- alias: "elm/notify/bottom/popup/default";
- alias: "elm/notify/top/popup/default";
- alias: "elm/notify/left/popup/default";
- alias: "elm/notify/right/popup/default";
- alias: "elm/notify/top_left/popup/default";
- alias: "elm/notify/top_right/popup/default";
- alias: "elm/notify/bottom_left/popup/default";
- alias: "elm/notify/bottom_right/popup/default";
-
- data.item: "hide_finished_signal" "on";
- parts {
- part { name: "base";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: POPUP_BASE_DEFAULT_BASE_DEFAULT_MIN_INC;
- max: POPUP_BASE_DEFAULT_BASE_DEFAULT_MAX_INC;
- }
- description { state: "landscape" 0.0;
- min: POPUP_BASE_DEFAULT_BASE_LANDSCAPE_MIN_INC;
- max: POPUP_BASE_DEFAULT_BASE_LANDSCAPE_MAX_INC;
- }
- }
- part { name: "elm.swallow.content";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "base";
- rel2.to: "base";
- }
- }
- }
- programs {
- /* Program for show animation */
- program { "show_animation";
- signal: "elm,state,show,animation";
- source: "elm";
- action: SIGNAL_EMIT "elm,action,show,finished" "";
- }
- /* Program for show animation */
- program { "show";
- signal: "show";
- source: "";
- action: SIGNAL_EMIT "elm,action,show,finished" "";
- }
- /* Program for hide animation */
- program { "hide";
- signal: "elm,state,hide";
- source: "elm";
- action: SIGNAL_EMIT "elm,action,hide,finished" "elm";
- }
- }
-}
-
-// popup
-group { name: "elm/popup/base/default";
- images {
- image: "modal_dialogs_bg.png" COMP;
- image: "round_rectangle_8X8_top.png" COMP;
- }
- data {
- item: "focus_highlight" "on";
- item: "default_orient" "2"; //top, center:1 bottom:2
- }
- styles {
- style { name: "popup_title_style";
- base: "font=Tizen:style=Regular align=center font_size="POPUP_BASE_DEFAULT_TEXT_FONT_SIZE_INC" color=#FFF wrap=mixed ellipsis=1.0 color_class=popup/default/text_maintitle";
- tag: "br" "\n";
- tag: "tab" "\t";
- }
- }
- parts {
- part { name: "base";
- scale: 1;
- type: SPACER;
- description { state: "default" 0.0;
- min: POPUP_BASE_DEFAULT_BASE_DEFAULT_MIN_INC;
- max: POPUP_BASE_DEFAULT_BASE_DEFAULT_MAX_INC;
- }
- description { state: "landscape" 0.0;
- inherit: "default" 0.0;
- min: POPUP_BASE_DEFAULT_BASE_LANDSCAPE_MIN_INC;
- max: POPUP_BASE_DEFAULT_BASE_LANDSCAPE_MAX_INC;
- }
- }
- part { name: "bg";
- scale: 1;
- type: IMAGE;
- description {
- rel1.to: "base";
- rel2.to: "base";
- image {
- normal: "modal_dialogs_bg.png";
- border: 18 18 15 21;
- }
- color_class: "popup/default/bg_content";
- }
- }
- part { name: "access.outline";
- type: RECT;
- repeat_events: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- rel1.to: "base";
- rel2.to: "base";
- color: 0 0 0 0;
- }
- }
- part { name: "elm.bg.title";
- type: IMAGE;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- align: 0.5 0.0;
- min: 0 84;
- rel1 {
- relative: 0.0 0.0;
- to: "base";
- offset: 9 6;
- }
- rel2 {
- relative: 1.0 0.0;
- to: "base";
- offset: -10 6;
- }
- image {
- normal: "round_rectangle_8X8_top.png";
- border: 8 8 8 0;
- }
- visible: 0;
- color_class: "popup/default/bg_title";
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- part { name: "elm.text.title";
- type: TEXTBLOCK;
- scale:1;
- description { state: "default" 0.0;
- fixed: 1 1;
- text {
- style: "popup_title_style";
- size: POPUP_BASE_DEFAULT_TEXT_FONT_SIZE_INC;
- }
- rel1.to: "elm.bg.title";
- rel2.to: "elm.bg.title";
- }
- }
- part { name: "access.title";
- type: RECT;
- repeat_events: 1;
- description { state: "default" 0.0;
- rel1.to: "elm.bg.title";
- rel2.to: "elm.bg.title";
- color: 0 0 0 0;
- }
- }
- part { name: "elm.swallow.content";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- rel1.to: "base";
- rel2.to: "base";
- }
- description { state: "show_title_area" 0.0;
- inherit: "default" 0.0;
- rel1 {
- relative: 0.0 1.0;
- to_x: "base";
- to_y: "elm.bg.title";
- }
- rel2.to: "base";
- }
- description { state: "show_action_area" 0.0;
- inherit: "default" 0.0;
- rel1.to: "base";
- rel2 {
- relative: 1.0 0.0;
- to_x: "base";
- to_y: "elm.swallow.action_area.bg";
- }
- }
- description { state: "show_action_title_area" 0.0;
- inherit: "default" 0.0;
- rel1 {
- relative: 0.0 1.0;
- to_x: "base";
- to_y: "elm.bg.title";
- }
- rel2 {
- relative: 1.0 0.0;
- to_x: "base";
- to_y: "elm.swallow.action_area.bg";
- }
- }
- }
- part { name: "access.body";
- type: RECT;
- repeat_events: 1;
- description { state: "default" 0.0;
- rel1.to: "elm.swallow.content";
- rel2.to: "elm.swallow.content";
- color: 0 0 0 0;
- }
- }
- part { name: "elm.swallow.action_area.bg";
- type: RECT;
- scale : 1;
- description { state: "default" 0.0;
- fixed : 1 1;
- align: 0.5 1.0;
- visible: 0;
- rel1 {
- relative: 0.0 1.0;
- to: "base";
- }
- rel2.to: "base";
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- min: POPUP_BASE_DEFAULT_BUTTON_BG_DEFAULT_MIN_INC;
- }
- }
- part { name: "elm.swallow.action_area";
- type: SWALLOW;
- scale : 1;
- description { state: "default" 0.0;
- rel1.to: "elm.swallow.action_area.bg";
- rel2.to: "elm.swallow.action_area.bg";
- }
- }
- }
- programs {
- program { name: show_title_area;
- signal: "elm,state,title_area,visible";
- source: "elm";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"elm.swallow.action_area.bg", st, 30, vl);
- if (!strcmp(st, "visible"))
- set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0);
- else
- set_state(PART:"elm.swallow.content", "show_title_area", 0.0);
- set_state(PART:"elm.bg.title", "visible", 0.0);
- }
- }
- program { name: hide_title_area;
- signal: "elm,state,title_area,hidden";
- source: "elm";
- action: STATE_SET "default" 0.0;
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"elm.swallow.action_area.bg", st, 30, vl);
- if ((!strcmp(st, "visible")) || (!strcmp(st, "landscape_visible")))
- set_state(PART:"elm.swallow.content", "show_action_area", 0.0);
- else
- set_state(PART:"elm.swallow.content", "default", 0.0);
- set_state(PART:"elm.bg.title", "default", 0.0);
- }
- }
- program { name: show_action_area;
- signal: "elm,state,action_area,visible";
- source: "elm";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"elm.bg.title", st, 30, vl);
- if ((!strcmp(st, "visible")))
- set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0);
- else
- set_state(PART:"elm.swallow.content", "show_action_area", 0.0);
- set_state(PART:"elm.swallow.action_area.bg", "visible", 0.0);
- }
- }
- program { name: hide_action_area;
- signal: "elm,state,action_area,hidden";
- source: "elm";
- action: STATE_SET "default" 0.0;
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"elm.bg.title", st, 30, vl);
- if ((!strcmp(st, "visible")))
- set_state(PART:"elm.swallow.content", "show_title_area", 0.0);
- else
- set_state(PART:"elm.swallow.content", "default", 0.0);
- set_state(PART:"elm.swallow.action_area.bg", "default", 0.0);
- }
- }
- program { name: "change_to_landscape";
- action: STATE_SET "landscape" 0.0;
- target: "base";
- after: "orientation_change";
- }
- program { name: "orientation_change";
- action: SIGNAL_EMIT "elm,state,orientation,changed" "";
- }
- program { name: "change_to_portrait";
- action: STATE_SET "default" 0.0;
- target: "base";
- after: "orientation_change";
- }
- program { name: "landscape_mode";
- source: "elm";
- signal: "elm,state,orient,90";
- after: "change_to_landscape";
- }
- program { name: "landscape_mode2";
- source: "elm";
- signal: "elm,state,orient,270";
- after: "change_to_landscape";
- }
- program { name: "portrait_mode";
- source: "elm";
- signal: "elm,state,orient,0";
- after: "change_to_portrait";
- }
- program { name: "portrait_mode2";
- source: "elm";
- signal: "elm,state,orient,180";
- after: "change_to_portrait";
- }
- }
-}
-
-// content
-group { name: "elm/popup/content/default";
- parts{
- part { name:"elm.swallow.content";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- }
- }
- }
-}
-
-// label
-group { name: "elm/label/base/popup/default";
- styles {
- style { name: "textblock_style";
- base: "font=Tizen:style=Regular font_size="POPUP_DESCRIPTION_DEFAULT_TEXT_FONT_SIZE_INC" align=center color=#FFF wrap=mixed color_class=popup/default/text_content";
- tag: "br" "\n";
- tag: "ps" "ps";
- tag: "hilight" "+ font_weight=Bold";
- tag: "b" "+ font_weight=Bold";
- tag: "tab" "\t";
- }
- }
- parts {
- part { name: "elm.text";
- type: TEXTBLOCK;
- scale: 1;
- description { state: "default" 0.0;
- text {
- style: "textblock_style";
- min: 0 1;
- }
- }
- }
- }
-}
-
-// button
-group { name: "elm/popup/buttons1/popup/default";
- data.item: "action_area_height" POPUP_BUTTON_DEFAULT_ACTION_AREA_HEIGHT;
- parts{
- part{ name:"elm.swallow.content.button1";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- rel1.relative: 0.5 0.5;
- rel2.relative: 0.5 0.5;
- min: POPUP_BUTTON_MIN_SIZE;
- }
- }
- }
-}
-
-group { name: "elm/popup/buttons2/popup/default";
- data.item: "action_area_height" POPUP_BUTTON_DEFAULT_ACTION_AREA_HEIGHT;
- parts{
- part { name:"elm.swallow.content.button1";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 0 1;
- rel1 {
- relative: 0.0 0.5;
- to: "pad";
- }
- rel2 {
- relative: 0.0 0.5;
- to: "pad";
- }
- align: 1.0 0.5;
- min: POPUP_BUTTON_MIN_SIZE;
- }
- }
- part { name: "pad";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- rel1.relative: 0.5 0.5;
- rel2.relative: 0.5 0.5;
- min: POPUP_BUTTON_PADDING_SIZE;
- }
- }
- part{ name:"elm.swallow.content.button2";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 0 1;
- rel1 {
- relative: 1.0 0.5;
- to: "pad";
- }
- rel2 {
- relative: 1.0 0.5;
- to: "pad";
- }
- align: 0.0 0.5;
- min: POPUP_BUTTON_MIN_SIZE;
- }
- }
- }
-}
-
-group { name: "elm/popup/buttons3/popup/default";
- data.item: "action_area_height" POPUP_BUTTON_DEFAULT_ACTION_AREA_HEIGHT;
- parts{
- part { name:"elm.swallow.content.button1";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- rel1 {
- relative: 0.0 0.5;
- to: "pad.left";
- }
- rel2 {
- relative: 0.0 0.5;
- to: "pad.left";
- }
- align: 1.0 0.5;
- min: POPUP_BUTTON_MIN_SIZE;
- }
- }
- part { name: "pad.left";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- rel1 {
- relative: 0.0 0.5;
- to: "elm.swallow.content.button2";
- }
- rel2 {
- relative: 0.0 0.5;
- to: "elm.swallow.content.button2";
- }
- align: 1.0 0.5;
- min: POPUP_BUTTON_PADDING_SIZE;
- }
- }
- part{ name:"elm.swallow.content.button2";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- rel1.relative: 0.5 0.5;
- rel2.relative: 0.5 0.5;
- min: POPUP_BUTTON_MIN_SIZE;
- }
- }
- part { name: "pad.right";
- type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- rel1 {
- relative: 1.0 0.5;
- to: "elm.swallow.content.button2";
- }
- rel2 {
- relative: 1.0 0.5;
- to: "elm.swallow.content.button2";
- }
- align: 0.0 0.5;
- min: POPUP_BUTTON_PADDING_SIZE;
- }
- }
- part{ name:"elm.swallow.content.button3";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- rel1 {
- relative: 1.0 0.5;
- to: "pad.right";
- }
- rel2 {
- relative: 1.0 0.5;
- to: "pad.right";
- }
- align: 0.0 0.5;
- min: POPUP_BUTTON_MIN_SIZE;
- }
- }
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#define ADD_PULSE_PARTS PULSE_PART(1,0) PULSE_PART(2,1) \
-PULSE_PART(3,2) PULSE_PART(4,3) PULSE_PART(5,4) PULSE_PART(6,5) PULSE_PART(7,6) PULSE_PART(8,7) PULSE_PART(9,8) PULSE_PART(10,9) \
-PULSE_PART(11,10) PULSE_PART(12,11) PULSE_PART(13,12) PULSE_PART(14,13) PULSE_PART(15,14) PULSE_PART(16,15) PULSE_PART(17,16) PULSE_PART(18,17) \
-PULSE_PART(19,18) PULSE_PART(20,19) PULSE_PART(21,20) PULSE_PART(22,21) PULSE_PART(23,22) PULSE_PART(24,23) PULSE_PART(25,24) PULSE_PART(26,25) \
-PULSE_PART(27,26) PULSE_PART(28,27) PULSE_PART(29,28) PULSE_PART(30,29) PULSE_PART(31,30) PULSE_PART(32,31) PULSE_PART(33,32) PULSE_PART(34,33) \
-PULSE_PART(35,34) PULSE_PART(36,35) PULSE_PART(37,36) PULSE_PART(38,37) PULSE_PART(39,38) PULSE_PART(40,39) PULSE_PART(41,40) PULSE_PART(42,41) \
-PULSE_PART(43,42) PULSE_PART(44,43) PULSE_PART(45,44) PULSE_PART(46,45) PULSE_PART(47,46) PULSE_PART(48,47) PULSE_PART(49,48) PULSE_PART(50,49) \
-PULSE_PART(51,50) PULSE_PART(52,51) PULSE_PART(53,52) PULSE_PART(54,53) PULSE_PART(55,54) PULSE_PART(56,55) PULSE_PART(57,56) PULSE_PART(58,57) \
-PULSE_PART(59,58) PULSE_PART(60,59) PULSE_PART(61,60) PULSE_PART(62,61) PULSE_PART(63,62) PULSE_PART(64,63) PULSE_PART(65,64) PULSE_PART(66,65) \
-PULSE_PART(67,66) PULSE_PART(68,67) PULSE_PART(69,68) PULSE_PART(70,69) PULSE_PART(71,70) PULSE_PART(72,71) PULSE_PART(73,72) PULSE_PART(74,73) \
-PULSE_PART(75,74) PULSE_PART(76,75) PULSE_PART(77,76) PULSE_PART(78,77) PULSE_PART(79,78) PULSE_PART(80,79) PULSE_PART(81,80) PULSE_PART(82,81) \
-PULSE_PART(83,82) PULSE_PART(84,83) PULSE_PART(85,84) PULSE_PART(86,85) PULSE_PART(87,86) PULSE_PART(88,87) PULSE_PART(89,88) PULSE_PART(90,89) \
-PULSE_PART(91,90) PULSE_PART(92,91) PULSE_PART(93,92) PULSE_PART(94,93) PULSE_PART(95,94) PULSE_PART(96,95) PULSE_PART(97,96) PULSE_PART(98,97) \
-PULSE_PART(99,98) PULSE_PART(100,99)
-
-#define PULSE_PART(i,j) \
-part { name: "pulse_area_"i"_blank"; type: RECT; mouse_events: 0; \
- clip_to: "pulse_clipper"; \
- description { state: "default" 0.0; \
- min: 10 4; \
- max: 10 4; \
- fixed: 1 1; \
- rel1 { \
- to_x: "pulse_area_"j"_filled"; \
- to_y: "pulse_area_"j"_filled"; \
- relative: 1.0 0.0; \
- } \
- rel2 { \
- to_x: "pulse_area_"j"_filled"; \
- to_y: "pulse_area_"j"_filled"; \
- relative: 1.0 1.0; \
- } \
- align: 0.0 0.5; \
- color: 255 255 255 26; \
- } \
-} \
-part { name: "pulse_area_"i"_filled"; type: RECT; mouse_events: 0; \
- clip_to: "pulse_clipper"; \
- description { state: "default" 0.0; \
- min: 10 4; \
- max: 10 4; \
- fixed: 1 1; \
- rel1 { \
- to_x: "pulse_area_"i"_blank"; \
- to_y: "pulse_area_"i"_blank"; \
- relative: 1.0 0.0; \
- } \
- rel2 { \
- to_x: "pulse_area_"i"_blank"; \
- to_y: "pulse_area_"i"_blank"; \
- relative: 1.0 1.0; \
- } \
- align: 0.0 0.5; \
- color: 255 255 255 178; \
- } \
-} \
-
-
-/*****************************************************************************
-Document: Tizen TV_General Guide_GUI Guideline_v1.0_140508_1.ppt, Page no. 95,
-Progessbar filling style, single progress filling,
-Gray color filling over a trasparent bg
-******************************************************************************/
-group { name: "elm/progressbar/horizontal/default";
- parts {
- part { name: "elm.background.progressbar"; type: RECT; mouse_events: 0;
- description { state: "default" 0.0;
- min: 4 4;
- max: 9999 4;
- }
- }
- part { name: "elm.swallow.bar"; mouse_events: 0; type: SWALLOW;
- description {
- min: 4 4;
- max: 9999 4;
- fixed: 1 1;state: "default" 0.0;
- rel1 {
- to_x: "elm.text";
- to_y: "elm.background.progressbar";
- }
- rel2.to: "elm.background.progressbar";
- }
- }
- part { name: "elm.swallow.content"; type: SWALLOW;
- description { state: "default" 0.0;
- visible: 0;
- align: 0.0 0.5;
- rel1.to_y: "elm.background.progressbar";
- rel2 {
- relative: 0.0 1.0;
- to_y: "elm.background.progressbar";
- }
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- aspect: 1.0 1.0;
- aspect_preference: VERTICAL;
- }
- }
- part { name: "elm.text"; type: TEXT; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- visible: 0;
- fixed: 1 1;
- align: 0.0 0.5;
- rel1.to_x: "elm.swallow.content";
- rel1.relative: 1.0 0.0;
- rel2.to_x: "elm.swallow.content";
- color: 0 0 0 0;
- text {
- font: "Sans,Edje-Vera";
- size: 10;
- min: 0 0;
- align: 0.0 0.5;
- }
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- text.min: 1 1;
- text.ellipsis: -1;
- }
- }
- part { name: "background"; type: RECT; mouse_events: 0;
- clip_to: "elm.background.progressbar";
- description { state: "default" 0.0;
- rel1.to: "elm.swallow.bar";
- rel2.to: "elm.swallow.bar";
- color_class: "progressbar/default/bg";
- }
- }
- part { name: "elm.text.status"; type: TEXT; mouse_events: 0;
- description { state: "default" 0.0;
- fixed: 1 1;
- visible: 1;
- rel1 {
- to: "background";
- relative: 0.5 0.5;
- }
- rel2 {
- to: "background";
- relative: 0.5 0.5;
- }
- text {
- font: "Sans:style=Bold,Edje-Vera-Bold";
- size: 10;
- min: 1 1;
- ellipsis: -1;
- align: 0.5 0.0;
- }
- color: 0 0 0 0;
- }
- description { state: "hidden" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- text.min: 0 0;
- }
- }
- part { name: "elm.progress.progressbar"; type: RECT; mouse_events: 0;
- clip_to: "elm.background.progressbar";
- description { state: "default" 0.0;
- min: 10 4;
- max: 9999 4;
- fixed: 1 1;
- rel1.to: "elm.swallow.bar";
- rel2 {
- to_y: "elm.swallow.bar";
- to_x: "elm.cur.progressbar";
- }
- color_class: "progressbar/default/bar";
- }
- description { state: "invert" 0.0;
- inherit: "default" 0.0;
- rel1 {
- to_y: "elm.swallow.bar";
- to_x: "elm.cur.progressbar";
- }
- rel2.to: "elm.swallow.bar";
- }
- description { state: "state_begin" 0.0; //OK
- inherit: "default" 0.0;
- min: 10 4;
- max: 10 4;
- rel1.to: "elm.swallow.bar";
- rel2 {
- to: "elm.swallow.bar";
- relative: 0.0 1.0;
- }
- align: 0.0 0.5;
- }
- description { state: "state_end" 0.0;
- inherit: "default" 0.0;
- min: 10 4;
- max: 10 4;
- rel1 {
- to: "pulse_area0";
- relative: 1.0 0.0;
- }
- rel2 {
- to: "pulse_area0";
- relative: 1.0 1.0;
- }
- align: 0.0 0.5;
- }
- description { state: "state_end1" 0.0; //OK
- inherit: "state_begin" 0.0;
- }
- description { state: "state_begin1" 0.0; //OK
- inherit: "state_end" 0.0;
- }
- }
- part { name: "pulse_clipper"; type: RECT; mouse_events: 0;
- clip_to: "elm.background.progressbar";
- description { state: "default" 0.0;
- fixed: 1 1;
- rel1.to: "elm.background.progressbar";
- rel2.to: "elm.background.progressbar";
- visible: 0;
- }//tt
- description { state: "state_pulse" 0.0; //OK
- inherit: "default" 0.0;
- visible: 1;
- }
- description { state: "state_begin" 0.0; //OK
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- part { name: "pulse_area0"; type: SPACER; mouse_events: 0;
- description { state: "default" 0.0;
- min: 20 4;
- max: 20 4;
- fixed: 1 1;
- rel1.to: "elm.swallow.bar";
- rel2 {
- to_y: "elm.swallow.bar";
- to_x: "elm.cur.progressbar";
- relative: 0.0 1.0;
- }
- align: 0.0 0.5;
- }
- }
- part { name: "pulse_area_0_blank"; type: RECT; mouse_events: 0;
- clip_to: "pulse_clipper";
- description { state: "default" 0.0;
- min: 10 4;
- max: 10 4;
- fixed: 1 1;
- rel1 {
- to_x: "elm.progress.progressbar";
- to_y: "elm.progress.progressbar";
- relative: 1.0 0.0;
- }
- rel2 {
- to_x: "elm.progress.progressbar";
- to_y: "elm.progress.progressbar";
- relative: 1.0 1.0;
- }
- align: 0.0 0.5;
- color: 255 255 255 26;
- }
- }
- part { name: "pulse_area_0_filled"; type: RECT; mouse_events: 0;
- clip_to: "pulse_clipper";
- description { state: "default" 0.0;
- min: 10 4;
- max: 10 4;
- fixed: 1 1;
- rel1 {
- to_x: "pulse_area_0_blank";
- to_y: "pulse_area_0_blank";
- relative: 1.0 0.0;
- }
- rel2 {
- to_x: "pulse_area_0_blank";
- to_y: "pulse_area_0_blank";
- relative: 1.0 1.0;
- }
- align: 0.0 0.5;
- color: 255 255 255 178;
- }
- }
- ADD_PULSE_PARTS
- part { name: "text-bar"; type: TEXT; mouse_events: 0;
- clip_to: "progress-rect";
- effect: SOFT_SHADOW;
- scale: 1;
- description { state: "default" 0.0;
- align: 0.0 0.0;
- fixed: 1 1;
- visible: 1;
- rel1.to: "elm.text.status";
- rel2.to: "elm.text.status";
- text {
- text_source: "elm.text.status";
- font: "Sans:style=Bold,Edje-Vera-Bold";
- size: 10;
- min: 1 1;
- ellipsis: -1;
- align: 0.0 0.0;
- }
- color: 224 224 224 0;
- color3: 0 0 0 64;
- }
- description { state: "hidden" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- text.min: 0 0;
- }
- }
- part { name: "over1"; type: RECT; mouse_events: 0;
- description { state: "default" 0.0;
- rel1.to: "elm.progress.progressbar";
- rel2.to: "elm.progress.progressbar";
- rel2.relative: 1.0 0.5;
- color: 0 0 0 0;
- }
- }
- part { name: "over2"; type: RECT; mouse_events: 1;
- repeat_events: 1;
- description { state: "default" 0.0;
- rel1.to: "elm.progress.progressbar";
- rel2.to: "elm.progress.progressbar";
- color: 0 0 0 0;
- }
- }
- part { name: "elm.cur.progressbar"; mouse_events: 0;
- dragable {
- confine: "background";
- x: 1 1 1;
- y: 0 0 0;
- }
- description { state: "default" 0.0;
- min: 4 4;
- max: 9999 4;
- fixed: 1 1;
- visible: 0;
- rel1.to: "background";
- rel2.to: "background";
- }
- }
- part { name: "progress-rect"; type: RECT; mouse_events: 0;
- description { state: "default" 0.0;
- rel1.to: "elm.progress.progressbar";
- rel2.to: "elm.progress.progressbar";
- }
- }
- }
- programs {
- program { name: "label_show";
- signal: "elm,state,text,visible";
- source: "elm";
- action: STATE_SET "visible" 0.0;
- target: "elm.text";
- }
- program { name: "label_hide";
- signal: "elm,state,text,hidden";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.text";
- }
- program { name: "icon_show";
- signal: "elm,state,icon,visible";
- source: "elm";
- action: STATE_SET "visible" 0.0;
- target: "elm.swallow.content";
- }
- program { name: "icon_hide";
- signal: "elm,state,icon,hidden";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.swallow.content";
- }
- program { name: "units_show";
- signal: "elm,state,units,visible";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "text-bar";
- target: "elm.text.status";
- }
- program { name: "units_hide";
- signal: "elm,state,units,hidden";
- source: "elm";
- action: STATE_SET "hidden" 0.0;
- target: "text-bar";
- target: "elm.text.status";
- }
- program { name: "slide_to_end";
- action: STATE_SET "state_end" 0.0;
- transition: LINEAR 0.5;
- target: "elm.progress.progressbar";
- after: "slide_to_begin";
- }
- program { name: "slide_to_begin";
- signal: "elm,state,slide,begin";
- action: STATE_SET "state_begin" 0.0;
- target: "elm.progress.progressbar";
-// transition: LINEAR 0.5;
- after: "slide_to_end";
- }
- program { name: "start_pulse";
- signal: "elm,state,pulse,start";
- source: "elm";
- action: STATE_SET "state_pulse" 0.0;
- target: "pulse_clipper";
- after: "slide_to_end";
- }
- program { name: "stop_pulse";
- signal: "elm,state,pulse,stop";
- source: "elm";
- action: ACTION_STOP;
- target: "slide_to_begin";
- target: "slide_to_end";
- target: "start_pulse";
- after: "state_pulse";
- }
- program { name: "state_pulse";
- signal: "elm,state,pulse";
- source: "elm";
- action: STATE_SET "state_begin" 0.0;
- target: "elm.progress.progressbar";
- target: "pulse_clipper";
- after: "units_hide";
- }
- program { name: "state_fraction";
- signal: "elm,state,fraction";
- source: "elm";
- action: ACTION_STOP;
- target: "slide_to_begin";
- target: "slide_to_end";
- target: "start_pulse";
- action: STATE_SET "default" 0.0;
- target: "elm.progress.progressbar";
- }
- program { name: "set_invert_on";
- signal: "elm,state,inverted,on";
- source: "elm";
- action: STATE_SET "invert" 0.0;
- target: "elm.progress.progressbar";
- }
- program { name: "set_invert_off";
- signal: "elm,state,inverted,off";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.progress.progressbar";
- }
- }
-}
-
-/*****************************************************************************
-Document: Tizen TV_General Guide_GUI Guideline_v1.0_140508_1.ppt, Page no. 95,
-Vertical Progessbar filling style, single progress filling,
-Gray color filling over a trasparent bg
-******************************************************************************/
-group { name: "elm/progressbar/vertical/default";
- parts {
- part { name: "elm.background.progressbar"; type: RECT; mouse_events: 0;
- description { state: "default" 0.0;
- }
- }
- part { name: "elm.swallow.bar"; type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- min: 4 4;
- max: 4 9999;
- fixed: 1 1;
- align: 0.5 1.0;
- rel1 {
- to_y: "elm.text";
- relative: 0.0 1.0;
- }
- rel2 {
- to_y: "elm.text.box";
- relative: 1.0 0.0;
- }
- }
- }
- part { name: "elm.swallow.content"; type: SWALLOW;
- description { state: "default" 0.0;
- visible: 0;
- align: 0.5 0.0;
- rel1.to_x: "elm.swallow.bar";
- rel2 {
- relative: 1.0 0.0;
- to_x: "elm.swallow.bar";
- }
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- aspect: 1.0 1.0;
- aspect_preference: HORIZONTAL;
- }
- }
- part { name: "elm.text"; type: TEXT; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- visible: 0;
- fixed: 1 1;
- align: 0.5 0.0;
- rel1.to_y: "elm.swallow.content";
- rel1.relative: 0.5 1.0;
- rel2.to_y: "elm.swallow.content";
- rel2.relative: 0.5 1.0;
- color: 0 0 0 0;
- text {
- font: "Sans,Edje-Vera";
- size: 10;
- min: 0 0;
- align: 0.5 0.0;
- }
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- text.min: 1 1;
- text.ellipsis: -1;
- }
- }
- part { name: "background"; type: RECT; mouse_events: 0;
- clip_to: "elm.background.progressbar";
- description { state: "default" 0.0;
- rel1.to: "elm.swallow.bar";
- rel2.to: "elm.swallow.bar";
- color_class: "progressbar/default/bg";
- }
- }
- part { name: "elm.progress.progressbar"; type: RECT; mouse_events: 0;
- clip_to: "elm.background.progressbar";
- description { state: "default" 0.0;
- min: 4 4;
- max: 4 9999;
- fixed: 1 1;
- rel1.to: "elm.swallow.bar";
- rel2 {
- to_x: "elm.swallow.bar";
- to_y: "elm.cur.progressbar";
- }
- color_class: "progressbar/default/bar";
- }
- description { state: "invert" 0.0;
- inherit: "default" 0.0;
- rel1 {
- to_x: "elm.swallow.bar";
- to_y: "elm.cur.progressbar";
- }
- rel2.to: "elm.swallow.bar";
- }
- description { state: "state_begin" 0.0;
- inherit: "default" 0.0;
- rel1.to: "elm.swallow.bar";
- rel2 {
- to: "elm.swallow.bar";
- relative: 1.0 0.1;
- }
- }
- description { state: "state_end" 0.0;
- inherit: "default" 0.0;
- rel1 {
- to: "elm.swallow.bar";
- relative: 0.0 0.9;
- }
- rel2.to: "elm.swallow.bar";
- }
- }
- part { name: "over1"; type: RECT; mouse_events: 0;
- description { state: "default" 0.0;
- rel1.to: "elm.progress.progressbar";
- rel2.to: "elm.progress.progressbar";
- rel2.relative: 1.0 0.5;
- color: 0 0 0 0;
- }
- }
- part { name: "over2"; type: RECT; mouse_events: 1;
- repeat_events: 1;
- description { state: "default" 0.0;
- rel1.to: "elm.progress.progressbar";
- rel2.to: "elm.progress.progressbar";
- color: 0 0 0 0;
- }
- }
- part { name: "elm.cur.progressbar"; mouse_events: 0;
- dragable {
- confine: "background";
- x: 0 0 0;
- y: 1 1 1;
- }
- description { state: "default" 0.0;
- min: 4 4;
- max: 9999 4;
- fixed: 1 1;
- visible: 0;
- rel1.to: "background";
- rel2.to: "background";
- }
- }
- part { name: "elm.text.box"; mouse_events: 0; type: RECT;
- description { state: "default" 0.0;
- visible: 0;
- rel1.to: "elm.text.status";
- rel2.to: "elm.text.status";
- color: 255 255 255 0;
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- part { name: "elm.text.status"; type: TEXT; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- visible: 0;
- fixed: 1 1;
- align: 0.5 1.0;
- rel1.relative: 0.0 1.0;
- color: 0 0 0 0;
- text {
- font: "Sans:style=Bold,Edje-Vera-Bold";
- size: 10;
- min: 0 0;
- align: 0.5 0.0;
- }
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- fixed: 1 1;
- visible: 1;
- text.min: 1 1;
- text.ellipsis: -1;
- }
- }
- }
- programs {
- program { name: "label_show";
- signal: "elm,state,text,visible";
- source: "elm";
- action: STATE_SET "visible" 0.0;
- target: "elm.text";
- }
- program { name: "label_hide";
- signal: "elm,state,text,hidden";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.text";
- }
- program { name: "icon_show";
- signal: "elm,state,icon,visible";
- source: "elm";
- action: STATE_SET "visible" 0.0;
- target: "elm.swallow.content";
- }
- program { name: "icon_hide";
- signal: "elm,state,icon,hidden";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.swallow.content";
- }
- program { name: "units_show";
- signal: "elm,state,units,visible";
- source: "elm";
- action: STATE_SET "visible" 0.0;
- target: "elm.text.status";
- target: "elm.text.box";
- }
- program { name: "units_hide";
- signal: "elm,state,units,hidden";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.text.status";
- target: "elm.text.box";
- }
- program { name: "slide_to_end";
- action: STATE_SET "state_end" 0.0;
- transition: LINEAR 0.5;
- target: "elm.progress.progressbar";
- after: "slide_to_begin";
- }
- program { name: "slide_to_begin";
- action: STATE_SET "state_begin" 0.0;
- target: "elm.progress.progressbar";
- transition: LINEAR 0.5;
- after: "slide_to_end";
- }
- program { name: "start_pulse";
- signal: "elm,state,pulse,start";
- source: "elm";
- action: STATE_SET "state_begin" 0.0;
- target: "elm.progress.progressbar";
- after: "slide_to_end";
- }
- program { name: "stop_pulse";
- signal: "elm,state,pulse,stop";
- source: "elm";
- action: ACTION_STOP;
- target: "slide_to_begin";
- target: "slide_to_end";
- target: "start_pulse";
- after: "state_pulse";
- }
- program { name: "state_pulse";
- signal: "elm,state,pulse";
- source: "elm";
- action: STATE_SET "state_begin" 0.0;
- target: "elm.progress.progressbar";
- after: "units_hide";
- }
- program { name: "state_fraction";
- signal: "elm,state,fraction";
- source: "elm";
- action: ACTION_STOP;
- target: "slide_to_begin";
- target: "slide_to_end";
- target: "start_pulse";
- action: STATE_SET "default" 0.0;
- target: "elm.progress.progressbar";
- }
- program { name: "set_invert_on";
- signal: "elm,state,inverted,on";
- source: "elm";
- action: STATE_SET "invert" 0.0;
- target: "elm.progress.progressbar";
- target: "elm.cur.progressbar";
- }
- program { name: "set_invert_off";
- signal: "elm,state,inverted,off";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.progress.progressbar";
- target: "elm.cur.progressbar";
- }
- }
-}
-
- group { "elm/progressbar/horizontal/process_large";
- data.item: "vector_ux" "process_large";
- parts {
- rect { "access";
- type: RECT;
- desc { "default";
- fixed: 1 1;
- color: 0 0 0 0;
- }
- }
- swallow { "elm.swallow.bar";
- desc { "default";
- hid;
- }
- }
- rect { "bg";
- scale;
- desc { "default";
- rel1.to: "clipper";
- rel2.to: "clipper";
- color: 0 0 0 0;
- }
- }
- rect { "clipper";
- scale;
- desc { "default";
- min: PROGRESSBAR_LARGE_SIZE_INC;
- max: PROGRESSBAR_LARGE_SIZE_INC;
- color_class: "progressbar/process_large/icon_bottom";
- }
- }
- swallow { "tizen_vg_shape1";
- scale;
- clip: "clipper";
- desc { "default";
- rel1.to: "clipper";
- rel2.to: "clipper";
- }
- }
- swallow { "tizen_vg_shape2";
- scale;
- clip: "tizen_vg_shape2_clipper";
- desc { "default";
- rel1.to: "clipper";
- rel2.to: "clipper";
- }
- }
- rect { "tizen_vg_shape2_clipper";
- scale;
- desc { "default";
- color_class: "progressbar/process_large/icon_middle";
- }
- }
- swallow { "tizen_vg_shape3";
- scale;
- clip: "tizen_vg_shape3_clipper";
- desc { "default";
- rel1.to: "clipper";
- rel2.to: "clipper";
- }
- }
- rect { "tizen_vg_shape3_clipper";
- scale;
- desc { "default";
- color_class: "progressbar/process_large/icon_top";
- }
- }
- }
- programs {
- program { "start_pulse";
- signal: "elm,state,pulse,start";
- source: "elm";
- action: STATE_SET "default";
- target: "clipper";
- }
- program { "stop_pulse";
- signal: "elm,state,pulse,stop";
- source: "elm";
- action: ACTION_STOP;
- target: "start_pulse";
- after: "init_pulse";
- }
- program { "init_pulse";
- action: STATE_SET "default";
- target: "clipper";
- }
- }
- }
-
- group { "elm/progressbar/horizontal/process_medium";
- inherit: "elm/progressbar/horizontal/process_large";
- data.item: "vector_ux" "process_medium";
- parts {
- rect { "clipper";
- scale;
- desc { "default";
- min: PROGRESSBAR_MEDIUM_SIZE_INC;
- max: PROGRESSBAR_MEDIUM_SIZE_INC;
- color_class: "progressbar/process_medium/icon_bottom";
- }
- }
- rect { "tizen_vg_shape2_clipper";
- scale;
- desc { "default";
- color_class: "progressbar/process_medium/icon_middle";
- }
- }
- rect { "tizen_vg_shape3_clipper";
- scale;
- desc { "default";
- color_class: "progressbar/process_medium/icon_top";
- }
- }
- }
- }
-
- group { "elm/progressbar/horizontal/process_small";
- inherit: "elm/progressbar/horizontal/process_large";
- data.item: "vector_ux" "process_small";
- parts {
- rect { "clipper";
- scale;
- desc { "default";
- min: PROGRESSBAR_SMALL_SIZE_INC;
- max: PROGRESSBAR_SMALL_SIZE_INC;
- color_class: "progressbar/process_small/icon_bottom";
- }
- }
- rect { "tizen_vg_shape2_clipper";
- scale;
- desc { "default";
- color_class: "progressbar/process_small/icon_middle";
- }
- }
- rect { "tizen_vg_shape3_clipper";
- scale;
- desc { "default";
- color_class: "progressbar/process_small/icon_top";
- }
- }
- }
- }
-
+++ /dev/null
-/*
- * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-/*****************************************************************************
-Document: Tizen TV_General Guide_GUI Guideline_v1.0_140508_1.ppt, Page no. 77,
-******************************************************************************/
-#define RADIO_SIZE 38 38
-#define RADIO_FONT_SIZE 24
-
-group { name: "elm/radio/base/default";
- images {
- image: "radiobtn_on_nor.png" COMP;
- image: "radiobtn_off_nor.png" COMP;
- image: "radiobtn_off_foc.png" COMP;
- image: "radiobtn_on_foc.png" COMP;
- }
- data.item: "focus_highlight" "on";
- script {
- public is_focus = 0;
- public is_checkd = 0;
- public set_focus() {
- set_int(is_focus, 1);
- }
- public unset_focus() {
- set_int(is_focus, 0);
- }
- public set_check_set() {
- set_state(PART:"bg", "invisible", 0.0);
- if (get_int(is_focus)) {
- set_state(PART:"radio", "highlight", 0.0);
- }
- else {
- set_state(PART:"radio", "visible", 0.0);
- }
- }
- public set_check_unset() {
- set_state(PART:"radio", "default", 0.0);
- if (get_int(is_focus)) {
- set_state(PART:"bg", "highlight", 0.0);
- }
- else {
- set_state(PART:"bg", "default", 0.0);
- }
- }
- }
- parts {
- part { name: "background";
- mouse_events: 0;
- scale: 1;
- type: RECT;
- description { state: "default" 0.0;
- rel.to: "bg";
- color_class: "radio/default/bg";
- }
- }
- part { name: "bg";
- mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- rel2.relative: 0.0 1.0;
- align: 0.0 0.5;
- min: RADIO_SIZE;
- max: RADIO_SIZE;
- aspect: 1.0 1.0;
- aspect_preference: VERTICAL;
- image.normal: "radiobtn_off_nor.png";
- color_class: "radio/default/stroke";
- }
- description { state: "invisible" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- description { state: "highlight" 0.0;
- inherit: "default" 0.0;
- image.normal: "radiobtn_off_foc.png";
- color_class: "radio/default/stroke_focused";
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- color_class: "radio/default/stroke_disabled";
- }
- }
- part { name: "radio";
- mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "bg";
- rel2.to: "bg";
- image.normal: "radiobtn_on_nor.png";
- visible: 0;
- color_class: "radio/default/icon";
- }
- description { state: "highlight" 0.0;
- inherit: "default" 0.0;
- image.normal: "radiobtn_on_foc.png";
- visible: 1;
- color_class: "radio/default/icon_focused";
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- part { name: "elm.swallow.content";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- fixed: 1 0;
- visible: 0;
- align: 0.0 0.5;
- max: 0 0;
- rel1.to_x: "bg";
- rel1.relative: 1.0 0.0;
- rel1.offset: 1 1;
- rel2.to_x: "bg";
- rel2.offset: 1 -2;
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- aspect: 1.0 1.0;
- min: RADIO_SIZE;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 128;
- }
- description { state: "disabled_visible" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 128;
- visible: 1;
- aspect: 1.0 1.0;
- }
- }
- part { name: "elm.text";
- type: TEXT;
- mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- visible: 0;
- rel1.to_x: "elm.swallow.content";
- rel1.relative: 1.0 0.0;
- rel1.offset: 1 1;
- rel2.offset: -2 -2;
- color: 0 0 0 255;
- text { font: FONT_M;
- size: RADIO_FONT_SIZE;
- min: 0 0;
- align: -1.0 0.5;
- }
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- text.min: 1 1;
- text.ellipsis: -1;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- color: 0 0 0 128;
- color3: 0 0 0 0;
- }
- description { state: "disabled_visible" 0.0;
- inherit: "default" 0.0;
- color: 0 0 0 128;
- color3: 0 0 0 0;
- visible: 1;
- text.min: 1 1;
- text.ellipsis: -1;
- }
- }
- part { name: "events";
- type: RECT;
- description { state: "default" 0.0;
- color: 0 0 0 0;
- }
- }
- part { name: "disabler";
- type: RECT;
- description { state: "default" 0.0;
- color: 0 0 0 0;
- visible: 0;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- }
- programs {
- program { name: "click";
- signal: "mouse,clicked,1";
- source: "events";
- action: SIGNAL_EMIT "elm,action,radio,toggle" "";
- }
- program { name: "radio_on";
- signal: "elm,state,radio,on";
- source: "elm";
- script{
- set_check_set();
- }
- }
- program { name: "radio_off";
- signal: "elm,state,radio,off";
- source: "elm";
- script{
- set_check_unset();
- }
- }
- program { name: "text_show";
- signal: "elm,state,text,visible";
- source: "elm";
- action: STATE_SET "visible" 0.0;
- target: "elm.text";
- }
- program { name: "text_hide";
- signal: "elm,state,text,hidden";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.text";
- }
- program { name: "icon_show";
- signal: "elm,state,icon,visible";
- source: "elm";
- action: STATE_SET "visible" 0.0;
- target: "elm.swallow.content";
- }
- program { name: "icon_hide";
- signal: "elm,state,icon,hidden";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.swallow.content";
- }
- program { name: "disable";
- signal: "elm,state,disabled";
- source: "elm";
- action: STATE_SET "disabled" 0.0;
- target: "bg";
- target: "bg";
- target: "disabler";
- after: "disable_text";
- }
- program { name: "disable_text";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"elm.text", st, 30, vl);
- if (!strcmp(st, "visible"))
- set_state(PART:"elm.text", "disabled_visible", 0.0);
- else
- set_state(PART:"elm.text", "disabled", 0.0);
- get_state(PART:"elm.swallow.content", st, 30, vl);
- if (!strcmp(st, "visible"))
- set_state(PART:"elm.swallow.content", "disabled_visible", 0.0);
- else
- set_state(PART:"elm.swallow.content", "disabled", 0.0);
- }
- }
- program { name: "enable";
- signal: "elm,state,enabled";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "disabler";
- after: "enable_text";
- }
- program { name: "enable_text";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"elm.text", st, 30, vl);
- if (!strcmp(st, "disabled_visible"))
- set_state(PART:"elm.text", "visible", 0.0);
- else
- set_state(PART:"elm.text", "default", 0.0);
- get_state(PART:"elm.swallow.content", st, 30, vl);
- if (!strcmp(st, "visible"))
- set_state(PART:"elm.swallow.content", "visible", 0.0);
- else
- set_state(PART:"elm.swallow.content", "default", 0.0);
- }
- }
- program { name: "focused";
- signal: "elm,action,focus"; source: "elm";
- script {
- set_focus();
- }
- after: "enable_focus";
- }
- program { name: "enable_focus";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"bg", st, 30, vl);
- if (!strcmp(st, "default"))
- set_state(PART:"bg", "highlight", 0.0);
-
- get_state(PART:"radio", st, 30, vl);
- if (!strcmp(st, "visible")) {
- set_state(PART:"radio", "highlight", 0.0);
- set_state(PART:"bg", "invisible", 0.0);
- }
- }
- }
- program { name: "unfocused";
- signal: "elm,action,unfocus"; source: "elm";
- script {
- unset_focus();
- }
- after: "disable_focus";
- }
- program { name: "disable_focus";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"bg", st, 30, vl);
- if (!strcmp(st, "highlight"))
- set_state(PART:"bg", "default", 0.0);
-
- get_state(PART:"radio", st, 30, vl);
- if (!strcmp(st, "highlight"))
- set_state(PART:"radio", "visible", 0.0);
- }
- }
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-/****************************************************************************
-DOC: Tizen TV_General Guide_GUI Guideline_v1.0_140430.ppt page : 61 style: black
-****************************************************************************/
-group { name: "elm/scroller/base/default";
- alias: "elm/list/base/default";
- alias: "elm/scroller/base/map_bubble";
- alias: "elm/genscroller/base/default";
-
- data {
- item: "focus_highlight" "on";
- }
-
- script {
- public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer;
- public timer0(val) {
- new v;
- v = get_int(sbvis_v);
- if (v) {
- v = get_int(sbalways_v);
- if (!v) {
- emit("do-hide-vbar", "");
- set_int(sbvis_v, 0);
- }
- }
- v = get_int(sbvis_h);
- if (v) {
- v = get_int(sbalways_h);
- if (!v) {
- emit("do-hide-hbar", "");
- set_int(sbvis_h, 0);
- }
- }
- set_int(sbvis_timer, 0);
- return 0;
- }
- public visible_scroll() {
- new v;
- v = get_int(sbvis_v);
- v |= get_int(sbalways_v);
- if (!v) {
- emit("do-show-vbar", "");
- set_int(sbvis_v, 1);
- }
- v = get_int(sbvis_h);
- v |= get_int(sbalways_h);
- if (!v) {
- emit("do-show-hbar", "");
- set_int(sbvis_h, 1);
- }
- v = get_int(sbvis_timer);
- if (v > 0) cancel_timer(v);
- v = timer(5.0, "timer0", 0);
- set_int(sbvis_timer, v);
- }
- public mask(val) {
- new x, y , w, h, x1, y1 , w1, h1;
- get_geometry(PART:"pad.drag_up", x,y,w, h);
- get_geometry(PART:"pad.vbar_up", x1,y1,w1, h1);
-
- if( y >= y1 && y <=(y1+h1) )
- {
- set_state(PART:"mask.top", "default", 0.0);
- }
- else
- {
- set_state(PART:"mask.top", "show", 0.0);
- }
- get_geometry(PART:"pad.drag_down", x,y,w, h);
- get_geometry(PART:"pad.vbar_down", x1,y1,w1, h1);
-
- if( (y+h) >= y1 && (y+h) <= (y1+h1) )
- {
- set_state(PART:"mask.bottom", "hidden", 0.0);
- }
- else
- {
- set_state(PART:"mask.bottom", "default", 0.0);
- }
- if(val < 100)
- timer(0.01,"mask",val+1);
- }
-
- }
-
- images {
- image: "scrollbar_vertical.png" COMP;
- image: "scrollbar_horizontal.png" COMP;
- image: "scrollbar_mask_top.png" COMP;
- image: "scrollbar_mask_bottom.png" COMP;
- }
- parts {
- part { name: "bg"; type: RECT;
- description { state: "default" 0.0;
- color: 255 255 255 0;
- }
- }
- part { name: "clipper"; type: RECT; mouse_events: 0;
- description { state: "default" 0.0;
- rel1.to: "bg";
- rel2.to: "bg";
- }
- }
- part { name: "elm.swallow.content"; type: SWALLOW;
- clip_to: "clipper";
- description { state: "default" 0.0;
- rel1.to: "bg";
- rel2.to: "bg";
- }
- }
- part { name: "mask.top"; mouse_events: 1;
- repeat_events: 1;
- clip_to: "clipper";
- description { state: "default" 0.0;
- rel1.to: "elm.swallow.content";
- align: 0 0;
- min: 0 36;
- max: -1 36;
- fixed: 1 1;
- image.normal: "scrollbar_mask_top.png";
- visible: 0;
- }
- description { state: "show" 0.0;
- inherit: "default";
- visible: 0;
- }
- }
- part { name: "mask.bottom"; mouse_events: 1;
- repeat_events: 1;
- clip_to: "clipper";
- description { state: "default" 0.0;
- rel2.to: "elm.swallow.content";
- align: 1 1;
- min: 0 36;
- max: -1 36;
- fixed: 1 1;
- image.normal: "scrollbar_mask_bottom.png";
- visible: 0;
- }
- description { state: "hidden" 0.0;
- inherit: "default";
- visible: 0;
- }
- }
- part { name: "pad.vbar_up"; type: SPACER;
- repeat_events: 1;
- description { state: "default" 0.0;
- min: 4 18;
- max: 4 18;
- fixed: 1 1;
- align: 0.0 0.0;
- rel1.to: "sb_vbar";
- rel2.to: "sb_vbar";
- }
- }
- part { name: "pad.drag_up"; type: SPACER;
- repeat_events: 1;
- description { state: "default" 0.0;
- min: 4 4;
- max: 4 4;
- fixed: 1 1;
- align: 0.0 0.0;
- rel1.to: "elm.dragable.vbar";
- rel2.to: "elm.dragable.vbar";
- }
- }
- part { name: "pad.vbar_down"; type: SPACER;
- repeat_events: 1;
- description { state: "default" 0.0;
- min: 4 18;
- max: 4 18;
- fixed: 1 1;
- align: 0.0 1.0;
- rel1.to: "sb_vbar";
- rel2.to: "sb_vbar";
- }
- }
- part { name: "pad.drag_down"; type: SPACER;
- repeat_events: 1;
- description { state: "default" 0.0;
- min: 4 4;
- max: 4 4;
- fixed: 1 1;
- align: 0.0 1.0;
- rel1.to: "elm.dragable.vbar";
- rel2.to: "elm.dragable.vbar";
- }
- }
-
- part { name: "conf_over"; type: RECT; mouse_events: 0;
- description { state: "default" 0.0;
- rel1.to: "bg";
- rel2.to: "bg";
- color: 255 255 0 0;
- }
- description { state: "enabled" 0.0;
- inherit: "default" 0.0;
- color: 200 155 0 0;
- }
- }
- part { name: "focus_highlight"; type: RECT; mouse_events: 0;
- description { state: "default" 0.0;
- color: 200 155 0 0;
- }
- description { state: "enabled" 0.0;
- inherit: "default" 0.0;
- color: 200 155 0 0;
- }
- }
- part { name: "sb_vbar_clip_master"; type: RECT; mouse_events: 0;
- description { state: "default" 0.0;
- }
- description { state: "hidden" 0.0;
- visible: 0;
- }
- }
- part { name: "sb_vbar_clip"; type: RECT; mouse_events: 0;
- clip_to: "sb_vbar_clip_master";
- description { state: "default" 0.0;
- }
- description { state: "hidden" 0.0;
- visible: 0;
- }
- }
- part { name: "sb_vbar"; type: RECT; mouse_events: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- visible: 0;
- min: 10 17;
- align: 1.0 0.0;
- rel1 {
- relative: 1.0 0.0;
- to_y: "elm.swallow.content";
- to_x: "elm.swallow.content";
- }
- rel2 {
- relative: 1.0 0.0;
- to_y: "sb_hbar";
- to_x: "elm.swallow.content";
- }
- }
- }
- part { name: "elm.dragable.vbar"; mouse_events: 0;
- clip_to: "sb_vbar_clip";
- dragable {
- x: 0 0 0;
- y: 1 1 0;
- confine: "sb_vbar";
- }
- description { state: "default" 0.0;
- fixed: 1 1;
- min: 8 9;
- max: 8 -1;
- rel1 {
- relative: 0.5 0.5;
- to: "sb_vbar";
- }
- rel2 {
- relative: 0.5 0.5;
- to: "sb_vbar";
- }
- color: 0 0 0 64;
- image {
- normal: "scrollbar_vertical.png";
- border: 4 4 4 4;
- middle: SOLID;
- }
- }
- }
- part { name: "sb_hbar_clip_master"; type: RECT; mouse_events: 0;
- description { state: "default" 0.0;
- }
- description { state: "hidden" 0.0;
- visible: 0;
- }
- }
- part { name: "sb_hbar_clip"; type: RECT; mouse_events: 0;
- clip_to: "sb_hbar_clip_master";
- description { state: "default" 0.0;
- }
- description { state: "hidden" 0.0;
- visible: 0;
- }
- }
- part { name: "sb_hbar"; type: RECT; mouse_events: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- visible: 0;
- min: 17 10;
- align: 0.0 1.0;
- rel1 {
- relative: 0.0 1.0;
- to_x: "elm.swallow.content";
- to_y: "elm.swallow.content";
- }
- rel2 {
- relative: 0.0 1.0;
- to_x: "sb_vbar";
- to_y: "elm.swallow.content";
- }
- }
- }
- part { name: "elm.dragable.hbar"; mouse_events: 0;
- clip_to: "sb_hbar_clip";
- dragable {
- x: 1 1 0;
- y: 0 0 0;
- confine: "sb_hbar";
- }
- description { state: "default" 0.0;
- fixed: 1 1;
- min: 9 8 ;
- max: -1 8 ;
- rel1 {
- relative: 0.5 0.5;
- to: "sb_hbar";
- }
- rel2 {
- relative: 0.5 0.5;
- to: "sb_hbar";
- }
- color: 0 0 0 64;
- image {
- normal: "scrollbar_horizontal.png";
- border: 4 4 4 4;
- middle: SOLID;
- }
- }
- }
- part { name: "disabler"; type: RECT;
- description { state: "default" 0.0;
- rel1.to: "clipper";
- rel2.to: "clipper";
- visible: 0;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- color: 128 128 128 128;
- }
- }
- }
- programs {
- program { name: "load";
- signal: "load";
- source: "";
- script {
- mask(0);
- set_state(PART:"sb_hbar_clip", "hidden", 0.0);
- set_state(PART:"sb_vbar_clip", "hidden", 0.0);
- set_int(sbvis_h, 0);
- set_int(sbvis_v, 0);
- set_int(sbalways_v, 0);
- set_int(sbalways_h, 0);
- set_int(sbvis_timer, 0);
- }
- }
- program { name: "vbar_show";
- signal: "elm,action,show,vbar";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "sb_vbar_clip_master";
- }
- program { name: "vbar_hide";
- signal: "elm,action,hide,vbar";
- source: "elm";
- action: STATE_SET "hidden" 0.0;
- target: "sb_vbar_clip_master";
- }
- program { name: "vbar_show_always";
- signal: "elm,action,show_always,vbar";
- source: "elm";
- script {
- new v;
- v = get_int(sbvis_v);
- v |= get_int(sbalways_v);
- if (!v) {
- set_int(sbalways_v, 1);
- emit("do-show-vbar", "");
- set_int(sbvis_v, 1);
- }
- }
- }
- program { name: "vbar_show_notalways";
- signal: "elm,action,show_notalways,vbar";
- source: "elm";
- script {
- new v;
- v = get_int(sbalways_v);
- if (v) {
- set_int(sbalways_v, 0);
- v = get_int(sbvis_v);
- if (!v) {
- emit("do-hide-vbar", "");
- set_int(sbvis_v, 0);
- }
- }
- }
- }
- program { name: "sb_vbar_show";
- signal: "do-show-vbar";
- source: "";
- action: STATE_SET "default" 0.0;
- transition: LINEAR 0.5;
- target: "sb_vbar_clip";
- }
- program { name: "sb_vbar_hide";
- signal: "do-hide-vbar";
- source: "";
- action: STATE_SET "hidden" 0.0;
- transition: LINEAR 0.5;
- target: "sb_vbar_clip";
- }
-
- program { name: "hbar_show";
- signal: "elm,action,show,hbar";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "sb_hbar_clip_master";
- }
- program { name: "hbar_hide";
- signal: "elm,action,hide,hbar";
- source: "elm";
- action: STATE_SET "hidden" 0.0;
- target: "sb_hbar_clip_master";
- }
- program { name: "hbar_show_always";
- signal: "elm,action,show_always,hbar";
- source: "elm";
- script {
- new v;
- v = get_int(sbvis_h);
- v |= get_int(sbalways_h);
- if (!v) {
- set_int(sbalways_h, 1);
- emit("do-show-hbar", "");
- set_int(sbvis_h, 1);
- }
- }
- }
- program { name: "hbar_show_notalways";
- signal: "elm,action,show_notalways,hbar";
- source: "elm";
- script {
- new v;
- v = get_int(sbalways_h);
- if (v) {
- set_int(sbalways_h, 0);
- v = get_int(sbvis_h);
- if (!v) {
- emit("do-hide-hbar", "");
- set_int(sbvis_h, 0);
- }
- }
- }
- }
- program { name: "sb_hbar_show";
- signal: "do-show-hbar";
- source: "";
- action: STATE_SET "default" 0.0;
- transition: LINEAR 0.5;
- target: "sb_hbar_clip";
- }
- program { name: "sb_hbar_hide";
- signal: "do-hide-hbar";
- source: "";
- action: STATE_SET "hidden" 0.0;
- transition: LINEAR 0.5;
- target: "sb_hbar_clip";
- }
- program { name: "scroll";
- signal: "elm,action,scroll";
- source: "elm";
- script {
- mask(100);
- visible_scroll();
- }
- }
- program { name: "mouseoverv";
- signal: "mouse,in";
- source: "sb_vbar";
- script {
- visible_scroll();
- }
-
- }
- program { name: "mouseoverh";
- signal: "mouse,in";
- source: "sb_hbar";
- script {
- visible_scroll();
- }
- }
- program { name: "focus";
- signal: "elm,action,focus";
- source: "elm";
- script {
- mask(100);
- visible_scroll();
- }
- }
- program { name: "highlight_show";
- signal: "elm,action,focus_highlight,show";
- source: "elm";
- action: STATE_SET "enabled" 0.0;
- transition: ACCELERATE 0.3;
- target: "focus_highlight";
- target: "conf_over";
- }
- program { name: "highlight_hide";
- signal: "elm,action,focus_highlight,hide";
- source: "elm";
- action: STATE_SET "default" 0.0;
- transition: DECELERATE 0.3;
- target: "focus_highlight";
- target: "conf_over";
- }
- program { name: "disable";
- signal: "elm,state,disabled";
- source: "elm";
- action: STATE_SET "disabled" 0.0;
- target: "disabler";
- }
- program { name: "enable";
- signal: "elm,state,enabled";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "disabler";
- }
- program {
- signal: "elm,scroller,arrow_up,hide";
- source: "elm";
- action: STATE_SET "invisible" 0.0;
- target: "mask.top";
- }
- }
-}
-
-group { name: "elm/genlist/base/default";
- inherit: "elm/scroller/base/default";
- parts {
- part { name: "bg"; type: RECT;
- description { state: "default" 0.0;
- color: 255 255 255 255;
- color_class: "genlist/default/bg";
- }
- }
- }
-}
-
-group { name: "elm/gengrid/base/default";
- inherit: "elm/scroller/base/default";
- parts {
- part { name: "bg"; type: RECT;
- description { state: "default" 0.0;
- color: 255 255 255 255;
- color_class: "gengrid/default/bg";
- }
- }
- }
-}
-
-/********************************************************************************
-DOC: Tizen TV_General Guide_GUI Guideline_v1.0_140430.ppt page : 61 style: white
-* ******************************************************************************/
-group { name: "elm/scroller/base/white";
- inherit: "elm/scroller/base/default";
- alias: "elm/list/base/white";
- alias: "elm/genlist/base/white";
- alias: "elm/gengrid/base/white";
- alias: "elm/scroller/base/map_bubble";
- alias: "elm/genscroller/base/white";
-
- parts {
- part { name: "elm.dragable.vbar";
- description { state: "default" 0.0;
- color: 255 255 255 25;
- }
- }
- part { name: "elm.dragable.hbar";
- description { state: "default" 0.0;
- color: 255 255 255 25;
- }
- }
- }
-}
-
-group { name: "elm/genlist/base/white";
- inherit: "elm/genlist/base/default";
-
- parts {
- part { name: "elm.dragable.vbar";
- description { state: "default" 0.0;
- color: 255 255 255 25;
- }
- }
- part { name: "elm.dragable.hbar";
- description { state: "default" 0.0;
- color: 255 255 255 25;
- }
- }
- }
-}
-
-group { name: "elm/gengrid/base/white";
- inherit: "elm/gengrid/base/default";
-
- parts {
- part { name: "elm.dragable.vbar";
- description { state: "default" 0.0;
- color: 255 255 255 25;
- }
- }
- part { name: "elm.dragable.hbar";
- description { state: "default" 0.0;
- color: 255 255 255 25;
- }
- }
- }
-}
-
-/********************************************************************************
-DOC: Tizen TV_General Guide_GUI Guideline_v1.0_140430.ppt page : 70 style: white
-********************************************************************************/
-group { name: "elm/scroller/base/no_bar";
- inherit: "elm/scroller/base/default";
- alias: "elm/list/base/no_bar";
- alias: "elm/scroller/base/map_bubble";
- alias: "elm/genscroller/base/no_bar";
-
- parts {
- part { name: "elm.dragable.vbar";
- description { state: "default" 0.0;
- visible: 0;
- }
- }
- part { name: "elm.dragable.hbar";
- description { state: "default" 0.0;
- visible: 0;
- }
- }
- }
-}
-
-group { name: "elm/genlist/base/no_bar";
- inherit: "elm/genlist/base/default";
-
- parts {
- part { name: "elm.dragable.vbar";
- description { state: "default" 0.0;
- visible: 0;
- }
- }
- part { name: "elm.dragable.hbar";
- description { state: "default" 0.0;
- visible: 0;
- }
- }
- }
-}
-
-group { name: "elm/gengrid/base/no_bar";
- inherit: "elm/gengrid/base/default";
-
- parts {
- part { name: "elm.dragable.vbar";
- description { state: "default" 0.0;
- visible: 0;
- }
- }
- part { name: "elm.dragable.hbar";
- description { state: "default" 0.0;
- visible: 0;
- }
- }
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-/*********************************************************************************
-Document: Tizen TV_General Guide_GUI Guideline_v1.0_140508_1.ppt, Page no.94,
-style name: default
-*********************************************************************************/
-
-//ADD_COLOR_CLASS
-
-#define SLIDER_FONT_SIZE 26
-
-group { name: "elm/slider/horizontal/default";
- data.item: "focus_highlight" "on";
- styles {
- style { name: "slider_style";
- base: "font="FONT_M" font_size="26" align=centre color=#458fff left_margin=21 right_margin=21";
- tag: "hilight" "+ font_weight=Bold";
- tag: "em" "+ font_style=Bold";
- }
- }
- parts {
- alias: "default" "elm.text";
- part { name: "base"; type: RECT; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- max: -1 8;
- min: 0 8;
- rel1 { to_y: "bg";
- to_x: "pad.level.left";
- relative: 1 0;
- }
- rel2 { to: "bg";
- to_x: "pad.level.right";
- relative: 0 1;
- }
- color_class: "slider/default/bg";
- }
- }
- part { name: "pad.level.left"; type: SPACER; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- rel1 { to: "elm.swallow.bar";
- relative: 0 1;
- }
- rel2 { to: "elm.swallow.bar";
- relative: 0 1;
- }
- min: 12 0;
- max: 12 0;
- fixed: 1 0;
- align: 0 0;
- }
- }
- part { name: "pad.level.right"; type: SPACER; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- rel1 { to: "elm.swallow.bar";
- relative: 0 1;
- }
- rel2.to: "elm.swallow.bar";
- min: 12 0;
- max: 12 0;
- align: 1 0;
- fixed: 1 0;
- }
- }
- part { name: "level"; type: RECT; mouse_events: 0;
- description { state: "default" 0.0;
- fixed: 1 1;
- rel1.to: "base";
- rel2 { to_y: "base";
- to_x: "elm.dragable.slider";
- relative: 0.5 1.0;
- }
- color: 255 255 255 255;
- }
- description { state: "inverted" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- color: 255 0 0 100;
- }
- description { state: "disabled_inverted" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- part { name: "over"; type: RECT; mouse_events: 0;
- description { state: "default" 0.0;
- fixed: 1 1;
- rel1 { to_y: "base";
- to_x: "elm.dragable.slider";
- relative: 0.5 0.0;
- }
- rel2.to: "base";
- color: 0 0 0 65;
- }
- }
- part { name: "level2"; type: RECT; mouse_events: 0;
- description { state: "default" 0.0;
- fixed: 1 1;
- visible: 1;
- rel1 { to_y: "base";
- to_x: "elm.dragable.slider";
- relative: 0.5 0.0;
- }
- rel2.to: "base";
- color: 255 255 255 65;
- }
- description { state: "inverted" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- }
- description { state: "disabled_inverted" 0.0;
- inherit: "default" 0.0;
- color: 255 0 0 100;
- visible: 1;
- }
- }
- part { name: "pad.bg"; type: SPACER; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "elm.swallow.bar";
- rel2.to: "elm.swallow.bar";
- min: 12 0;
- max: 12 0;
- align: 0 0;
- }
- }
- part { name: "pad.bg.right"; type: SPACER; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "elm.swallow.bar";
- rel2.to: "elm.swallow.bar";
- min: 12 2;
- max: 12 2;
- align: 1 1;
- }
- }
- part { name: "bg"; type: RECT; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- visible: 0;
- align: 0.5 0.5;
- rel1.to: "pad.bg";
- rel1.relative: 1 0;
- rel2.to: "pad.bg.right";
- rel2.relative: 0 1;
- color: 255 0 0 255;
- }
- }
- part { name: "pad.swallow.left"; type: SPACER; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- align: 0 0;
- min: 20 0;
- max: 20 0;
- rel1 {
- to_x: "elm.text";
- relative: 1.0 0.0;
- }
- }
- }
- part { name: "pad.swallow.right"; type: SPACER; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- min: 20 0;
- max: 20 0;
- fixed: 1 1;
- align: 1 1;
- rel2 {
- to_x: "elm.units";
- relative: 0.0 1.0;
- }
- }
- }
- part { name: "elm.swallow.bar"; type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- min: 48 24;
- max: -1 24;
- align: 1.0 0.5;
- rel1 {
- to: "pad.swallow.left";
- relative: 1.0 0.0;
- }
- rel2 {
- to_x: "pad.swallow.right";
- relative: 0.0 1.0;
- }
- }
- }
- part { name: "elm.swallow.icon"; type: SWALLOW;
- description { state: "default" 0.0;
- visible: 0;
- align: 0.0 0.5;
- rel1 {
- to_y: "elm.swallow.bar";
- }
- rel2 {
- relative: 0.0 1.0;
- to_y: "elm.swallow.bar";
- }
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- aspect: 1.0 1.0;
- aspect_preference: VERTICAL;
- }
- }
- part { name: "elm.text"; type: TEXT; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- visible: 0;
- fixed: 1 1;
- align: 1.0 0.5;
- rel1.to_x: "elm.swallow.icon";
- rel1.relative: 1.0 0.0;
- rel2.to_x: "elm.swallow.icon";
- rel2.relative: 1.0 1.0;
- text {
- font: "FONT_M";
- size: SLIDER_FONT_SIZE;
- min: 0 0;
- align: 0.0 0.5;
- }
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- text.min: 1 1;
- text.ellipsis: -1;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- color: 255 128 128 128;
- visible: 0;
- }
- description { state: "disabled_visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- text.min: 1 1;
- text.ellipsis: -1;
- }
- }
- part { name: "elm.swallow.end"; type: SWALLOW;
- description { state: "default" 0.0;
- visible: 0;
- align: 1.0 0.5;
- rel1 {
- relative: 1.0 0.0;
- to_y: "elm.swallow.bar";
- }
- rel2 {
- to_y: "elm.swallow.bar";
- }
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- aspect: 1.0 1.0;
- aspect_preference: VERTICAL;
- }
- }
- part { name: "elm.units"; type: TEXT; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- visible: 0;
- fixed: 1 1;
- rel1.to_x: "elm.swallow.end";
- rel2.to_x: "elm.swallow.end";
- color: 255 255 255 255;
- align: 0 0.5;
- text {
- font: FONT_M;
- size: SLIDER_FONT_SIZE;
- min: 0 0;
- align: 0.0 0.5;
- }
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- text.min: 1 1;
- text.ellipsis: -1;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- color: 255 128 128 128;
- visible: 0;
- }
- description { state: "disabled_visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- text.min: 1 1;
- text.ellipsis: -1;
- }
- }
- part { name: "button"; type: GROUP; mouse_events: 0;
- source:"elm/slider/horizontal/indicator/default";
- description { state: "default" 0.0;
- fixed: 1 1;
- rel1.to: "elm.dragable.slider";
- rel2.to: "elm.dragable.slider";
- }
- description { state: "hidden" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- part { name: "elm.dragable.slider"; type: RECT;
- scale: 1;
- dragable {
- x: 1 1 0;
- y: 0 0 0;
- confine: "bg";
- }
- description { state: "default" 0.0;
- min: 0 0;
- max: 0 0;
- fixed: 1 1;
- rel1 {
- relative: 0.5 0.0;
- to_x: "bg";
- }
- rel2 {
- relative: 0.5 1.0;
- to_x: "bg";
- }
- color: 0 0 0 0;
- }
- }
- part { name: "slideevent"; type: RECT; mouse_events: 0;
- scale: 1;
- dragable.events: "elm.dragable.slider";
- description { state: "default" 0.0;
- fixed: 1 1;
- min: 24 24;
- max: 24 24;
- rel1.to: "elm.dragable.slider";
- rel2.to: "elm.dragable.slider";
- color: 0 0 0 0;
- }
- }
- part { name: "elm.track.slider"; type: SWALLOW; mouse_events: 0;
- description { state: "default" 0.0;
- max: 0 0;
- rel1.to: "elm.dragable.slider";
- rel2.to: "elm.dragable.slider";
- }
- }
- part { name: "disabler"; type: RECT;
- description { state: "default" 0.0;
- color: 0 0 0 0;
- visible: 0;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- }
- programs {
- program { name: "mouse_down_bar";
- signal: "mouse,down,*"; source:"elm.swallow.bar";
- action: SIGNAL_EMIT "popup,show" "elm";
- }
- program { name: "mouse_up_bar";
- signal: "mouse,up,*"; source:"elm.swallow.bar";
- action: SIGNAL_EMIT "popup,hide" "elm";
- }
-
- program { name: "indicator_show";
- signal: "elm,state,indicator,show"; source:"elm";
- action: SIGNAL_EMIT "popup,show" "elm";
- }
- program { name: "indicator_hide";
- signal: "elm,state,indicator,hide"; source:"elm";
- action: SIGNAL_EMIT "highlight,hide" "elm";
- }
- program { name: "popup_show";
- signal: "mouse,down,1"; source:"slideevent";
- action: SIGNAL_EMIT "popup,show" "elm";
- }
- program { name: "popup_hide";
- signal: "mouse,up,1"; source:"slideevent";
- action: SIGNAL_EMIT "highlight,hide" "elm";
- }
- program { name: "text_show";
- signal: "elm,state,text,visible"; source:"elm";
- action: STATE_SET "visible" 0.0;
- target: "elm.text";
- }
- program { name: "text_hide";
- signal: "elm,state,text,hidden"; source:"elm";
- action: STATE_SET "default" 0.0;
- target: "elm.text";
- }
- program { name: "icon_show";
- signal: "elm,state,icon,visible"; source:"elm";
- action: STATE_SET "visible" 0.0;
- target: "elm.swallow.icon";
- }
- program { name: "icon_hide";
- signal: "elm,state,icon,hidden"; source:"elm";
- action: STATE_SET "default" 0.0;
- target: "elm.swallow.icon";
- }
- program { name: "end_show";
- signal: "elm,state,end,visible"; source:"elm";
- action: STATE_SET "visible" 0.0;
- target: "elm.swallow.end";
- }
- program { name: "end_hide";
- signal: "elm,state,end,hidden"; source:"elm";
- action: STATE_SET "default" 0.0;
- target: "elm.swallow.end";
- }
- program { name: "units_show";
- signal: "elm,state,units,visible"; source:"elm";
- action: STATE_SET "visible" 0.0;
- target: "elm.units";
- after: "limits,children,visible";
- }
- program { name: "limits,children,visible";
- action: SIGNAL_EMIT "limits:limits,visible" "elm";
- }
- program { name: "units_hide";
- signal: "elm,state,units,hidden"; source:"elm";
- action: STATE_SET "default" 0.0;
- target: "elm.units";
- after: "limits,children,hide";
- }
- program { name: "limits,children,hide";
- action: SIGNAL_EMIT "limits:limits,hide" "elm";
- }
- program { name: "invert_on";
- signal: "elm,state,inverted,on"; source:"elm";
- action: STATE_SET "inverted" 0.0;
- target: "level";
- target: "level2";
- }
- program { name: "invert_off";
- signal: "elm,state,inverted,off"; source:"elm";
- action: STATE_SET "default" 0.0;
- target: "level";
- target: "level2";
- }
- program {
- name: "go_disabled";
- signal: "elm,state,disabled"; source:"elm";
- action: STATE_SET "disabled" 0.0;
- target: "disabler";
- after: "disable_text";
- after: "disable_ind";
- }
- program { name: "disable_ind";
- action: SIGNAL_EMIT "elm.dragable.slider:elm,state,disabled" "elm";
- }
- program { name: "disable_text";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"elm.text", st, 30, vl);
- if (!strcmp(st, "visible"))
- set_state(PART:"elm.text", "disabled_visible", 0.0);
- else
- set_state(PART:"elm.text", "disabled", 0.0);
-
- get_state(PART:"elm.units", st, 30, vl);
- if (!strcmp(st, "visible"))
- set_state(PART:"elm.units", "disabled_visible", 0.0);
- else
- set_state(PART:"elm.units", "disabled", 0.0);
-
- get_state(PART:"level2", st, 30, vl);
- if (!strcmp(st, "inverted"))
- {
- set_state(PART:"level", "disabled_inverted", 0.0);
- set_state(PART:"level2", "disabled_inverted", 0.0);
- }
- else
- {
- set_state(PART:"level", "disabled", 0.0);
- set_state(PART:"level2", "disabled", 0.0);
- }
- }
- }
- program { name: "enable";
- signal: "elm,state,enabled"; source:"elm";
- action: STATE_SET "default" 0.0;
- target: "disabler";
- after: "enable_text";
- after: "enable_ind";
- }
- program { name: "enable_ind";
- action: SIGNAL_EMIT "elm.dragable.slider:elm,state,enabled" "elm";
- }
- program { name: "enable_text";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"elm.text", st, 30, vl);
- if (!strcmp(st, "disabled_visible"))
- set_state(PART:"elm.text", "visible", 0.0);
- else
- set_state(PART:"elm.text", "default", 0.0);
-
- get_state(PART:"elm.units", st, 30, vl);
- if (!strcmp(st, "disabled_visible"))
- set_state(PART:"elm.units", "visible", 0.0);
- else
- set_state(PART:"elm.units", "default", 0.0);
-
- get_state(PART:"level2", st, 30, vl);
- if (!strcmp(st, "disabled_inverted"))
- {
- set_state(PART:"level", "inverted", 0.0);
- set_state(PART:"level2", "inverted", 0.0);
- }
- else
- {
- set_state(PART:"level", "default", 0.0);
- set_state(PART:"level2", "default", 0.0);
- }
- }
- }
- }
-}
-
-group { name: "elm/slider/horizontal/indicator/default";
- alias: "elm/slider/horizontal/popup/default";
- images{
- image: "tooltip_bg.png" COMP;
- image: "tooltip_arrow.png" COMP;
- image: "slider_thumb_stroke.png" COMP;
- image: "slider_thumb_fill.png" COMP;
- }
- script {
- public popup_show = 0;
- public is_in_focuse = 0;
- public is_mouse_in = 0;
- public is_focus = 0;
- public setcol;
-
- public set_value_show() {
- set_int(popup_show, 0);
- }
-
- public set_value_hide() {
- set_int(popup_show, 1);
- }
-
- public mouse_down()
- {
- if (get_int(popup_show) == 0)
- {
- set_state(PART:"progress_balloon", "clicked", 0.0);
- set_state(PART:"progress_balloon_arrow", "clicked", 0.0);
- set_state(PART:"elm.indicator", "clicked", 0.0);
- set_state(PART:"knob_fill", "clicked", 0.0);
- set_state(PART:"knob", "clicked", 0.0);
- }
- set_int(is_in_focuse, 1);
- }
- public mouse_up()
- {
- set_state(PART:"progress_balloon", "default", 0.0);
- set_state(PART:"progress_balloon_arrow", "default", 0.0);
- set_state(PART:"elm.indicator", "default", 0.0);
- set_state(PART:"knob_fill", "default", 0.0);
- set_state(PART:"knob", "clicked", 0.0);
- }
- public mouse_in_knob()
- {
- set_state(PART:"knob", "over", 0.0);
- set_int(is_mouse_in, 1);
- }
- public mouse_out_knob()
- {
- set_int(is_mouse_in, 0);
- if (get_int(is_in_focuse))
- {
- set_state(PART:"knob", "clicked", 0.0);
- }
- else
- set_state(PART:"knob", "default", 0.0);
- }
- }
- parts{
- part { name: "knob_fill";
- repeat_events: 1;
- scale: 1;
- description { state: "default" 0.0;
- image.normal: "slider_thumb_fill.png";
- min: 38 38;
- max: 38 38;
- align:0.5 0.5;
- fixed: 1 1;
- color_class: "open_ux_theme";
- }
- description { state: "clicked" 0.0;
- inherit: "default" 0.0;
- color_class: "open_ux_theme";
- }
- }
- part { name: "knob";
- repeat_events: 1;
- scale: 1;
- description { state: "default" 0.0;
- image.normal: "slider_thumb_stroke.png";
- min: 38 38;
- max: 38 38;
- fixed: 1 1;
- color: 255 255 255 255;
- }
- description { state: "clicked" 0.0;
- inherit: "default" 0.0;
- }
- description { state: "over" 0.0;
- inherit: "clicked" 0.0;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- }
- }
- part { name: "progress_balloon";
- scale: 1;
- description { state: "default" 0.0;
- visible: 0;
- align: 0.5 1;
- rel1.to: "pad.text_top.left";
- rel2.to: "pad.text_bottom.right";
- fixed: 1 1;
- image.normal: "tooltip_bg.png";
- image.border: 6 6 7 7;
- image.border_scale: 1;
- }
- description { state: "clicked" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- part { name: "pad.baloon_arrow_align"; type:SPACER;
- scale: 1;
- description { state: "default" 0.0;
- rel1.to: "knob";
- rel2{
- to: "knob";
- relative: 1 0;
- }
- min: 0 2;
- max: 0 2;
- fixed: 1 1;
- align: 0.5 0;
- }
- }
- part { name: "progress_balloon_arrow";
- scale: 1;
- description { state: "default" 0.0;
- visible: 0;
- rel1 { to: "pad.baloon_arrow_align";
- relative: 0 1;
- }
- rel2.to: "pad.baloon_arrow_align";
- min: 12 10;
- max: 12 10;
- align: 0.5 1;
- fixed: 1 1;
- image.normal: "tooltip_arrow.png";
- image.border: 6 6 7 7;
- image.border_scale: 1;
- }
- description { state: "clicked" 0.0;
- inherit: "default" 0.0;
- image.normal: "tooltip_arrow.png";
- visible: 1;
- }
- }
- part { name: "pad.text_top.left"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 11 11;
- max: 11 11;
- fixed: 1 1;
- align: 1 0;
- rel1.to: "elm.indicator";
- rel2 { to: "elm.indicator";
- relative: 0 0;
- }
- }
- }
- part { name: "pad.text_bottom.right"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 11 11;
- max: 11 11;
- fixed: 1 1;
- align: 0 0;
- rel1 { to: "elm.indicator";
- relative: 1 1;
- }
- rel2.to: "elm.indicator";
- }
- }
- part { name: "pad.text_align"; type: SPACER;
- scale: 1;
- description { state: "default" 0.0;
- min: 0 6;
- max: 0 6;
- fixed: 1 1;
- align: 0.5 1;
- rel1 { to: "progress_balloon_arrow";
- relative: 0.5 0;
- }
- rel2 { to: "progress_balloon_arrow";
- relative: 0.5 0;
- }
- }
- }
- part { name: "elm.indicator"; type: TEXTBLOCK; mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- visible: 0;
- fixed: 1 1;
- rel1.to: "pad.text_align";
- rel2 { to: "pad.text_align";
- relative: 0 0;
- }
- align: 0.5 1;
- text {
- style: "slider_style";
- min: 1 1;
- ellipsis: -1;
- }
- }
- description { state: "clicked" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- }
-
- programs {
- program { name: "mouse_down_bar";
- signal: "mouse,down,*"; source:"knob";
- script {
- mouse_down();
- }
- }
- program { name: "mouse_up_bar";
- signal: "mouse,up,*"; source:"knob";
- script {
- mouse_up();
- }
- }
- program { name: "popup_show";
- signal: "popup,show"; source:"elm";
- script {
- mouse_down();
- }
- }
- program { name: "popup_hide";
- signal: "popup,hide"; source:"elm";
- action: SIGNAL_EMIT "popup,hide,done" "elm";
- }
- program { name: "popup_hide2";
- signal: "popup,hide"; source:"elm";
- script {
- mouse_up();
- }
- }
- program { name: "set_val_show";
- signal: "elm,state,val,show"; source:"elm";
- script {
- set_value_show();
- }
- }
- program { name: "set_val_hide";
- signal: "elm,state,val,hide"; source:"elm";
- script {
- set_value_hide();
- }
- }
- program { name: "val_show";
- signal: "mouse,down,*"; source:"knob";
- script {
- mouse_down();
- }
- }
- program { name: "val_hide";
- signal: "mouse,up,*"; source:"knob";
- script {
- mouse_up();
- }
- }
-
-
- }
-}
-
-/*********************************************************************************
-Document: Tizen TV_General Guide_GUI Guideline_v1.0_140508_1.ppt, Page no.96,
-style name: default
-*********************************************************************************/
-group { name: "elm/slider/horizontal/progress";
- inherit: "elm/slider/horizontal/default";
- parts{
- part { name: "level"; type: RECT; mouse_events: 0;
- description { state: "default" 0.0;
- fixed: 1 1;
- rel1.to: "base";
- rel2 {
- to_y: "base";
- to_x: "elm.dragable.slider";
- relative: 0.5 1.0;
- }
- color_class: "open_ux_theme";
- }
- description { state: "focus" 0.0;
- inherit: "default" 0.0;
- color_class: "open_ux_theme";
- }
- }
- part { name: "button"; type: GROUP; mouse_events: 0;
- source:"elm/slider/horizontal/indicator/progress";
- description { state: "default" 0.0;
- fixed: 1 1;
- rel1.to: "elm.dragable.slider";
- rel2.to: "elm.dragable.slider";
- }
- description { state: "hidden" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- }
- programs {
- program { name: "Focus";
- signal: "elm,action,focus"; source: "elm";
- action: STATE_SET "focus" 0.0;
- target: "level";
- }
- program { name: "Unfocus";
- signal: "elm,action,unfocus"; source: "elm";
- action: STATE_SET "default" 0.0;
- target: "level";
- }
- }
-}
-
-group { name: "elm/slider/horizontal/indicator/progress";
- inherit: "elm/slider/horizontal/indicator/default";
- alias: "elm/slider/horizontal/popup/progress";
- parts {
- part { name: "knob_fill";
- repeat_events: 1;
- scale: 1;
- description { state: "default" 0.0;
- image.normal: "slider_thumb_fill.png";
- min: 38 38;
- max: 38 38;
- align:0.5 0.5;
- fixed: 1 1;
- color: 0 0 0 255;
- }
- description { state: "clicked" 0.0;
- inherit: "default" 0.0;
- }
- }
- part { name: "knob";
- repeat_events: 1;
- scale: 1;
- description { state: "default" 0.0;
- image.normal: "slider_thumb_stroke.png";
- min: 38 38;
- max: 38 38;
- fixed: 1 1;
- color: 255 255 255 255;
- }
- description { state: "over" 0.0;
- inherit: "clicked" 0.0;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- }
- description { state: "focus" 0.0;
- inherit: "default" 0.0;
- color_class: "open_ux_theme";
- }
- description { state: "clicked" 0.0;
- inherit: "focus" 0.0;
- color_class: "open_ux_theme";
- }
- }
-
- }
- programs {
- program { name: "Focus";
- signal: "elm,action,focus"; source: "elm";
- action: STATE_SET "focus" 0.0;
- target: "knob";
- }
- program { name: "Unfocus";
- signal: "elm,action,unfocus"; source: "elm";
- action: STATE_SET "default" 0.0;
- target: "knob";
- }
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-/*************************************************************************
-Doc: Tizen TV_General Guide_GUI Guideline_v1.0_140709.ppt page:93
-**************************************************************************/
-/*
-group { name: "elm/spinner/base/default";
- alias: "elm/spinner/base/horizontal";
- parts {
- part { name: "bg";
- type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- color_class: "spinner/default/bg";
- }
- }
- part { name: "access";
- type: RECT;
- repeat_events: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- color: 0 0 0 0;
- rel1.to: "bg";
- rel2.to: "bg";
- visible: 1;
- }
- description { state: "active" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- part { name: "elm.swallow.inc_button";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- align: 1.0 0.5;
- min: 64 90;
- max: 64 90;
- }
- }
- part { name: "elm.swallow.dec_button";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- align: 0.0 0.5;
- min: 64 90;
- max: 64 90;
- }
- }
- part { name: "elm.swallow.text_button";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- visible: 1;
- min: 0 146;
- max: -1 146;
- rel1 {
- to_x: "elm.swallow.dec_button";
- relative: 1.0 0.0;
- }
- rel2 {
- to_x: "elm.swallow.inc_button";
- relative: 0.0 1.0;
- }
- }
- description { state: "active" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- part { name: "elm.swallow.entry";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- visible: 0;
- rel1.to: "elm.swallow.text_button";
- rel2.to: "elm.swallow.text_button";
- min: 0 146;
- max: -1 146;
- fixed: 1 1;
- }
- description { state: "active" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- part { name: "disabler";
- type: RECT;
- description { state: "default" 0.0;
- color: 0 0 0 0;
- visible: 0;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- }
- programs {
- program { name: "entry_active";
- signal: "elm,state,entry,active";
- source: "elm";
- action: STATE_SET "active" 0.0;
- //target: "elm.swallow.text_button";
- target: "elm.swallow.entry";
- }
- program { name: "entry_inactive";
- signal: "elm,state,entry,inactive";
- source: "elm";
- action: STATE_SET "default" 0.0;
- //target: "elm.swallow.text_button";
- target: "elm.swallow.entry";
- }
- program { name: "text_button_active";
- signal: "elm,state,button,active";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.swallow.text_button";
- }
- program { name: "text_button_inactive";
- signal: "elm,state,button,inactive";
- source: "elm";
- action: STATE_SET "inactive" 0.0;
- target: "elm.swallow.text_button";
- }
- program { name: "access_activate";
- signal: "elm,state,access,active";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "access";
- }
- program { name: "access_inactivate";
- signal: "elm,state,access,inactive";
- source: "elm";
- action: STATE_SET "active" 0.0;
- target: "access";
- }
- program { name: "disable";
- signal: "elm,state,disabled";
- source: "elm";
- action: STATE_SET "disabled" 0.0;
- target: "disabler";
- }
- program { name: "enable";
- signal: "elm,state,enabled";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "disabler";
- }
- }
-}
-*/
-
-group { name: "elm/spinner/base/vertical";
- parts {
- part { name: "bg";
- type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- min: 146 348;
- color_class: "spinner/vertical/bg";
- }
- }
- part { name: "access";
- type: RECT;
- repeat_events: 1;
- description { state: "default" 0.0;
- fixed: 1 1;
- color: 0 0 0 0;
- rel1.to: "bg";
- rel2.to: "bg";
- visible: 1;
- }
- description { state: "active" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- part { name: "elm.swallow.inc_button";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- align: 0.5 0.0;
- min: 146 80;
- max: 146 80;
- }
- }
- part { name: "elm.swallow.dec_button";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- align: 0.5 1.0;
- min: 146 80;
- max: 146 80;
- }
- }
- part { name: "elm.swallow.text_button";
- type: SWALLOW;
- scale: 1;
- description { state: "default" 0.0;
- visible: 1;
- min: 0 146;
- max: -1 146;
- }
- description { state: "inactive" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- part { name: "elm.swallow.entry";
- type: SWALLOW;
- description { state: "default" 0.0;
- visible: 0;
- rel1.to: "elm.swallow.text_button";
- rel2.to: "elm.swallow.text_button";
- min: 0 146;
- max: -1 146;
- fixed: 1 1;
- }
- description { state: "active" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- part { name: "disabler";
- type: RECT;
- description { state: "default" 0.0;
- color: 0 0 0 0;
- visible: 0;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- }
- programs {
- program { name: "entry_active";
- signal: "elm,state,entry,active";
- source: "elm";
- action: STATE_SET "active" 0.0;
- target: "elm.swallow.entry";
- }
- program { name: "entry_inactive";
- signal: "elm,state,entry,inactive";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.swallow.entry";
- }
- program { name: "text_button_active";
- signal: "elm,state,button,active";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.swallow.text_button";
- }
- program { name: "text_button_inactive";
- signal: "elm,state,button,inactive";
- source: "elm";
- action: STATE_SET "inactive" 0.0;
- target: "elm.swallow.text_button";
- }
- program { name: "access_activate";
- signal: "elm,state,access,active";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "access";
- }
- program { name: "access_inactivate";
- signal: "elm,state,access,inactive";
- source: "elm";
- action: STATE_SET "active" 0.0;
- target: "access";
- }
- program { name: "disable";
- signal: "elm,state,disabled";
- source: "elm";
- action: STATE_SET "disabled" 0.0;
- target: "disabler";
- }
- program { name: "enable";
- signal: "elm,state,enabled";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "disabler";
- }
- }
-}
-
-group { name: "elm/spinner/base/vertical_date_picker";
- inherit: "elm/spinner/base/vertical";
- parts {
- part { name: "bg";
- type: RECT;
- scale: 1;
- description { state: "default" 0.0;
- min: 158 262;
- color: 250 250 250 255;
- }
- }
- }
-}
-
-
-
- group { "elm/button/event/spinner";
- inherit_only: 1;
- parts {
- rect { "event";
- mouse;
- desc { "default";
- color: 0 0 0 0;
- rel.to: "base";
- }
- desc { "disabled";
- inherit: "default";
- hid;
- }
- }
- }
- programs {
- /* Program for pressed event */
- program { "pressed";
- signal: "mouse,down,1*";
- source: "event";
- action: SIGNAL_EMIT "elm,action,press" "";
- after: "on_pressed";
- }
- /* Program for unpressed event */
- program { "unpressed";
- signal: "mouse,up,1*";
- source: "event";
- action: SIGNAL_EMIT "elm,action,unpress" "";
- after: "on_unpressed";
- }
- /* Program for clicked event */
- program { "clicked";
- signal: "mouse,clicked,1";
- source: "event";
- action: SIGNAL_EMIT "elm,action,click" "";
- after: "on_clicked";
- }
- /* Program for enabled event */
- program { "enabled";
- signal: "elm,state,enabled";
- source: "elm";
- action: STATE_SET "default";
- target: "event";
- after: "on_enabled";
- }
- /* Program for disabled event */
- program { "disabled";
- signal: "elm,state,disabled";
- source: "elm";
- action: STATE_SET "disabled";
- target: "event";
- after: "on_disabled";
- }
- program { "enable_event_pass";
- signal: "elm,event,pass,enabled";
- source: "elm";
- script {
- set_mouse_events(PART:"event", 0);
- }
- }
- program { "disable_event_pass";
- signal: "elm,event,pass,disabled";
- source:"elm";
- script {
- set_mouse_events(PART:"event", 1);
- }
- }
- program { "enable_event_repeat";
- signal: "elm,event,repeat,enabled";
- source: "elm";
- script {
- set_repeat_events(PART:"event", 1);
- }
- }
- program { "disable_event_repeat";
- signal: "elm,event,repeat,disabled";
- source:"elm";
- script {
- set_repeat_events(PART:"event", 0);
- }
- }
- }
- }
-
-
-group { "elm/button/base/spinner/increase/template";
- alias: "elm/button/base/spinner/decrease/template";
- inherit_only: 1;
- nomouse;
- parts {
- spacer { "base";
- desc { "default";
- }
- }
- image { "icon";
- desc { "default";
- rel.to: "base";
- }
- }
- spacer { "focus_image";
- desc { "default";
- rel.to: "base";
- }
- }
- }
- inherit: "elm/button/event/spinner";
- programs {
- /* Program for pressed effect */
- program { "on_pressed";
- }
- /* Program for unpressed effect */
- program { "on_unpressed";
- }
- /* Program for clicked effect */
- program { "on_clicked";
- }
- /* Program for disabled effect */
- program { "on_disabled";
- }
- /* Program for enabled effect */
- program { "on_enabled";
- }
- program { "enable_pass_event";
- signal: "elm,event,pass,enabled";
- source: "elm";
- script {
- set_mouse_events(PART:"event", 0);
- }
- }
- program { "disable_pass_event";
- signal: "elm,event,pass,disabled";
- source: "elm";
- script {
- set_mouse_events(PART:"event", 1);
- }
- }
- program { "enable_repeat_event";
- signal: "elm,event,repeat,enabled";
- source: "elm";
- script {
- set_repeat_events(PART:"event", 1);
- }
- }
- program { "disable_repeat_event";
- signal: "elm,event,repeat,disabled";
- source: "elm";
- script {
- set_repeat_events(PART:"event", 0);
- }
- }
- }
-}
-
-group { "elm/button/base/spinner/template";
- inherit_only: 1;
- parts {
- spacer { "base";
- desc { "default";
- }
- }
- text { "elm.text";
- desc { "default";
- rel.to: "base";
- }
- }
- spacer { "focus_image";
- desc { "default";
- rel.to: "base";
- }
- }
- }
- inherit: "elm/button/event/spinner";
- programs {
- /* Program for pressed effect */
- program { "on_pressed";
- }
- /* Program for unpressed effect */
- program { "on_unpressed";
- }
- /* Program for clicked effect */
- program { "on_clicked";
- }
- /* Program for disabled effect */
- program { "on_disabled";
- }
- /* Program for enabled effect */
- program { "on_enabled";
- }
- program { "enable_pass_event";
- signal: "elm,event,pass,enabled";
- source: "elm";
- script {
- set_mouse_events(PART:"event", 0);
- }
- }
- program { "disable_pass_event";
- signal: "elm,event,pass,disabled";
- source: "elm";
- script {
- set_mouse_events(PART:"event", 1);
- }
- }
- program { "enable_repeat_event";
- signal: "elm,event,repeat,enabled";
- source: "elm";
- script {
- set_repeat_events(PART:"event", 1);
- }
- }
- program { "disable_repeat_event";
- signal: "elm,event,repeat,disabled";
- source: "elm";
- script {
- set_repeat_events(PART:"event", 0);
- }
- }
- }
-}
-
-#define BUTTON_SPINNER_BG_EFFECT_PARTS(corner_size, ratio, sizer_bg_effect, clipper_bg_effect, top_left, top_right, mid, bottom_left, bottom_right) \
- vector { "bg_effect_top_left"; \
- clip: clipper_bg_effect; \
- desc { "default"; \
- align: 0.0 0.0; \
- max: corner_size*ratio corner_size*ratio; \
- rel.to: sizer_bg_effect; \
- rel1.relative: 0.0 0.0; \
- rel2.relative: 0.5 0.5; \
- image.normal: top_left; \
- } \
- desc { "pressed"; \
- inherit: "default"; \
- max: corner_size corner_size; \
- } \
- } \
- vector { "bg_effect_top_right"; \
- clip: clipper_bg_effect; \
- desc { "default"; \
- align: 1.0 0.0; \
- max: corner_size*ratio corner_size*ratio; \
- rel.to: sizer_bg_effect; \
- rel1.relative: 0.5 0.0; \
- rel2.relative: 1.0 0.5; \
- image.normal: top_right; \
- } \
- desc { "pressed"; \
- inherit: "default"; \
- max: corner_size corner_size; \
- } \
- } \
- vector { "bg_effect_top_mid"; \
- clip: clipper_bg_effect; \
- desc { "default"; \
- rel1.to: "bg_effect_top_left"; \
- rel1.relative: 1.0 0.0; \
- rel2.to: "bg_effect_top_right"; \
- rel2.relative: 0.0 1.0; \
- image.normal: mid; \
- } \
- } \
- vector { "bg_effect_mid"; \
- clip: clipper_bg_effect; \
- desc { "default"; \
- rel1.to: "bg_effect_top_left"; \
- rel1.relative: 0.0 1.0; \
- rel2.to: "bg_effect_bottom_right"; \
- rel2.relative: 1.0 0.0; \
- image.normal: mid; \
- } \
- } \
- vector { "bg_effect_bottom_left"; \
- clip: clipper_bg_effect; \
- desc { "default"; \
- align: 0.0 1.0; \
- max: corner_size*ratio corner_size*ratio; \
- rel.to: sizer_bg_effect; \
- rel1.relative: 0.0 0.5; \
- rel2.relative: 0.5 1.0; \
- image.normal: bottom_left; \
- } \
- desc { "pressed"; \
- inherit: "default"; \
- max: corner_size corner_size; \
- } \
- } \
- vector { "bg_effect_bottom_right"; \
- clip: clipper_bg_effect; \
- desc { "default"; \
- align: 1.0 1.0; \
- max: corner_size*ratio corner_size*ratio; \
- rel.to: sizer_bg_effect; \
- rel1.relative: 0.5 0.5; \
- rel2.relative: 1.0 1.0; \
- image.normal: bottom_right; \
- } \
- desc { "pressed"; \
- inherit: "default"; \
- max: corner_size corner_size; \
- } \
- } \
- vector { "bg_effect_bottom_mid"; \
- clip: clipper_bg_effect; \
- desc { "default"; \
- rel1.to: "bg_effect_bottom_left"; \
- rel1.relative: 1.0 0.0; \
- rel2.to: "bg_effect_bottom_right"; \
- rel2.relative: 0.0 1.0; \
- image.normal: mid; \
- } \
- }
-
-group { name: "elm/button/base/spinner/increase/default";
- alias: "elm/button/base/spinner/increase/horizontal";
- inherit: "elm/button/base/spinner/increase/template";
- //data.item: "focus_highlight" "on"; // We need to set data item after applying focus_image properly.
- target_group: "bg_effect_group" "bg_effect_top_left" "bg_effect_top_right" "bg_effect_bottom_left" "bg_effect_bottom_right";
- images {
- vector: "core_press_top_left.svg";
- vector: "core_press_top_right.svg";
- vector: "core_press_bottom_left.svg";
- vector: "core_press_bottom_right.svg";
- vector: "core_press_center.svg";
- image: "core_icon_picker_arrow_right.png" COMP;
- }
- script {
- public disabled = 0;
- public animate = 0;
- }
- parts {
- //Effect Shape Part
- spacer { "sizer_bg_effect";
- scale;
- desc { "default";
- rel.to: "base";
- rel1.relative: 0.5 0.5;
- rel2.relative: 0.5 0.5;
- min: SPINNER_LEFT_RIGHT_EFFECT_MIN_SIZE_INC;
- fixed: 1 1;
- }
- desc { "pressed";
- inherit: "default";
- rel1.relative: 0.0 0.0;
- rel2.relative: 1.0 1.0;
- }
- }
- BUTTON_SPINNER_BG_EFFECT_PARTS(SPINNER_BUTTON_CORNER_RADIUS,
- 0.7,
- "sizer_bg_effect",
- "clipper_bg_effect",
- "core_press_top_left.svg",
- "core_press_top_right.svg",
- "core_press_center.svg",
- "core_press_bottom_left.svg",
- "core_press_bottom_right.svg")
-
- rect { "clipper_bg_effect";
- desc { "default";
- fixed: 1 1;
- rel.to: "sizer_bg_effect";
- color: 255 255 255 0;
- color_class: "spinner/default/effect_icon";
- }
- desc { "pressed";
- inherit: "default";
- color: 255 255 255 255;
- }
- }
- image { "icon";
- scale;
- after: "clipper_bg_effect";
- desc { "default";
- image.normal: "core_icon_picker_arrow_right.png";
- rel.to: "base";
- min: SPINNER_LEFT_RIGHT_ARROW_IMAGE_SIZE_INC;
- max: SPINNER_LEFT_RIGHT_ARROW_IMAGE_SIZE_INC;
- fixed: 1 1;
- color_class: "spinner/default/icon";
- }
- desc { "pressed";
- inherit: "default";
- color_class: "spinner/default/icon_pressed";
- }
- desc { "disabled";
- inherit: "default";
- color_class: "spinner/default/icon_disabled";
- }
- }
- spacer { "focus_image";
- after: "icon";
- scale: 1;
- desc { "default";
- align: 0.5 0.0;
- rel.to: "icon";
- }
- desc { "focused";
- inherit: "default";
- }
- }
- rect { "event";
- after: "focus_image";
- mouse;
- }
- }
- program_remove: "unpressed";
- program_remove: "clicked";
- programs {
- program { "on_pressed";
- script {
- if (get_int(disabled) == 0) {
- stop_program(PROGRAM:"delay_effect_unpressed");
- set_int(animate, 1);
- run_program(PROGRAM:"anim_effect_pressed");
- }
- }
- }
- program { "anim_effect_pressed";
- action: STATE_SET "default";
- target: "sizer_bg_effect";
- target_groups: "bg_effect_group";
-
- sequence {
- action: STATE_SET "pressed";
- target: "sizer_bg_effect";
- target: "clipper_bg_effect";
- target: "icon";
- target_groups: "bg_effect_group";
- transition: GLIDE_EASE_OUT(0.15);
-
- script {
- set_int(animate, 0);
- }
- }
- }
- program { "unpressed";
- signal: "mouse,up,1";
- source: "event";
- script {
- if (get_int(disabled) == 0) {
- if (get_int(animate) == 0) {
- run_program(PROGRAM:"anim_effect_unpressed");
- } else {
- run_program(PROGRAM:"set_effect_pressed");
- }
- emit("elm,action,unpress", "");
- }
- }
- }
- program { "set_effect_pressed";
- action: STATE_SET "pressed";
- target_groups: "bg_effect_group";
- target: "sizer_bg_effect";
- target: "clipper_bg_effect";
- target: "icon";
- after: "delay_effect_unpressed";
- }
- program { "delay_effect_unpressed";
- in: 0.1 0.0;
- after: "anim_effect_unpressed";
- }
- program { "anim_effect_unpressed";
- script {
- if (get_int(disabled) == 0) {
- run_program(PROGRAM:"anim_effect_unpressed2");
- } else {
- run_program(PROGRAM:"anim_effect_disabled");
- }
- run_program(PROGRAM:"anim_effect_unpressed3");
- }
- }
- program { "anim_effect_unpressed2";
- action: STATE_SET "default";
- target: "icon";
- transition: GLIDE_EASE_OUT(0.45);
- }
- program { "anim_effect_disabled";
- action: STATE_SET "disabled";
- target: "icon";
- transition: GLIDE_EASE_OUT(0.45);
- }
- program { "anim_effect_unpressed3";
- action: STATE_SET "default";
- target: "clipper_bg_effect";
- transition: GLIDE_EASE_OUT(0.45);
-
- sequence {
- action: STATE_SET "default";
- target: "sizer_bg_effect";
- }
- }
- program { "clicked";
- signal: "mouse,clicked,1";
- source: "event";
- script {
- if (get_int(disabled) == 0) {
- run_program(PROGRAM:"play_sound");
- run_program(PROGRAM:"clicked_signal");
- }
- }
- }
- program { "play_sound";
- action: RUN_PLUGIN "touch_sound";
- }
- program { "clicked_signal";
- in: 0.001 0.0;
- action: SIGNAL_EMIT "elm,action,click" "";
- }
- program { "action_focus";
- signal: "elm,action,focus_highlight,show";
- source: "elm";
- action: STATE_SET "focused";
- target: "focus_image";
- }
- program { "action_unfocus";
- signal: "elm,action,focus_highlight,hide";
- source: "elm";
- action: STATE_SET "default";
- target: "focus_image";
- }
- program { "access_pressed";
- signal: "elm,action,anim,activate";
- source: "elm";
- after: "set_effect_pressed";
- }
- program { "on_disabled";
- script {
- set_int(disabled, 1);
- if (get_int(animate) == 1) return;
- set_state(PART:"icon", "disabled", 0.0);
- }
- }
- program { "on_enabled";
- script {
- set_int(disabled, 0);
- set_state(PART:"icon", "default", 0.0);
- }
- }
- }
-}
-
-group { name: "elm/button/base/spinner/decrease/horizontal";
- alias: "elm/button/base/spinner/decrease/default";
- inherit: "elm/button/base/spinner/increase/default";
- images {
- vector: "core_press_top_left.svg";
- vector: "core_press_top_right.svg";
- vector: "core_press_bottom_left.svg";
- vector: "core_press_bottom_right.svg";
- vector: "core_press_center.svg";
- image: "core_icon_picker_arrow_left.png" COMP;
- }
- parts {
- image { "icon";
- desc { "default";
- image.normal: "core_icon_picker_arrow_left.png";
- color_class: "spinner/default/icon";
- }
- desc { "pressed";
- inherit: "default";
- color_class: "spinner/default/icon_pressed";
- }
- desc { "disabled";
- inherit: "default";
- color_class: "spinner/default/icon_disabled";
- }
- }
- }
-}
-
-group { name: "elm/button/base/spinner/default";
- alias: "elm/button/base/spinner/horizontal";
- inherit: "elm/button/base/spinner/template";
- //data.item: "focus_highlight" "on"; // We need to set data item after applying focus_image properly.
- script {
- public editabled = 0;
- }
- parts {
- text { "elm.text";
- scale;
- desc { "default";
- min: 0 SPINNER_TEXT_HEIGHT_INC;
- max: -1 SPINNER_TEXT_HEIGHT_INC;
- fixed: 0 1;
- rel.to: "base";
- text {
- font: "Tizen:weight=Light";
- size: 106;
- text_class: "tizen";
- }
- color_class:"spinner/default/text";
- }
- desc { "pressed";
- inherit: "default";
- color_class:"spinner/default/text_pressed";
- }
- desc { "disabled";
- inherit: "default";
- color_class:"spinner/default/text_disabled";
- }
- }
- spacer { "focus_image";
- scale;
- desc { "default";
- rel.to: "base";
- }
- desc { "focused";
- inherit: "default";
- }
- }
- }
- programs {
- program { "on_pressed";
- action: STATE_SET "pressed";
- target: "elm.text";
- }
- program { "on_unpressed";
- action: STATE_SET "default";
- target: "elm.text";
- }
- program { "on_clicked";
- script {
- if (get_int(editabled) == 1) {
- run_program(PROGRAM:"play_sound");
- }
- }
- }
- program { "play_sound";
- action: RUN_PLUGIN "touch_sound";
- }
- program { "on_disabled";
- action: STATE_SET "disabled";
- target: "elm.text";
- }
- program { "on_enabled";
- action: STATE_SET "default";
- target: "elm.text";
- }
- program { "action_focus";
- signal: "elm,action,focus_highlight,show";
- source: "elm";
- action: STATE_SET "focused";
- target: "focus_image";
- }
- program { "action_unfocus";
- signal: "elm,action,focus_highlight,hide";
- source: "elm";
- action: STATE_SET "default";
- target: "focus_image";
- }
- program { "on_editable_entry";
- script {
- set_int(editabled, 1);
- }
- }
- program { "on_uneditable_entry";
- script {
- set_int(editabled, 0);
- }
- }
- }
-}
-
-
+++ /dev/null
-group { "elm/toolbar/item/event/default";
- inherit_only: 1;
- parts {
- rect { "event";
- mouse;
- desc { "default";
- rel.to: "base";
- color: 0 0 0 0;
- }
- }
- }
- programs {
- /* Program for selected event */
- program { "selected";
- signal: "elm,state,selected";
- source: "elm";
- after: "on_selected";
- }
- /* Program for unselected event */
- program { "unselected";
- signal: "elm,state,unselected";
- source: "elm";
- after: "on_unselected";
- }
- /* Program for pressed event */
- program { "pressed";
- signal: "mouse,down,1";
- source: "event";
- after: "on_pressed";
- }
- program { "pressed_key";
- signal: "elm,action,pressed";
- source: "elm";
- after: "on_pressed_key";
- }
- /* Program for unpressed event */
- program { "unpressed";
- signal: "mouse,up,1";
- source: "event";
- after: "on_unpressed";
- }
- program { "unpressed_key";
- signal: "elm,action,unpressed";
- source: "elm";
- after: "on_unpressed_key";
- }
- /* Program for clicked event */
- program { "clicked";
- signal: "mouse,clicked,1";
- source: "event";
- after: "on_clicked";
- }
- /* Program for mouse_in event */
- program { "mouse_in";
- signal: "mouse,in";
- source: "event";
- after: "on_mouse_in";
- }
- /* Program for mouse_out event */
- program { "mouse_out";
- signal: "mouse,out";
- source: "event";
- after: "on_mouse_out";
- }
- /* Program for enabled event */
- program { "enabled";
- signal: "elm,state,enabled";
- source: "elm";
- after: "on_enabled";
- }
- /* Program for disabled event */
- program { "diabled";
- signal: "elm,state,disabled";
- source: "elm";
- after: "on_disabled";
- }
- /* Program for multi_down event */
- program { "multi_down";
- signal: "elm,action,multi,down";
- source: "elm";
- after: "on_multi_down";
- }
- /* Program for multi_cancel event */
- program { "multi_cancel";
- signal: "elm,action,multi,cancel";
- source: "elm";
- after: "on_multi_cancel";
- }
- /* Program for visible_text event */
- program { "visible_text";
- signal: "elm,state,text,visible";
- source: "elm";
- after: "on_visible_text";
- }
- /* Program for hidden_text event */
- program { "hidden_text";
- signal: "elm,state,text,hidden";
- source: "elm";
- after: "on_hidden_text";
- }
- /* Program for visible_icon event */
- program { "visible_icon";
- signal: "elm,state,icon,visible";
- source: "elm";
- after: "on_visible_icon";
- }
- /* Program for hidden_icon event */
- program { "hidden_icon";
- signal: "elm,state,icon,hidden";
- source: "elm";
- after: "on_hidden_icon";
- }
- /* Program for tab_number_item event */
- program { "tab_number_item";
- signal: "elm,number,item,*";
- source: "elm";
- after: "on_tab_number_item";
- }
- /* Program for landscape_mode event */
- program { "orient_90";
- source: "elm";
- signal: "elm,state,orient,90";
- after: "on_orient_90";
- }
- program { "orient_270";
- source: "elm";
- signal: "elm,state,orient,270";
- after: "on_orient_270";
- }
- /* Program for portrait_mode event */
- program { "orient_0";
- source: "elm";
- signal: "elm,state,orient,0";
- after: "on_orient_0";
- }
- program { "orient_180";
- source: "elm";
- signal: "elm,state,orient,180";
- after: "on_orient_180";
- }
- /* Program for shrink_scroll event */
- program { "shrink_scroll";
- signal: "elm,state,shrink,scroll";
- source: "elm";
- after: "on_shrink_scroll";
- }
- /* Program for disabled event */
- program { "shrink_expand";
- signal: "elm,state,shrink,expand";
- source: "elm";
- after: "on_shrink_expand";
- }
- program { "shrink_menu";
- signal: "elm,state,shrink,menu";
- source: "elm";
- after: "on_shrink_menu";
- }
- program { "shrink_hide";
- signal: "elm,state,shrink,hide";
- source: "elm";
- after: "on_shrink_hide";
- }
- program { "shrink_default";
- signal: "elm,state,shrink,default";
- source: "elm";
- after: "on_shrink_default";
- }
- /* Program for order_item_default event */
- program { name: "order_item_default";
- signal: "elm,order,default,item";
- source: "elm";
- after: "on_order_item_default";
- }
- /* Program for order_item_first event */
- program { name: "order_item_first";
- signal: "elm,order,first,item";
- source: "elm";
- after: "on_order_item_first";
- }
- /* Program for order_item_last event */
- program { name: "order_item_last";
- signal: "elm,order,last,item";
- source: "elm";
- after: "on_order_item_last";
- }
- }
-}
-
-group { "elm/toolbar/base/template";
- inherit_only: 1;
- parts {
- /* base part for toolbar */
- spacer { "base";
- desc { "default";
- }
- }
- rect { "bg_base";
- nomouse;
- desc { "default";
- rel.to: "base";
-// color: 61 185 204 255; // background color for toolbar
- }
- }
- /* default swallow icon part */
- swallow { "elm.swallow.content";
- desc { "default";
- rel.to: "base";
- }
- }
- }
-}
-
-group { "elm/toolbar/item/template";
- inherit_only: 1;
- parts {
- /* base part for toolbar item */
- spacer { "base";
- desc { "default";
- }
- }
- rect { "bg_base";
- nomouse;
- desc { "default";
- rel.to: "base";
-// color: 61 185 204 255; // background color for toolbar item
- }
- }
- /* default icon part */
- swallow { "elm.swallow.icon";
- desc { "default";
- rel.to: "base";
- }
- }
- /* default text part */
- textblock { "elm.text";
- desc { "default";
- rel.to: "base";
- }
- }
- /* default badge part */
- swallow { "elm.swallow.badge";
- desc { "default";
- rel.to: "base";
- }
- }
- }
- programs {
- /* program for selected effect*/
- program { "on_selected";
- }
- /* program for unselected effect*/
- program { "on_unselected";
- }
- /* program for pressed_key effect*/
- program { "on_pressed_key";
- }
- /* program for pressed effect*/
- program { "on_pressed";
- }
- /* program for unpressed_key effect*/
- program { "on_unpressed_key";
- }
- /* program for unpressed effect*/
- program { "on_unpressed";
- }
- /* program for clicked effect*/
- program { "on_clicked";
- }
- /* program for enabled effect*/
- program { "on_enabled";
- }
- /* program for disabled effect*/
- program { "on_disabled";
- }
- }
-}
-
-#define ITEM_STATE_ENABLED 0
-#define ITEM_STATE_DISABLED 1
-#define TAG \
- tag: "br" "\n"; \
- tag: "ps" "ps"; \
- tag: "hilight" "+ font_weight=Bold"; \
- tag: "b" "+ font_weight=Bold"; \
- tag: "tab" "\t";
-
-styles {
- style { name: "tabbar_textblock_style";
- base: "color=#FFF color_class=toolbar_item/default/text font=Tizen:weight=Normal:width=Condensed font_size=38 align=center wrap=none ellipsis=1 text_class=tizen";
- TAG
- }
- style { name: "tabbar_textblock_pressed_style";
- base: "color=#FFF color_class=toolbar_item/default/text_pressed font=Tizen:weight=Normal:width=Condensed font_size=38 align=center wrap=none ellipsis=1 text_class=tizen";
- TAG
- }
- style { name: "tabbar_textblock_selected_style";
- base: "color=#FFF color_class=toolbar_item/default/text_selected font=Tizen:weight=Normal:width=Condensed font_size=38 align=center wrap=none ellipsis=1 text_class=tizen";
- TAG
- }
- style { name: "tabbar_textblock_selected_slide_style";
- base: "color=#FFF color_class=toolbar_item/default/text_selected font=Tizen:weight=Normal:width=Condensed font_size=38 align=left wrap=none text_class=tizen";
- TAG
- }
- style { name: "tabbar_textblock_disabled_style";
- base: "color=#FFF color_class=toolbar_item/default/text_disabled font=Tizen:weight=Normal:width=Condensed font_size=38 align=center wrap=none ellipsis=1 text_class=tizen";
- TAG
- }
- style { name: "tabbar_icon_textblock_style";
- base: "color=#FFF color_class=toolbar_item/default/text_under_icon font=Tizen:weight=Normal:width=Condensed font_size=30 align=center wrap=none ellipsis=1 text_class=tizen";
- TAG
- }
- style { name: "tabbar_icon_textblock_pressed_style";
- base: "color=#FFF color_class=toolbar_item/default/text_under_icon_pressed font=Tizen:weight=Normal:width=Condensed font_size=30 align=center wrap=none ellipsis=1 text_class=tizen";
- TAG
- }
- style { name: "tabbar_icon_textblock_selected_style";
- base: "color=#FFF color_class=toolbar_item/default/text_under_icon_selected font=Tizen:weight=Normal:width=Condensed font_size=30 align=center wrap=none ellipsis=1 text_class=tizen";
- TAG
- }
- style { name: "tabbar_icon_textblock_selected_slide_style";
- base: "color=#FFF color_class=toolbar_item/default/text_under_icon_selected font=Tizen:weight=Normal:width=Condensed font_size=30 align=left wrap=none text_class=tizen";
- TAG
- }
- style { name: "tabbar_icon_textblock_disabled_style";
- base: "color=#FFF color_class=toolbar_item/default/text_under_icon_disabled font=Tizen:weight=Normal:=Condensed font_size=30 align=center wrap=none ellipsis=1 text_class=tizen";
- TAG
- }
- style { name: "tabbar_with_title_textblock_style";
- base: "color=#FFF color_class=toolbar_item/tabbar_with_title/text font=Tizen:weight=Normal:width=Condensed font_size=38 align=center wrap=none ellipsis=1 text_class=tizen";
- TAG
- }
- style { name: "tabbar_with_title_textblock_pressed_style";
- base: "color=#FFF color_class=toolbar_item/tabbar_with_title/text_pressed font=Tizen:weight=Normal:width=Condensed font_size=38 align=center wrap=none ellipsis=1 text_class=tizen";
- TAG
- }
- style { name: "tabbar_with_title_textblock_selected_style";
- base: "color=#FFF color_class=toolbar_item/tabbar_with_title/text_selected font=Tizen:weight=Normal:width=Condensed font_size=38 align=center wrap=none ellipsis=1 text_class=tizen";
- TAG
- }
- style { name: "tabbar_with_title_textblock_selected_slide_style";
- base: "color=#FFF color_class=toolbar_item/tabbar_with_title/text_selected font=Tizen:weight=Normal:width=Condensed font_size=38 align=left wrap=none text_class=tizen";
- TAG
- }
- style { name: "tabbar_with_title_textblock_disabled_style";
- base: "color=#FFF color_class=toolbar_item/tabbar_with_title/text_disabled font=Tizen:weight=Normal:width=Condensed font_size=38 align=center wrap=none ellipsis=1 text_class=tizen";
- TAG
- }
- style { name: "tabbar_navigationbar_textblock_style";
- base: "color=#FFF color_class=toolbar_item/navigationbar/text font=Tizen:weight=Normal font_size=32 align=center wrap=none text_class=tizen";
- TAG
- }
- style { name: "tabbar_navigationbar_textblock_pressed_style";
- base: "color=#FFF color_class=toolbar_item/navigationbar/text_pressed font=Tizen:weight=Normal font_size=32 align=center wrap=none text_class=tizen";
- TAG
- }
- style { name: "tabbar_navigationbar_textblock_disabled_style";
- base: "color=#FFF color_class=toolbar_item/navigationbar/text_disabled font=Tizen:weight=Normal font_size=32 align=center wrap=none text_class=tizen";
- TAG
- }
- style { name: "tabbar_navigationbar_textblock_selected_style";
- base: "color=#FFF color_class=toolbar_item/navigationbar/text_selected font=Tizen:weight=Normal font_size=32 align=center wrap=none text_class=tizen";
- TAG
- }
- style { name: "tabbar_light_view_textblock_style";
- base: "color=#FFF color_class=toolbar_item/light_view/text font=Tizen:width=Condensed font_size=32 align=center wrap=none ellipsis=1 text_class=tizen";
- TAG
- }
- style { name: "tabbar_light_view_textblock_pressed_style";
- base: "color=#FFF color_class=toolbar_item/light_view/text_pressed font=Tizen:width=Condensed font_size=32 align=center wrap=none ellipsis=1 text_class=tizen";
- TAG
- }
- style { name: "tabbar_light_view_textblock_selected_style";
- base: "color=#FFF color_class=toolbar_item/light_view/text_selected font=Tizen:width=Condensed font_size=32 align=center wrap=none ellipsis=1 text_class=tizen";
- TAG
- }
- style { name: "tabbar_light_view_textblock_selected_slide_style";
- base: "color=#FFF color_class=toolbar_item/light_view/text_selected font=Tizen:width=Condensed font_size=32 align=center wrap=none text_class=tizen";
- TAG
- }
- style { name: "tabbar_light_view_textblock_disabled_style";
- base: "color=#FFF color_class=toolbar_item/light_view/text_disabled font=Tizen:width=Condensed font_size=32 align=center wrap=none ellipsis=1 text_class=tizen";
- TAG
- }
-}
-
-group { "elm/toolbar/base/default";
- alias: "elm/toolbar/base/tabbar";
- nomouse;
- parts {
- spacer { "base";
- scale;
- desc { "default";
- }
- }
- rect { "bg_base";
- scale;
- desc { "default";
- rel1.to: "base";
- rel2.to: "base";
- rel2.offset: -1 -1;
- color_class: "toolbar/default/bg";
- }
- }
- rect { "clipper_elm.swallow.content";
- scale;
- desc { "default";
- rel1.to: "base";
- rel2.to: "base";
- rel2.offset: -1 -1;
- }
- }
- swallow { "elm.swallow.content";
- clip: "clipper_elm.swallow.content";
- scale;
- mouse;
- desc { "default";
- rel1.to: "base";
- rel2.to: "base";
- rel2.offset: -1 -1;
- }
- }
- }
-}
-
-group { "elm/toolbar/item/tabbar";
- alias: "elm/toolbar/item/default";
- images {
- image: "core_tab_selectbar.#.png" COMP;
- }
- nomouse;
- parts {
- spacer { "base";
- scale;
- desc { "default";
- }
- }
- rect { "bg_base";
- scale;
- desc { "default";
- rel1.to: "base";
- rel2.to: "base";
- min: TABBAR_COMMON_DEFAULT_ITEM_SIZE_INC;
- color_class: "toolbar_item/default/bg";
- }
- desc { "land";
- inherit: "default";
- min: TABBAR_COMMON_LANDSCAPE_DEFAULT_ITEM_SIZE_INC;
- }
- desc { "scroll";
- inherit: "default";
- min: TABBAR_COMMON_SCROLL_ITEM_SIZE_INC;
- }
- desc { "land_scroll";
- inherit: "default";
- min: TABBAR_COMMON_LANDSCAPE_SCROLL_ITEM_SIZE_INC;
- }
- }
- spacer { "padding_badge_top_right";
- scale;
- desc { "default";
- min: TABBAR_COMMON_BADGE_TOP_RIGHT_PADDING_SIZE_INC;
- align: 1.0 0.0;
- fixed: 1 1;
- rel1.to: "base";
- rel2.to: "base";
- rel1.relative: 1.0 0.0;
- rel2.relative: 1.0 0.0;
- }
- }
- swallow { "elm.swallow.badge";
- scale;
- desc { "default";
- min: 50 50;
- align: 1.0 0.0;
- fixed: 1 1;
- rel1.to: "padding_badge_top_right";
- rel2.to: "padding_badge_top_right";
- rel1.relative: 0.0 1.0;
- rel2.relative: 0.0 1.0;
- }
- }
- spacer { "padding_selected_line_top";
- scale;
- desc { "default";
- rel1.to: "elm.text";
- rel2.to: "elm.text";
- rel1.relative: 0.0 1.0;
- rel2.relative: 1.0 1.0;
- fixed: 0 1;
- min: TABBAR_COMMON_SELECTED_LINE_TOP_PADDING_SIZE_INC;
- align: 0.5 0.0;
- }
- }
- rect { "bg_cover";
- scale;
- desc { "default";
- hid;
- rel1.to: "base";
- rel2.to: "base";
- }
- desc { "pressed";
- inherit: "default";
- vis;
- color_class: "toolbar_item/default/effect";
- }
- desc { "disabled";
- inherit: "default";
- hid;
- }
- }
- image { "selected_line";
- scale;
- desc { "default";
- rel1.to: "padding_selected_line_top";
- rel1.relative: 0.25 1.0;
- rel2.to: "padding_selected_line_top";
- rel2.relative: 0.75 1.0;
- image.normal: "core_tab_selectbar.#.png";
- fixed: 0 1;
- align: 0.5 0.0;
- min: 0 TABBAR_COMMON_SELECTED_LINE_HEIGHT_INC;
- max: -1 TABBAR_COMMON_SELECTED_LINE_HEIGHT_INC;
- color: 255 255 255 0;
- color_class: "toolbar_item/default/underline";
- }
- desc { "selected";
- inherit: "default";
- rel1.to: "padding_selected_line_top";
- rel1.relative: 0.0 1.0;
- rel2.to: "padding_selected_line_top";
- rel2.relative: 1.0 1.0;
- color: 255 255 255 255;
- }
- }
- spacer { "padding_left_top";
- scale;
- desc { "default";
- align: 0.0 0.0;
- rel1.to: "base";
- rel2.to: "base";
- rel2.relative: 0.0 0.0;
- min: 0 0;
- fixed: 1 1;
- }
- desc { "padding_text";
- inherit: "default";
- min: TABBAR_DEFAULT_TEXT_LEFT_TOP_PADDING_SIZE_INC;
- }
- desc { "icon_text";
- inherit: "default";
- min: TABBAR_DEFAULT_ICON_TEXT_LEFT_TOP_PADDING_SIZE_INC;
- }
- desc { "icon_text_land";
- inherit: "default";
- min: TABBAR_DEFAULT_ICON_TEXT_LAND_LEFT_TOP_PADDING_SIZE_INC;
- }
- }
- spacer { "padding_right_bottom";
- scale;
- desc { "default";
- align: 1.0 1.0;
- rel1.to: "base";
- rel2.to: "base";
- rel1.relative: 1.0 1.0;
- min: 0 0;
- fixed: 1 1;
- }
- desc { "padding_text";
- inherit: "default";
- min: TABBAR_DEFAULT_TEXT_RIGHT_BOTTOM_PADDING_SIZE_INC;
- }
- desc { "icon_text";
- inherit: "default";
- min: TABBAR_DEFAULT_ICON_TEXT_RIGHT_BOTTOM_PADDING_SIZE_INC;
- }
- desc { "icon_text_land";
- inherit: "default";
- min: TABBAR_DEFAULT_ICON_TEXT_LAND_RIGHT_BOTTOM_PADDING_SIZE_INC;
- }
- }
- spacer { "padding_icon_bottom";
- scale;
- desc { "default";
- min: TABBAR_DEFAULT_ICON_BOTTOM_PADDING_SIZE_INC;
- fixed: 0 1;
- align: 0.5 1.0;
- rel1.to_y: "padding_right_bottom";
- rel1.relative: 0.0 0.0;
- rel2.to_y: "padding_right_bottom";
- rel2.relative: 1.0 0.0;
- }
- }
- swallow { "elm.swallow.icon";
- scale;
- clip: "clipper_elm.swallow.icon";
- desc { "default";
- hid;
- rel1.to: "base";
- rel2.to: "base";
- min: TABBAR_DEFAULT_ICON_SIZE_INC;
- max: TABBAR_DEFAULT_ICON_SIZE_INC;
- }
- desc { "visible";
- inherit: "default";
- vis;
- rel1.to: "padding_left_top";
- rel1.relative: 1.0 1.0;
- rel2.to_x: "padding_right_bottom";
- rel2.to_y: "padding_icon_bottom";
- rel2.relative: 0.0 0.0;
- }
- desc { "visible_icon_only";
- inherit: "default";
- vis;
- rel1.to: "padding_left_top";
- rel1.relative: 1.0 1.0;
- rel2.to: "padding_right_bottom";
- rel2.relative: 0.0 0.0;
- }
- desc { "visible_land";
- inherit: "default";
- vis;
- align: 1.0 0.5;
- min: TABBAR_DEFAULT_ICON_LAND_SIZE_INC;
- max: TABBAR_DEFAULT_ICON_LAND_SIZE_INC;
- rel1 {
- to_x: "padding_text_left";
- to_y: "elm.text";
- relative: 0.0 0.0;
- }
- rel2 {
- to_x: "padding_text_left";
- to_y: "elm.text";
- relative: 0.0 1.0;
- }
- }
- }
- spacer { "padding_text_top";
- scale;
- desc { "default";
- min: TABBAR_DEFAULT_TEXT_TOP_PADDING_SIZE_INC;
- fixed: 0 1;
- align: 0.5 0.0;
- rel1.to_y: "padding_left_top";
- rel1.relative: 0.0 1.0;
- rel2.to_y: "padding_left_top";
- rel2.relative: 1.0 1.0;
- }
- }
- spacer { "padding_text_left";
- scale;
- desc { "default";
- min: TABBAR_DEFAULT_TEXT_LEFT_PADDING_SIZE_INC;
- fixed: 1 0;
- align: 1.0 0.5;
- rel1.to_x: "elm.text";
- rel1.relative: 0.0 0.0;
- rel2.to_x: "elm.text";
- rel2.relative: 0.0 1.0;
- }
- }
- textblock { "elm.text";
- scale;
- clip: "clipper_elm.text";
- desc { "default";
- hid;
- min: TABBAR_DEFAULT_TEXT_SIZE_INC;
- max: TABBAR_DEFAULT_TEXT_SIZE_INC;
- rel1.to: "padding_left_top";
- rel1.relative: 1.0 1.0;
- rel2.to: "padding_right_bottom";
- rel2.relative: 0.0 0.0;
- }
- desc { "text_normal";
- inherit: "default";
- vis;
- text {
- style: "tabbar_textblock_style";
- min: 0 1;
- max: 1 0;
- }
- }
- desc { "text_pressed";
- inherit: "text_normal";
- text.style: "tabbar_textblock_pressed_style";
- }
- desc { "text_selected";
- inherit: "text_normal";
- text.style: "tabbar_textblock_selected_style";
- }
- desc { "text_disabled";
- inherit: "text_normal";
- text.style: "tabbar_textblock_disabled_style";
- }
- desc { "icon_text";
- inherit: "default";
- min: TABBAR_DEFAULT_ICON_TEXT_SIZE_INC;
- max: TABBAR_DEFAULT_ICON_TEXT_SIZE_INC;
- vis;
- rel1 {
- to_x: "padding_left_top";
- to_y: "padding_text_top";
- relative: 1.0 1.0;
- }
- rel2 {
- to: "padding_right_bottom";
- relative: 0.0 0.0;
- }
- text {
- style: "tabbar_icon_textblock_style";
- min: 0 1;
- max: 1 1;
- }
- }
- desc { "icon_text_pressed";
- inherit: "icon_text";
- text.style: "tabbar_icon_textblock_pressed_style";
- }
- desc { "icon_text_selected";
- inherit: "icon_text";
- text.style: "tabbar_icon_textblock_selected_style";
- }
- desc { "icon_text_disabled";
- inherit: "icon_text";
- text.style: "tabbar_icon_textblock_disabled_style";
- }
- desc { "icon_text_land";
- inherit: "default";
- vis;
- min: TABBAR_DEFAULT_ICON_LAND_TEXT_SIZE_INC;
- max: TABBAR_DEFAULT_ICON_LAND_TEXT_SIZE_INC;
- text {
- style: "tabbar_textblock_style";
- min: 0 1;
- max: 1 1;
- }
- }
- desc { "icon_text_land_pressed";
- inherit: "icon_text_land";
- text.style: "tabbar_textblock_pressed_style";
- }
- desc { "icon_text_land_selected";
- inherit: "icon_text_land";
- text.style: "tabbar_textblock_selected_style";
- }
- desc { "icon_text_land_disabled";
- inherit: "icon_text_land";
- text.style: "tabbar_textblock_disabled_style";
- }
- }
- spacer { "slide_text_gap";
- scale;
- desc { "default";
- fixed: 1 1;
- min: TABBAR_COMMON_SLIDE_TEXT_GAP 0;
- max: TABBAR_COMMON_SLIDE_TEXT_GAP -1;
- align: 1.0 0.5;
- rel1.to: "padding_left_top";
- rel1.relative: 1.0 1.0;
- rel2.to_x: "padding_left_top";
- rel2.to_y: "padding_right_bottom";
- rel2.relative: 1.0 0.0;
- }
- }
- textblock { "elm.text.slide";
- scale;
- clip: "clipper_elm.text.slide";
- desc { "default";
- fixed: 1 1;
- align: 0.0 0.5;
- min: TABBAR_DEFAULT_TEXT_SIZE_INC;
- max: TABBAR_DEFAULT_TEXT_SIZE_INC;
- rel1.to: "padding_left_top";
- rel1.relative: 1.0 1.0;
- rel2.to: "padding_right_bottom";
- rel2.relative: 0.0 0.0;
- text {
- style: "tabbar_textblock_selected_slide_style";
- min: 1 1;
- max: 1 0;
- }
- }
- desc { "slide_begin";
- inherit: "default";
- }
- desc { "slide_end";
- inherit: "default";
- align: 1.0 0.5;
- rel1 {
- to_x: "slide_text_gap";
- to_y: "padding_left_top";
- relative: 0.0 1.0;
- }
- rel2 {
- to_x: "slide_text_gap";
- to_y: "padding_right_bottom";
- relative: 1.0 0.0;
- }
- }
- desc { "icon_text";
- inherit: "default";
- min: TABBAR_DEFAULT_ICON_TEXT_SIZE_INC;
- max: TABBAR_DEFAULT_ICON_TEXT_SIZE_INC;
- vis;
- rel1 {
- to_x: "padding_left_top";
- to_y: "padding_text_top";
- relative: 1.0 1.0;
- }
- rel2 {
- to: "padding_right_bottom";
- relative: 0.0 0.0;
- }
- text {
- style: "tabbar_icon_textblock_selected_slide_style";
- min: 1 1;
- max: 1 1;
- }
- }
- desc { "icon_text_slide_begin";
- inherit: "icon_text";
- }
- desc { "icon_text_slide_end";
- inherit: "icon_text";
- align: 1.0 0.5;
- rel1 {
- to_x: "slide_text_gap";
- to_y: "padding_text_top";
- relative: 0.0 1.0;
- }
- rel2 {
- to_x: "slide_text_gap";
- to_y: "padding_right_bottom";
- relative: 1.0 0.0;
- }
- }
- desc { "icon_text_land";
- inherit: "default";
- vis;
- min: TABBAR_DEFAULT_ICON_LAND_TEXT_SIZE_INC;
- max: TABBAR_DEFAULT_ICON_LAND_TEXT_SIZE_INC;
- text {
- style: "tabbar_textblock_selected_slide_style";
- min: 1 1;
- max: 1 1;
- }
- }
- desc { "icon_text_land_slide_begin";
- inherit: "icon_text_land";
- }
- desc { "icon_text_land_slide_end";
- inherit: "icon_text_land";
- align: 1.0 0.5;
- rel1 {
- to_x: "slide_text_gap";
- to_y: "padding_left_top";
- relative: 0.0 1.0;
- }
- rel2 {
- to_x: "slide_text_gap";
- to_y: "padding_right_bottom";
- relative: 1.0 0.0;
- }
- }
- }
- rect { "clipper_elm.swallow.icon";
- desc { "default";
- rel1.to: "base";
- rel2.to: "base";
- color_class: "toolbar_item/default/icon";
- }
- desc { "selected";
- inherit: "default";
- color_class: "toolbar_item/default/icon_selected";
- }
- desc { "pressed";
- inherit: "default";
- color_class: "toolbar_item/default/icon_pressed";
- }
- desc { "disabled";
- inherit: "default";
- color_class: "toolbar_item/default/icon_disabled";
- }
- }
- rect { "clipper_elm.text";
- desc { "default";
- fixed: 1 1;
- rel1.to: "padding_left_top";
- rel1.relative: 1.0 1.0;
- rel2.to: "padding_right_bottom";
- rel2.relative: 0.0 0.0;
- vis;
- }
- desc { "disabled";
- inherit: "default";
- }
- desc { "hidden";
- inherit: "default";
- hid;
- }
- }
- rect { "clipper_elm.text.slide";
- desc { "default";
- fixed: 1 1;
- rel1.to: "padding_left_top";
- rel1.relative: 1.0 1.0;
- rel2.to: "padding_right_bottom";
- rel2.relative: 0.0 0.0;
- hid;
- }
- desc { "visible";
- inherit: "default";
- vis;
- }
- }
- }
- inherit: "elm/toolbar/item/event/default";
- script {
- public selected = 0;
- public pressed = 0;
- public item_state = ITEM_STATE_ENABLED;
- public icon_text = 0;
- public mouse_down = 0;
- public multi_down = 0;
- public landscape = 0;
- public item_text = 0;
- public shrink_scroll_enabled = 0;
- public g_duration = 0;
- public g_stopslide = 0;
- public g_timer_id = 0;
- public g_anim_id = 0;
- public g_tb_w = 0;
- public g_tb_h = 24;
- public org_text = 0;
-
- public get_tb_width() {
- new x, y, w, h;
- get_geometry(PART:"elm.text.slide", x, y, w, h);
- set_int(g_tb_w, w);
- set_int(g_tb_h, h);
- get_geometry(PART:"clipper_elm.text.slide", x, y, w, h);
- set_int(org_text, w);
- }
- public slide_to_end_anim(val, Float:pos) {
- new slide_start_timer;
-
- if (get_int(g_stopslide)) return;
- if (get_int(icon_text)) {
- if (get_int(landscape))
- set_tween_state(PART:"elm.text.slide", pos*0.5, "icon_text_land_slide_begin", 0.0, "icon_text_land_slide_end", 0.0);
- else
- set_tween_state(PART:"elm.text.slide", pos*0.5, "icon_text_slide_begin", 0.0, "icon_text_slide_end", 0.0);
- } else {
- set_tween_state(PART:"elm.text.slide", pos*0.5, "slide_begin", 0.0, "slide_end", 0.0);
- }
- if (pos >= 1.0) {
- slide_start_timer = get_int(g_timer_id);
- if (slide_start_timer) {
- cancel_timer(slide_start_timer);
- set_int(g_timer_id, 0);
- }
- set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_INTER_DELAY_SEC, "start_slide", 0));
- set_int(g_anim_id, 0);
- }
- }
- public slide_to_end() {
- new slide_anim_id;
- if (get_int(g_stopslide)) return;
- slide_anim_id = get_int(g_anim_id);
- if (slide_anim_id) {
- cancel_anim(slide_anim_id);
- set_int(g_anim_id, 0);
- }
- set_int(g_anim_id, anim(get_float(g_duration), "slide_to_end_anim", 0));
- }
- public start_slide(val) {
- new buf[256];
- new buffer[TABBAR_COMMON_SLIDE_TEXT_MAX_LENGTH];
- new Float:len;
- set_int(g_stopslide, 0);
- get_text(PART:"elm.text", buf, 256);
- set_text(PART:"elm.text.slide", buf);
- get_tb_width();
- if (!get_float(g_duration)) {
- len = get_int(g_tb_w);
- set_float(g_duration, len / get_int(g_tb_h) * TABBAR_COMMON_SLIDE_SPEED_WEIGHT);
- }
- if(get_int(g_tb_w) > get_int(org_text)) {
- get_text(PART:"elm.text", buf, 256);
- snprintf(buffer, TABBAR_COMMON_SLIDE_TEXT_MAX_LENGTH, "%s", buf);
- strcat(buffer, TABBAR_COMMON_SLIDE_TEXT_CHAR_GAP);
- strcat(buffer, buf);
- strcat(buffer, TABBAR_COMMON_SLIDE_TEXT_CHAR_GAP);
- set_text(PART:"elm.text.slide", buffer);
-
- if (get_int(icon_text)) {
- if (get_int(landscape))
- set_state(PART:"elm.text.slide", "icon_text_land_slide_begin", 0.0);
- else
- set_state(PART:"elm.text.slide", "icon_text_slide_begin", 0.0);
- } else {
- set_state(PART:"elm.text.slide", "slide_begin", 0.0);
- }
-
- set_state(PART:"clipper_elm.text", "hidden", 0.0);
- set_state(PART:"clipper_elm.text.slide", "visible", 0.0);
- slide_to_end();
- }
- set_int(g_timer_id, 0);
- }
- public stop_slide() {
- new slide_start_timer;
- new slide_anim_id;
- set_int(g_stopslide, 1);
- set_float(g_duration, 0);
- slide_start_timer = get_int(g_timer_id);
- if (slide_start_timer) {
- cancel_timer(slide_start_timer);
- set_int(g_timer_id, 0);
- }
- slide_anim_id = get_int(g_anim_id);
- if (slide_anim_id) {
- cancel_anim(slide_anim_id);
- set_int(g_anim_id, 0);
- }
- if (get_int(icon_text)) {
- if (get_int(landscape))
- set_state(PART:"elm.text.slide", "icon_text_land", 0.0);
- else
- set_state(PART:"elm.text.slide", "icon_text", 0.0);
- } else {
- set_state(PART:"elm.text.slide", "default", 0.0);
- }
- set_state(PART:"clipper_elm.text", "default", 0.0);
- set_state(PART:"clipper_elm.text.slide", "default", 0.0);
- }
- }
- programs {
- program { "on_selected";
- action: STATE_SET "selected";
- target: "clipper_elm.swallow.icon";
- after: "selected_text";
- }
- program { "on_unselected";
- action: STATE_SET "default";
- target: "clipper_elm.swallow.icon";
- after: "unselected_text";
- }
- program { "on_pressed_key";
- after: "on_pressed";
- }
- program { "on_pressed";
- script {
- if ((get_int(item_state) != ITEM_STATE_DISABLED)
- && get_int(multi_down) == 0
- && get_int(mouse_down) == 0)
- {
- set_int(mouse_down, 1);
- set_state(PART:"bg_cover", "pressed", 0.0);
- if (!get_int(icon_text))
- set_state(PART:"elm.text", "text_pressed", 0.0);
- else if (!get_int(landscape))
- set_state(PART:"elm.text", "icon_text_pressed", 0.0);
- else
- set_state(PART:"elm.text", "icon_text_land_pressed", 0.0);
- set_state(PART:"clipper_elm.swallow.icon", "pressed", 0.0);
- set_int(pressed, 1);
- }
- }
- }
- program { "on_unpressed_key";
- after: "on_unpressed";
- }
- program { "on_unpressed";
- script {
- if ((get_int(item_state) != ITEM_STATE_DISABLED)
- && get_int(mouse_down) == 1)
- {
- set_int(mouse_down, 0);
- set_int(pressed, 0);
- set_state(PART:"bg_cover", "default", 0.0);
- if (get_int(selected))
- {
- if (!get_int(icon_text))
- set_state(PART:"elm.text", "text_selected", 0.0);
- else if (!get_int(landscape))
- set_state(PART:"elm.text", "icon_text_selected", 0.0);
- else
- set_state(PART:"elm.text", "icon_text_land_selected", 0.0);
- set_state(PART:"clipper_elm.swallow.icon", "selected", 0.0);
- }
- else
- {
- if (!get_int(icon_text))
- set_state(PART:"elm.text", "text_normal", 0.0);
- else if (!get_int(landscape))
- set_state(PART:"elm.text", "icon_text", 0.0);
- else
- set_state(PART:"elm.text", "icon_text_land", 0.0);
- set_state(PART:"clipper_elm.swallow.icon", "default", 0.0);
- }
- }
- }
- }
- program { "on_clicked";
- script {
- if (get_int(multi_down) == 0) {
- emit("elm,action,click", "elm");
- if (get_int(item_state) != ITEM_STATE_DISABLED)
- run_program(PROGRAM:"touch_sound");
- }
- }
- }
- program { "on_mouse_in";
- script {
- if (get_int(multi_down) == 0)
- emit("elm,mouse,in", "elm");
- }
- }
- program { "on_mouse_out";
- script {
- if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0))
- emit("elm,mouse,out", "elm");
- }
- }
- program { "on_enabled";
- script {
- set_int(item_state, ITEM_STATE_ENABLED);
- stop_slide();
- set_state(PART:"bg_cover", "default", 0.0);
- if (!get_int(icon_text)) {
- if (!get_int(selected))
- set_state(PART:"elm.text", "text_normal", 0.0);
- else
- set_state(PART:"elm.text", "text_selected", 0.0);
- } else if (!get_int(landscape)) {
- if (!get_int(selected))
- set_state(PART:"elm.text", "icon_text", 0.0);
- else
- set_state(PART:"elm.text", "icon_text_selected", 0.0);
- } else {
- if (!get_int(selected))
- set_state(PART:"elm.text", "icon_text_land", 0.0);
- else
- set_state(PART:"elm.text", "icon_text_land_selected", 0.0);
- }
- set_state(PART:"clipper_elm.text", "default", 0.0);
- set_state(PART:"clipper_elm.swallow.icon", "default", 0.0);
- if (get_int(selected))
- set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0));
- }
- }
- program { "on_disabled";
- script {
- set_int(item_state, ITEM_STATE_DISABLED);
- stop_slide();
- set_state(PART:"bg_cover", "disabled", 0.0);
- if (!get_int(icon_text))
- set_state(PART:"elm.text", "text_disabled", 0.0);
- else if (!get_int(landscape))
- set_state(PART:"elm.text", "icon_text_disabled", 0.0);
- else
- set_state(PART:"elm.text", "icon_text_land_disabled", 0.0);
- set_state(PART:"clipper_elm.text", "disabled", 0.0);
- set_state(PART:"clipper_elm.swallow.icon", "disabled", 0.0);
- }
- }
- program { "on_multi_down";
- script {
- set_int(multi_down, 1);
- }
- }
- program { "on_multi_cancel";
- script {
- set_int(multi_down, 0);
- }
- }
- program { "on_visible_text";
- script {
- set_int(item_text, 1);
- stop_slide();
- if (!get_int(icon_text))
- {
- if (get_int(selected))
- set_state(PART:"elm.text", "text_selected", 0.0);
- else
- set_state(PART:"elm.text", "text_normal", 0.0);
- set_state(PART:"padding_left_top", "padding_text", 0.0);
- set_state(PART:"padding_right_bottom", "padding_text", 0.0);
- }
- else
- {
- if (!get_int(landscape))
- {
- if (get_int(selected))
- set_state(PART:"elm.text", "icon_text_selected", 0.0);
- else
- set_state(PART:"elm.text", "icon_text", 0.0);
- set_state(PART:"padding_left_top", "icon_text", 0.0);
- set_state(PART:"padding_right_bottom", "icon_text", 0.0);
- set_state(PART:"elm.swallow.icon", "visible", 0.0);
- }
- else
- {
- if (get_int(selected))
- set_state(PART:"elm.text", "icon_text_land_selected", 0.0);
- else
- set_state(PART:"elm.text", "icon_text_land", 0.0);
- set_state(PART:"padding_left_top", "icon_text_land", 0.0);
- set_state(PART:"padding_right_bottom", "icon_text_land", 0.0);
- set_state(PART:"elm.swallow.icon", "visible_land", 0.0);
- }
- }
- if (get_int(selected))
- set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0));
- }
- }
- program { "on_hidden_text";
- script {
- set_int(item_text, 0);
- stop_slide();
- set_state(PART:"elm.text", "default", 0.0);
- }
- }
- program { "on_visible_icon";
- script {
- set_int(icon_text, 1);
- stop_slide();
- if (!get_int(landscape))
- {
- if (get_int(item_text))
- {
- set_state(PART:"elm.swallow.icon", "visible", 0.0);
- set_state(PART:"elm.text", "icon_text", 0.0);
- }
- else
- {
- set_state(PART:"elm.swallow.icon", "visible_icon_only", 0.0);
- }
- set_state(PART:"padding_left_top", "icon_text", 0.0);
- set_state(PART:"padding_right_bottom", "icon_text", 0.0);
- }
- else
- {
- if (get_int(item_text))
- {
- set_state(PART:"elm.swallow.icon", "visible_land", 0.0);
- set_state(PART:"elm.text", "icon_text_land", 0.0);
- }
- else
- {
- set_state(PART:"elm.swallow.icon", "visible_icon_only", 0.0);
- }
- set_state(PART:"padding_left_top", "icon_text_land", 0.0);
- set_state(PART:"padding_right_bottom", "icon_text_land", 0.0);
- }
- if (get_int(selected))
- set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0));
- }
- }
- program { "on_hidden_icon";
- script {
- set_int(icon_text, 0);
- stop_slide();
- set_state(PART:"elm.swallow.icon", "default", 0.0);
- set_state(PART:"elm.text", "text_normal", 0.0);
- set_state(PART:"padding_left_top", "padding_text", 0.0);
- set_state(PART:"padding_right_bottom", "padding_text", 0.0);
- if (get_int(selected))
- set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0));
- }
- }
- program { "on_tab_number_item";
- script {
- if (get_int(landscape)) {
- if (get_int(shrink_scroll_enabled))
- set_state(PART:"bg_base", "land_scroll", 0.0);
- else
- set_state(PART:"bg_base", "land", 0.0);
- } else {
- if (get_int(shrink_scroll_enabled))
- set_state(PART:"bg_base", "scroll", 0.0);
- else
- set_state(PART:"bg_base", "default", 0.0);
- }
- }
- }
- program { "selected_text";
- script{
- set_int(selected, 1);
- stop_slide();
- if (!get_int(icon_text))
- set_state(PART:"elm.text", "text_selected", 0.0);
- else if (!get_int(landscape))
- set_state(PART:"elm.text", "icon_text_selected", 0.0);
- else
- set_state(PART:"elm.text", "icon_text_land_selected", 0.0);
- set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0));
- }
- after: "selected_line_anim";
- }
- program { "unselected_text";
- script{
- set_int(selected, 0);
- if (!get_int(icon_text))
- set_state(PART:"elm.text", "text_normal", 0.0);
- else if (!get_int(landscape))
- set_state(PART:"elm.text", "icon_text", 0.0);
- else
- set_state(PART:"elm.text", "icon_text_land", 0.0);
- stop_slide();
- }
- after: "unselected_line_anim";
- }
- program { "selected_line_anim";
- action: STATE_SET "selected";
- transition: GLIDE_EASE_OUT(TABBAR_COMMON_SELECTED_LINE_SELECT_ANIM_TIME_INC);
- target: "selected_line";
- }
- program { "unselected_line_anim";
- action: STATE_SET "default";
- transition: GLIDE_EASE_OUT(TABBAR_COMMON_SELECTED_LINE_UNSELECT_ANIM_TIME_INC);
- target: "selected_line";
- }
- program { "touch_sound";
- action: RUN_PLUGIN "touch_sound";
- }
- program { "on_orient_90";
- after: "landscape_mode";
- }
- program { "on_orient_270";
- after: "landscape_mode";
- }
- program { "landscape_mode";
- script {
- if (!get_int(landscape)) {
- set_int(landscape, 1);
- stop_slide();
- if (get_int(shrink_scroll_enabled))
- set_state(PART:"bg_base", "land_scroll", 0.0);
- else
- set_state(PART:"bg_base", "land", 0.0);
-
- if (get_int(icon_text)) {
- set_state(PART:"padding_left_top", "icon_text_land", 0.0);
- set_state(PART:"padding_right_bottom", "icon_text_land", 0.0);
- set_state(PART:"elm.swallow.icon", "visible_land", 0.0);
- if (get_int(selected))
- {
- set_state(PART:"elm.text", "icon_text_land_selected", 0.0);
- set_state(PART:"clipper_elm.swallow.icon", "selected", 0.0);
- }
- else if (get_int(pressed))
- {
- set_state(PART:"elm.text", "icon_text_land_pressed", 0.0);
- set_state(PART:"clipper_elm.swallow.icon", "pressed", 0.0);
- }
- else if (get_int(item_state))
- {
- set_state(PART:"elm.text", "icon_text_land", 0.0);
- set_state(PART:"clipper_elm.swallow.icon", "disabled", 0.0);
- }
- else
- {
- set_state(PART:"elm.text", "icon_text_land", 0.0);
- set_state(PART:"clipper_elm.swallow.icon", "default", 0.0);
- }
- }
- if (get_int(selected))
- set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0));
- }
- }
- }
- program { "on_orient_0";
- after: "portrait_mode";
- }
- program { "on_orient_180";
- after: "portrait_mode";
- }
- program { "portrait_mode";
- script {
- if (get_int(landscape)) {
- set_int(landscape, 0);
- stop_slide();
- if (get_int(shrink_scroll_enabled))
- set_state(PART:"bg_base", "scroll", 0.0);
- else
- set_state(PART:"bg_base", "default", 0.0);
-
- if (get_int(icon_text)) {
- set_state(PART:"padding_left_top", "icon_text", 0.0);
- set_state(PART:"padding_right_bottom", "icon_text", 0.0);
- set_state(PART:"elm.swallow.icon", "visible", 0.0);
- if (get_int(selected))
- {
- set_state(PART:"elm.text", "icon_text_selected", 0.0);
- set_state(PART:"clipper_elm.swallow.icon", "selected", 0.0);
- }
- else if (get_int(pressed))
- {
- set_state(PART:"elm.text", "icon_text_pressed", 0.0);
- set_state(PART:"clipper_elm.swallow.icon", "pressed", 0.0);
- }
- else if (get_int(item_state))
- {
- set_state(PART:"elm.text", "icon_text", 0.0);
- set_state(PART:"clipper_elm.swallow.icon", "disabled", 0.0);
- }
- else
- {
- set_state(PART:"elm.text", "icon_text", 0.0);
- set_state(PART:"clipper_elm.swallow.icon", "default", 0.0);
- }
- }
- if (get_int(selected))
- set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0));
- }
- }
- }
- program { "on_shrink_scroll";
- script {
- set_int(shrink_scroll_enabled, 1);
- if (get_int(landscape))
- set_state(PART:"bg_base", "land_scroll", 0.0);
- else
- set_state(PART:"bg_base", "scroll", 0.0);
- }
- }
- program { "on_shrink_expand";
- after: "shrink_scroll_disabled";
- }
- program { "on_shrink_menu";
- after: "shrink_scroll_disabled";
- }
- program { "on_shrink_hide";
- after: "shrink_scroll_disabled";
- }
- program { "on_shrink_default";
- after: "shrink_scroll_disabled";
- }
- program { "shrink_scroll_disabled";
- script {
- set_int(shrink_scroll_enabled, 0);
- if (get_int(landscape))
- set_state(PART:"bg_base", "land", 0.0);
- else
- set_state(PART:"bg_base", "default", 0.0);
- }
- }
- program { "resize";
- signal: "resize";
- source: "*";
- script {
- stop_slide();
- if (get_int(selected))
- set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0));
- }
- }
- program { "on_order_item_default";
- }
- program { "on_order_item_first";
- }
- program { "on_order_item_last";
- }
- }
-}
-
-group { "elm/toolbar/object/default";
- parts {
- swallow { "elm.swallow.object"; // object group
- desc { "default";
- }
- }
- }
-}
-
-group { "elm/toolbar/base/tabbar_with_title";
- parts {
- spacer { "base";
- scale;
- desc { "default";
- }
- }
- rect { "base_bg";
- scale;
- desc { "default";
- rel1.to: "base";
- rel2.to: "base";
- rel2.offset: -1 -1;
- color_class: "toolbar/tabbar_with_title/bg";
- }
- }
- rect { "clipper_content";
- nomouse;
- scale;
- desc { "default";
- rel1.to: "base";
- rel2.to: "base";
- rel2.offset: -1 -1;
- }
- }
- swallow { "elm.swallow.content";
- clip: "clipper_content";
- scale;
- desc { "default";
- rel1.to: "base";
- rel2.to: "base";
- rel2.offset: -1 -1;
- }
- }
- }
-}
-
-group { "elm/toolbar/base/light_view";
- inherit: "elm/toolbar/base/tabbar_with_title";
- parts {
- rect { "base_bg";
- scale;
- desc { "default";
- rel1.to: "base";
- rel2.to: "base";
- rel2.offset: -1 -1;
- color_class: "toolbar/light_view/bg";
- }
- }
- }
-}
-
-group { "elm/toolbar/item/tabbar_with_title";
- images {
- image: "core_tab_selectbar.#.png" COMP;
- }
- nomouse;
- parts {
- spacer { "base";
- scale;
- desc { "default";
- }
- }
- rect { "bg_base";
- scale;
- desc { "default";
- rel1.to: "base";
- rel2.to: "base";
- min: TABBAR_COMMON_DEFAULT_ITEM_SIZE_INC;
- color_class: "toolbar_item/tabbar_with_title/bg";
- }
- desc { "land";
- inherit: "default";
- min: TABBAR_COMMON_LANDSCAPE_DEFAULT_ITEM_SIZE_INC;
- }
- desc { "scroll";
- inherit: "default";
- min: TABBAR_COMMON_SCROLL_ITEM_SIZE_INC;
- }
- desc { "land_scroll";
- inherit: "default";
- min: TABBAR_COMMON_LANDSCAPE_SCROLL_ITEM_SIZE_INC;
- }
- }
- rect { "bg_cover";
- scale;
- desc { "default";
- rel1.to: "base";
- rel2.to: "base";
- hid;
- }
- desc { "pressed";
- inherit: "default";
- vis;
- color_class: "toolbar_item/tabbar_with_title/effect";
- }
- desc { "disabled";
- inherit: "default";
- hid;
- }
- desc { "selected";
- inherit: "default";
- hid;
- }
- }
- spacer { "padding_selected_line_top";
- scale;
- desc { "default";
- rel1 {
- to: "elm.text";
- relative: 0.0 1.0;
- }
- rel2 {
- to: "elm.text";
- relative: 1.0 1.0;
- }
- fixed: 0 1;
- min: TABBAR_COMMON_SELECTED_LINE_TOP_PADDING_SIZE_INC;
- align: 0.5 0.0;
- }
- }
- image { "selected_line";
- scale;
- desc { "default";
- min: 0 TABBAR_COMMON_SELECTED_LINE_HEIGHT_INC;
- max: 0 TABBAR_COMMON_SELECTED_LINE_HEIGHT_INC;
- rel1 {
- to: "padding_selected_line_top";
- relative: 0.0 1.0;
- }
- rel2 {
- to: "padding_selected_line_top";
- relative: 1.0 1.0;
- }
- image.normal: "core_tab_selectbar.#.png";
- fixed: 0 1;
- color: 255 255 255 0;
- color_class: "toolbar_item/tabbar_with_title/underline";
- align: 0.5 0.0;
- }
- desc { "selected";
- inherit: "default";
- max: -1 TABBAR_COMMON_SELECTED_LINE_HEIGHT_INC;
- color: 255 255 255 255;
- }
- }
- spacer { "padding_left_top";
- scale;
- desc { "default";
- align: 0.0 0.0;
- rel2.relative: 0.0 0.0;
- min: 0 0;
- fixed: 1 1;
- }
- desc { "padding_text";
- inherit: "default";
- min: TABBAR_TITLE_TEXT_LEFT_TOP_PADDING_SIZE_INC;
- }
- desc { "icon_text";
- inherit: "default";
- min: TABBAR_TITLE_ICON_TEXT_LAND_LEFT_TOP_PADDING_SIZE_INC;
- }
- }
- spacer { "padding_right_bottom";
- scale;
- desc { "default";
- align: 1.0 1.0;
- rel1.relative: 1.0 1.0;
- fixed: 1 1;
- }
- desc { "padding_text";
- inherit: "default";
- min: TABBAR_TITLE_TEXT_RIGHT_BOTTOM_PADDING_SIZE_INC;
- }
- desc { "icon_text";
- inherit: "default";
- min: TABBAR_TITLE_ICON_TEXT_LAND_RIGHT_BOTTOM_PADDING_SIZE_INC;
- }
- }
- spacer { "padding_icon_text";
- scale;
- desc { "default";
- min: 0 0;
- fixed: 1 0;
- align: 1.0 0.5;
- rel1 {
- to_x: "selected_line";
- relative: 0.0 0.0;
- }
- rel2 {
- to_x: "selected_line";
- relative: 0.0 1.0;
- }
- }
- desc { "visible";
- inherit: "default";
- }
- }
- spacer { "padding_text_left";
- scale;
- desc { "default";
- min: TABBAR_TITLE_TEXT_LEFT_PADDING_SIZE_INC;
- fixed: 1 0;
- align: 1.0 0.5;
- rel1 {
- to_x: "elm.text";
- relative: 0.0 0.0;
- }
- rel2 {
- to_x: "elm.text";
- relative: 0.0 1.0;
- }
- }
- }
- swallow { "elm.swallow.icon";
- scale;
- clip: "clipper_elm.swallow.icon";
- desc { "default";
- hid;
- min: TABBAR_TITLE_ICON_SIZE_INC;
- max: TABBAR_TITLE_ICON_SIZE_INC;
- fixed: 1 1;
- }
- desc { "visible";
- inherit: "default";
- vis;
- align: 1.0 1.0;
- rel1 {
- to_x: "padding_text_left";
- to_y: "elm.text";
- relative: 0.0 1.0;
- }
- rel2 {
- to_x: "padding_text_left";
- to_y: "elm.text";
- relative: 0.0 1.0;
- }
- }
- desc { "visible_icon_only";
- inherit: "default";
- vis;
- rel1 {
- to: "padding_left_top";
- relative: 1.0 1.0;
- }
- rel2 {
- to: "padding_right_bottom";
- relative: 0.0 0.0;
- }
- }
- }
- textblock { "elm.text";
- scale;
- clip: "clipper_elm.text";
- desc { "default";
- hid;
- min: TABBAR_TITLE_TEXT_SIZE_INC;
- max: TABBAR_TITLE_TEXT_SIZE_INC;
- rel1 {
- to: "padding_left_top";
- relative: 1.0 1.0;
- }
- rel2 {
- to: "padding_right_bottom";
- relative: 0.0 0.0;
- }
- fixed: 1 1;
- }
- desc { "text_normal";
- inherit: "default";
- vis;
- text {
- style: "tabbar_with_title_textblock_style";
- min: 0 1;
- max: 1 0;
- }
- }
- desc { "text_pressed";
- inherit: "text_normal";
- text.style: "tabbar_with_title_textblock_pressed_style";
- }
- desc { "text_selected";
- inherit: "text_normal";
- text.style: "tabbar_with_title_textblock_selected_style";
- }
- desc { "text_disabled";
- inherit: "text_normal";
- text.style: "tabbar_with_title_textblock_disabled_style";
- }
- }
- spacer { "slide_text_gap";
- scale;
- desc { "default";
- fixed: 1 1;
- min: TABBAR_COMMON_SLIDE_TEXT_GAP 0;
- max: TABBAR_COMMON_SLIDE_TEXT_GAP -1;
- align: 1.0 0.5;
- rel1.relative: 0.0 0.0;
- rel2.relative: 0.0 1.0;
- rel1 {
- to: "padding_left_top";
- relative: 1.0 1.0;
- }
- rel2 {
- to_x: "padding_left_top";
- to_y: "padding_right_bottom";
- relative: 1.0 0.0;
- }
- }
- }
- textblock { "elm.text.slide";
- scale;
- clip: "clipper_elm.text.slide";
- desc { "default";
- fixed: 1 1;
- align: 0.0 0.5;
- min: TABBAR_TITLE_TEXT_SIZE_INC;
- max: TABBAR_TITLE_TEXT_SIZE_INC;
- rel1 {
- to: "padding_left_top";
- relative: 1.0 1.0;
- }
- rel2 {
- to: "padding_right_bottom";
- relative: 0.0 0.0;
- }
- text {
- style: "tabbar_with_title_textblock_selected_slide_style";
- min: 1 1;
- max: 1 0;
- }
- }
- desc { "slide_begin";
- inherit: "default";
- }
- desc { "slide_end";
- inherit: "default";
- align: 1.0 0.5;
- rel1 {
- to_x: "slide_text_gap";
- to_y: "padding_left_top";
- relative: 0.0 1.0;
- }
- rel2 {
- to_x: "slide_text_gap";
- to_y: "padding_right_bottom";
- relative: 1.0 0.0;
- }
- }
- }
- rect { "clipper_elm.swallow.icon";
- desc { "default";
- color_class: "toolbar_item/tabbar_with_title/icon";
- }
- desc { "selected";
- inherit: "default";
- color_class: "toolbar_item/tabbar_with_title/icon_selected";
- }
- desc { "pressed";
- inherit: "default";
- color_class: "toolbar_item/tabbar_with_title/icon_pressed";
- }
- desc { "disabled";
- inherit: "default";
- color_class: "toolbar_item/tabbar_with_title/icon_disabled";
- }
- }
- rect { "clipper_elm.text";
- desc { "default";
- fixed: 1 1;
- rel1 {
- to: "padding_left_top";
- relative: 1.0 1.0;
- }
- rel2 {
- to: "padding_right_bottom";
- relative: 0.0 0.0;
- }
- vis;
- }
- desc { "disabled";
- inherit: "default";
- }
- desc { "hidden";
- inherit: "default";
- hid;
- }
- }
- rect { "clipper_elm.text.slide";
- desc { "default";
- fixed: 1 1;
- rel1 {
- to: "padding_left_top";
- relative: 1.0 1.0;
- }
- rel2 {
- to: "padding_right_bottom";
- relative: 0.0 0.0;
- }
- hid;
- }
- desc { "visible";
- inherit: "default";
- vis;
- }
- }
- }
- inherit: "elm/toolbar/item/event/default";
- script {
- public selected = 0;
- public pressed = 0;
- public item_state = ITEM_STATE_ENABLED;
- public icon_text = 0;
- public mouse_down = 0;
- public multi_down = 0;
- public landscape = 0;
- public item_text = 0;
- public shrink_scroll_enabled = 0;
- public g_duration = 0;
- public g_stopslide = 0;
- public g_timer_id = 0;
- public g_anim_id = 0;
- public g_tb_w = 0;
- public g_tb_h = 24;
- public org_text = 0;
-
- public get_tb_width() {
- new x, y, w, h;
- get_geometry(PART:"elm.text.slide", x, y, w, h);
- set_int(g_tb_w, w);
- set_int(g_tb_h, h);
- get_geometry(PART:"clipper_elm.text.slide", x, y, w, h);
- set_int(org_text, w);
- }
- public slide_to_end_anim(val, Float:pos) {
- new slide_start_timer;
-
- if (get_int(g_stopslide)) return;
- set_tween_state(PART:"elm.text.slide", pos*0.5, "slide_begin", 0.0, "slide_end", 0.0);
-
- if (pos >= 1.0) {
- slide_start_timer = get_int(g_timer_id);
- if (slide_start_timer) {
- cancel_timer(slide_start_timer);
- set_int(g_timer_id, 0);
- }
- set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_INTER_DELAY_SEC, "start_slide", 0));
- set_int(g_anim_id, 0);
- }
- }
- public slide_to_end() {
- new slide_anim_id;
- if (get_int(g_stopslide)) return;
- slide_anim_id = get_int(g_anim_id);
- if (slide_anim_id) {
- cancel_anim(slide_anim_id);
- set_int(g_anim_id, 0);
- }
- set_int(g_anim_id, anim(get_float(g_duration), "slide_to_end_anim", 0));
- }
- public start_slide(val) {
- new buf[256];
- new buffer[TABBAR_COMMON_SLIDE_TEXT_MAX_LENGTH];
- new Float:len;
- set_int(g_stopslide, 0);
- get_text(PART:"elm.text", buf, 256);
- set_text(PART:"elm.text.slide", buf);
- get_tb_width();
- if (!get_float(g_duration)) {
- len = get_int(g_tb_w);
- set_float(g_duration, len / get_int(g_tb_h) * TABBAR_COMMON_SLIDE_SPEED_WEIGHT);
- }
- if(get_int(g_tb_w) > get_int(org_text)) {
- get_text(PART:"elm.text", buf, 256);
- snprintf(buffer, TABBAR_COMMON_SLIDE_TEXT_MAX_LENGTH, "%s", buf);
- strcat(buffer, TABBAR_COMMON_SLIDE_TEXT_CHAR_GAP);
- strcat(buffer, buf);
- strcat(buffer, TABBAR_COMMON_SLIDE_TEXT_CHAR_GAP);
- set_text(PART:"elm.text.slide", buffer);
-
- set_state(PART:"elm.text.slide", "slide_begin", 0.0);
-
- set_state(PART:"clipper_elm.text", "hidden", 0.0);
- set_state(PART:"clipper_elm.text.slide", "visible", 0.0);
- slide_to_end();
- }
- set_int(g_timer_id, 0);
- }
- public stop_slide() {
- new slide_start_timer;
- new slide_anim_id;
- set_int(g_stopslide, 1);
- set_float(g_duration, 0);
- slide_start_timer = get_int(g_timer_id);
- if (slide_start_timer) {
- cancel_timer(slide_start_timer);
- set_int(g_timer_id, 0);
- }
- slide_anim_id = get_int(g_anim_id);
- if (slide_anim_id) {
- cancel_anim(slide_anim_id);
- set_int(g_anim_id, 0);
- }
- set_state(PART:"elm.text.slide", "default", 0.0);
- set_state(PART:"clipper_elm.text", "default", 0.0);
- set_state(PART:"clipper_elm.text.slide", "default", 0.0);
- }
- }
- programs {
- program { "on_selected";
- action: STATE_SET "selected";
- target: "clipper_elm.swallow.icon";
- after: "selected_text";
- }
- program { "on_unselected";
- action: STATE_SET "default";
- target: "clipper_elm.swallow.icon";
- after: "unselected_text";
- }
- program { "on_pressed_key";
- after: "on_pressed";
- }
- program { "on_pressed";
- script {
- if ((get_int(item_state) != ITEM_STATE_DISABLED)
- && get_int(multi_down) == 0
- && get_int(mouse_down) == 0)
- {
- set_int(mouse_down, 1);
- set_state(PART:"bg_cover", "pressed", 0.0);
- set_state(PART:"elm.text", "text_pressed", 0.0);
- set_state(PART:"clipper_elm.swallow.icon", "pressed", 0.0);
- set_int(pressed, 1);
- }
- }
- }
- program { "on_unpressed_key";
- after: "on_unpressed";
- }
- program { "on_unpressed";
- script {
- if ((get_int(item_state) != ITEM_STATE_DISABLED)
- && get_int(mouse_down) == 1)
- {
- set_int(mouse_down, 0);
- set_int(pressed, 0);
- set_state(PART:"bg_cover", "default", 0.0);
- if (get_int(selected))
- {
- set_state(PART:"elm.text", "text_selected", 0.0);
- set_state(PART:"clipper_elm.swallow.icon", "selected", 0.0);
- }
- else
- {
- set_state(PART:"elm.text", "text_normal", 0.0);
- set_state(PART:"clipper_elm.swallow.icon", "default", 0.0);
- }
- }
- }
- }
- program { "on_clicked";
- script {
- if (get_int(multi_down) == 0) {
- emit("elm,action,click", "elm");
- if (get_int(item_state) != ITEM_STATE_DISABLED)
- run_program(PROGRAM:"touch_sound");
- }
- }
- }
- program { "on_mouse_in";
- script {
- if (get_int(multi_down) == 0)
- emit("elm,mouse,in", "elm");
- }
- }
- program { "on_mouse_out";
- script {
- if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0))
- emit("elm,mouse,out", "elm");
- }
- }
- program { "selected_text";
- script{
- set_int(selected, 1);
- stop_slide();
- set_state(PART:"elm.text", "text_selected", 0.0);
- if (get_int(selected))
- set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0));
- }
- after: "selected_line_anim";
- }
- program { "selected_line_anim";
- action: STATE_SET "selected";
- transition: GLIDE_EASE_OUT(TABBAR_COMMON_SELECTED_LINE_SELECT_ANIM_TIME_INC);
- target: "selected_line";
- }
- program { "unselected_text";
- script{
- set_int(selected, 0);
- set_state(PART:"elm.text", "text_normal", 0.0);
- stop_slide();
- }
- after: "unselected_line_anim";
- }
- program { "unselected_line_anim";
- action: STATE_SET "default";
- transition: GLIDE_EASE_OUT(TABBAR_COMMON_SELECTED_LINE_UNSELECT_ANIM_TIME_INC);
- target: "selected_line";
- }
- program { "touch_sound";
- action: RUN_PLUGIN "touch_sound";
- }
- program { "on_enabled";
- script {
- set_int(item_state, ITEM_STATE_ENABLED);
- stop_slide();
- set_state(PART:"bg_cover", "default", 0.0);
- if (!get_int(selected))
- set_state(PART:"elm.text", "text_normal", 0.0);
- else
- set_state(PART:"elm.text", "text_selected", 0.0);
- set_state(PART:"clipper_elm.text", "default", 0.0);
- set_state(PART:"clipper_elm.swallow.icon", "default", 0.0);
- if (get_int(selected))
- set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0));
- }
- }
- program { "on_disabled";
- script {
- set_int(item_state, ITEM_STATE_DISABLED);
- stop_slide();
- set_state(PART:"bg_cover", "disabled", 0.0);
- set_state(PART:"elm.text", "text_disabled", 0.0);
- set_state(PART:"clipper_elm.text", "disabled", 0.0);
- set_state(PART:"clipper_elm.swallow.icon", "disabled", 0.0);
- }
- }
- program { "on_multi_down";
- script {
- set_int(multi_down, 1);
- }
- }
- program { "on_multi_cancel";
- script {
- set_int(multi_down, 0);
- }
- }
- program { "on_visible_text";
- script {
- set_int(item_text, 1);
- stop_slide();
- if (!get_int(selected))
- set_state(PART:"elm.text", "text_normal", 0.0);
- else
- set_state(PART:"elm.text", "text_selected", 0.0);
- if (!get_int(icon_text))
- {
- set_state(PART:"padding_left_top", "padding_text", 0.0);
- set_state(PART:"padding_right_bottom", "padding_text", 0.0);
- }
- else
- {
- set_state(PART:"elm.swallow.icon", "visible", 0.0);
- set_state(PART:"padding_left_top", "icon_text", 0.0);
- set_state(PART:"padding_right_bottom", "icon_text", 0.0);
- }
- if (get_int(selected))
- set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0));
- }
- }
- program { "on_hidden_text";
- script {
- set_int(item_text, 0);
- stop_slide();
- set_state(PART:"elm.text", "default", 0.0);
- }
- }
- program { "on_visible_icon";
- script {
- set_int(icon_text, 1);
- stop_slide();
- if (get_int(item_text))
- set_state(PART:"elm.swallow.icon", "visible", 0.0);
- else
- set_state(PART:"elm.swallow.icon", "visible_icon_only", 0.0);
- set_state(PART:"padding_left_top", "icon_text", 0.0);
- set_state(PART:"padding_right_bottom", "icon_text", 0.0);
- if (get_int(selected))
- set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0));
- }
- }
- program { "on_hidden_icon";
- signal: "elm,state,icon,hidden";
- source: "elm";
- script {
- set_int(icon_text, 0);
- stop_slide();
- if (!get_int(selected))
- set_state(PART:"elm.text", "text_normal", 0.0);
- else
- set_state(PART:"elm.text", "text_selected", 0.0);
- set_state(PART:"elm.swallow.icon", "default", 0.0);
- set_state(PART:"padding_left_top", "padding_text", 0.0);
- set_state(PART:"padding_right_bottom", "padding_text", 0.0);
- if (get_int(selected))
- set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0));
- }
- }
- program { "on_tab_number_item";
- script {
- if (get_int(landscape)) {
- if (get_int(shrink_scroll_enabled))
- set_state(PART:"bg_base", "land_scroll", 0.0);
- else
- set_state(PART:"bg_base", "land", 0.0);
- } else {
- if (get_int(shrink_scroll_enabled))
- set_state(PART:"bg_base", "scroll", 0.0);
- else
- set_state(PART:"bg_base", "default", 0.0);
- }
- }
- }
- program { "on_orient_90";
- after: "landscape_mode";
- }
- program { "on_orient_270";
- after: "landscape_mode";
- }
- program { "landscape_mode";
- script {
- if (!get_int(landscape)) {
- set_int(landscape, 1);
- stop_slide();
- if (get_int(shrink_scroll_enabled))
- set_state(PART:"bg_base", "land_scroll", 0.0);
- else
- set_state(PART:"bg_base", "land", 0.0);
- if (get_int(selected))
- set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0));
- }
- }
- }
- program { "on_orient_0";
- after: "portrait_mode";
- }
- program { "on_orient_180";
- after: "portrait_mode";
- }
- program { "portrait_mode";
- script {
- if (get_int(landscape)) {
- set_int(landscape, 0);
- stop_slide();
- if (get_int(shrink_scroll_enabled))
- set_state(PART:"bg_base", "scroll", 0.0);
- else
- set_state(PART:"bg_base", "default", 0.0);
- if (get_int(selected))
- set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0));
- }
- }
- }
- program { "on_shrink_scroll";
- script {
- set_int(shrink_scroll_enabled, 1);
- if (get_int(landscape))
- set_state(PART:"bg_base", "land_scroll", 0.0);
- else
- set_state(PART:"bg_base", "scroll", 0.0);
- }
- }
- program { "on_shrink_expand";
- after: "shrink_scroll_disabled";
- }
- program { "on_shrink_menu";
- after: "shrink_scroll_disabled";
- }
- program { "on_shrink_hide";
- after: "shrink_scroll_disabled";
- }
- program { "on_shrink_default";
- after: "shrink_scroll_disabled";
- }
- program { "shrink_scroll_disabled";
- script {
- set_int(shrink_scroll_enabled, 0);
- if (get_int(landscape))
- set_state(PART:"bg_base", "land", 0.0);
- else
- set_state(PART:"bg_base", "default", 0.0);
- }
- }
- program { "resize";
- signal: "resize";
- source: "*";
- script {
- stop_slide();
- if (get_int(selected))
- set_int(g_timer_id, timer(TABBAR_COMMON_SLIDE_START_DELAY_SEC, "start_slide", 0));
- }
- }
- program { "on_order_item_default";
- }
- program { "on_order_item_first";
- }
- program { "on_order_item_last";
- }
- }
-}
-
-group { "elm/toolbar/base/navigationbar";
- parts {
- rect { "base";
- scale;
- desc { "default";
- min: 0 TOOLBAR_NAVI_HEIGHT_INC;
- color_class: "toolbar/navigationbar/bg";
- }
- }
- spacer { "padding_left";
- type: SPACER;
- nomouse;
- scale;
- desc { "default";
- min: TOOLBAR_NAVI_PADDING_INC 0;
- fixed: 1 0;
- rel1.to: "base";
- rel2.relative: 0.0 1.0;
- rel2.to: "base";
- align: 0.0 0.0;
- }
- desc { "hidden";
- inherit: "default";
- min: 0 0;
- }
- }
- rect { "divider";
- nomouse;
- desc { "default";
- min: 0 TOOLBAR_NAVI_DIVIDER_HEIGHT_INC;
- fixed: 0 1;
- align: 0.0 0.0;
- rel1.to: "base";
- rel2.relative: 1.0 0.0;
- rel2.to: "base";
- color_class: "toolbar/navigationbar/divider";
- }
- }
- rect { "clipper_elm.swallow.content";
- nomouse;
- scale;
- desc { "default";
- rel1.to: "base";
- rel2.to: "base";
- rel2.offset: -1 -1;
- }
- }
- swallow { "elm.swallow.content";
- clip: "clipper_elm.swallow.content";
- desc { "default";
- rel1 {
- relative: 1.0 1.0;
- to_x: "padding_left";
- to_y: "divider";
- }
- rel2.to: "base";
- }
- }
- }
-}
-
-group { "elm/toolbar/item/navigationbar";
- images {
- set {
- name: "core_navigation_bar_bg";
- image {
- image: "core_navigation_bar_bg.png" COMP;
- }
- }
- set {
- name: "core_navigation_bar_icon_arrow";
- image {
- image: "core_navigation_bar_icon_arrow.png" COMP;
- }
- }
- image: "core_navi_press.#.png" COMP;
- }
- data.item: "transition_animation_on" "0";
- nomouse;
- parts {
- rect { "bg_base";
- scale;
- desc { "default";
- color_class: "toolbar_item/navigationbar/bg";
- }
- }
- spacer { "padding_icon_arrow";
- scale;
- desc { "default";
- min: TOOLBAR_NAVI_ICON_ARROW_WIDTH_INC 0;
- fixed: 1 0;
- rel1.relative: 1.0 0.0;
- rel1.to: "bg_base";
- rel2.relative: 1.0 1.0;
- rel2.to: "bg_base";
- align: 1.0 0.5;
- }
- }
- image { "icon_arrow";
- type: IMAGE;
- scale;
- desc { "default";
- min: TOOLBAR_NAVI_ICON_ARROW_WIDTH_INC TOOLBAR_NAVI_ICON_ARROW_HEIGHT_INC;
- fixed: 1 1;
- color_class: "toolbar_item/navigationbar/icon";
- rel1.to: "padding_icon_arrow";
- rel2.to: "padding_icon_arrow";
- vis;
- image.normal: "core_navigation_bar_icon_arrow";
- }
- desc { "hidden";
- inherit: "default";
- hid;
- }
- desc { "rtl";
- inherit: "default";
- map.on: 1;
- map.rotation.y: 180.0;
- }
- }
- spacer { "base";
- scale;
- desc { "default";
- rel2.to: "padding_icon_arrow";
- rel2.relative: 0.0 1.0;
- }
- }
- image { "press_effect";
- scale;
- desc { "default";
- rel1.to: "elm.text";
- rel1.offset: -14 -6;
- rel2.to: "elm.text";
- rel2.offset: 14 9;
- image.normal: "core_navi_press.#.png";
- color: 0 0 0 0;
- color_class: "toolbar_item/navigationbar/effect";
- hid;
- }
- desc { "ready";
- inherit: "default";
- vis;
- }
- desc { "pressed";
- inherit: "ready";
- color: 255 255 255 255;
- }
- }
- textblock { "elm.text";
- scale;
- clip: "clipper_elm.text";
- desc { "default";
- align: 0.0 0.5;
- rel2 {
- relative: 0.0 1.0;
- to: "padding_icon_arrow";
- }
- text {
- style: "tabbar_navigationbar_textblock_style";
- min: 1 1;
- max: 1 1;
- align: 0.0 0.5;
- }
- }
- desc { "pressed";
- inherit: "default";
- text.style: "tabbar_navigationbar_textblock_pressed_style";
- }
- desc { "disabled";
- inherit: "default";
- text.style: "tabbar_navigationbar_textblock_disabled_style";
- }
- desc { "selected";
- inherit: "default";
- text.style: "tabbar_navigationbar_textblock_selected_style";
- }
- }
- rect { "clipper_elm.text";
- desc { "default";
- color: 255 255 255 255;
- }
- desc { "animation";
- color: 255 255 255 0;
- }
- desc { "disabled";
- color: 255 255 255 255;
- }
- }
- image { "padding_right";
- scale;
- desc { "default";
- min: TOOLBAR_NAVI_ICON_ARROW_WIDTH_INC 0;
- fixed: 1 0;
- hid;
- rel1.relative: 1.0 0.0;
- rel1.to: "bg_base";
- rel2.relative: 1.0 1.0;
- rel2.to: "bg_base";
- align: 1.0 1.0;
- color: 61 185 204 255;
- image.normal: "core_navigation_bar_bg";
- }
- desc { "hidden";
- inherit: "default";
- hid;
- }
- }
- }
- inherit: "elm/toolbar/item/event/default";
- script {
- public item_state = ITEM_STATE_ENABLED;
- public mouse_down = 0;
- public multi_down = 0;
- public selected = 0;
- public animate = 0;
- public mirrored_state = 0;
- }
- programs {
- program { "pressed_effect";
- script {
- run_program(PROGRAM:"pressed_effect3");
- run_program(PROGRAM:"pressed_effect4");
- }
- }
- program { "pressed_effect3";
- action: STATE_SET "pressed";
- target: "press_effect";
- transition: GLIDE_EASE_OUT(0.3);
- after: "pressed_effect5";
- }
- program { "pressed_effect4";
- action: STATE_SET "pressed";
- target: "elm.text";
- transition: GLIDE_EASE_OUT(0.3);
- }
- program { "pressed_effect5";
- script {
- set_int(animate, 0);
- if (get_int(mouse_down) == 0) {
- run_program(PROGRAM:"unpressed_effect");
- }
- }
- }
- program { "unpressed_effect";
- script {
- run_program(PROGRAM:"unpressed_effect2");
- run_program(PROGRAM:"unpressed_effect3");
- }
- }
- program { "unpressed_effect2";
- action: STATE_SET "ready";
- target: "press_effect";
- transition: GLIDE_EASE_OUT(0.45);
- after: "unpressed_effect3";
- }
- program { "unpressed_effect3";
- script {
- if (get_int(item_state) == ITEM_STATE_DISABLED)
- set_state(PART:"elm.text", "disabled",0.0);
- else {
- if (get_int(selected))
- set_state(PART:"elm.text", "selected", 0.0);
- else
- set_state(PART:"elm.text", "default", 0.0);
- }
- }
- }
-
- program { "on_pressed_key";
- after: "on_pressed";
- }
- program { "on_pressed";
- script {
- if ((get_int(item_state) != ITEM_STATE_DISABLED)
- && get_int(multi_down) == 0
- && get_int(mouse_down) == 0)
- {
- set_int(mouse_down, 1);
- set_int(animate, 1);
- run_program(PROGRAM:"pressed_effect");
- }
- }
- }
- program { "on_unpressed_key";
- after: "on_unpressed";
- }
- program { "on_unpressed";
- script {
- if ((get_int(item_state) != ITEM_STATE_DISABLED)
- && get_int(mouse_down) == 1)
- {
- set_int(mouse_down, 0);
- if (get_int(animate) == 0) {
- run_program(PROGRAM:"unpressed_effect");
- }
- }
- }
- }
- program { "on_clicked";
- script {
- if (get_int(multi_down) == 0) {
- emit("elm,action,click", "elm");
-
- if (get_int(item_state) != ITEM_STATE_DISABLED) {
- run_program(PROGRAM:"touch_sound");
- }
- }
- }
- }
- program { "touch_sound";
- action: RUN_PLUGIN "touch_sound";
- }
- program { "on_mouse_in";
- script {
- if (get_int(multi_down) == 0)
- emit("elm,mouse,in", "elm");
- }
- }
- program { "on_mouse_out";
- script {
- if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0))
- emit("elm,mouse,out", "elm");
- }
- }
- program { "on_disabled";
- script {
- set_int(item_state, ITEM_STATE_DISABLED);
- set_state(PART:"bg_base", "disabled", 0.0);
- set_state(PART:"elm.text", "disabled", 0.0);
- set_state(PART:"clipper_elm.text", "disabled", 0.0);
- set_int(selected, 0);
- }
- }
- program { "on_multi_down";
- script{
- set_int(multi_down, 1);
- }
- }
- program { "on_multi_cancel";
- script {
- set_int(multi_down, 0);
- }
- }
- program { "on_enabled";
- script {
- set_int(item_state, ITEM_STATE_ENABLED);
- set_state(PART:"bg_base", "default", 0.0);
- set_state(PART:"elm.text", "default", 0.0);
- set_state(PART:"clipper_elm.text", "default", 0.0);
- set_int(selected, 0);
- }
- }
- program { "on_order_item_default";
- after: "visible_icon_arrow";
- }
- program { "on_order_item_first";
- after: "visible_icon_arrow";
- }
- program { "on_order_item_last";
- after: "hidden_icon_arrow";
- }
- program { "visible_icon_arrow";
- script {
- if (get_int(mirrored_state))
- set_state(PART:"icon_arrow", "rtl", 0.0);
- else
- set_state(PART:"icon_arrow", "default", 0.0);
- set_state(PART:"padding_right", "default", 0.0);
- if (get_int(item_state) != ITEM_STATE_DISABLED) {
- set_state(PART:"elm.text", "default", 0.0);
- set_int(selected, 0);
- }
- }
- }
- program { "hidden_icon_arrow";
- script {
- set_state(PART:"icon_arrow", "hidden", 0.0);
- set_state(PART:"padding_right", "hidden", 0.0);
- if (get_int(item_state) != ITEM_STATE_DISABLED) {
- set_state(PART:"elm.text", "selected", 0.0);
- set_int(selected, 1);
- }
- }
- }
- program { "on_selected";
- script {
- if (get_int(item_state) != ITEM_STATE_DISABLED) {
- set_state(PART:"elm.text", "selected", 0.0);
- set_int(selected, 1);
- }
- }
- }
- program { "on_unselected";
- script {
- if (get_int(item_state) != ITEM_STATE_DISABLED) {
- set_state(PART:"elm.text", "default", 0.0);
- set_int(selected, 0);
- }
- }
- }
- program { "rtl_mirrored";
- signal: "edje,state,rtl";
- source: "edje";
- script {
- set_int(mirrored_state, 1);
- }
- }
- program { "ltr_mirrored";
- signal: "edje,state,ltr";
- source: "edje";
- script {
- set_int(mirrored_state, 0);
- }
- }
- program { "on_tab_number_item";
- }
- program { "on_visible_text";
- }
- program { "on_hidden_text";
- }
- program { "on_visible_icon";
- }
- program { "on_hidden_icon";
- }
- program { "on_orient_0";
- }
- program { "on_orient_90";
- }
- program { "on_orient_180";
- }
- program { "on_orient_270";
- }
- program { "on_shrink_scroll";
- }
- program { "on_shrink_expand";
- }
- program { "on_shrink_menu";
- }
- program { "on_shrink_hide";
- }
- program { "on_shrink_default";
- }
- }
-}
-
-group { "elm/toolbar/more/default";
- alias:"elm/toolbar/more/tabbar";
- alias:"elm/toolbar/more/tabbar/item_with_title";
- alias:"elm/toolbar/more/tabbar_with_title";
- alias:"elm/toolbar/more/navigationbar";
- parts {
- swallow { "elm.swallow.content";
- desc { "default";
- hid;
- }
- }
- swallow { "elm.swallow.content2";
- desc { "default";
- hid;
- }
- }
- }
-}
-
-group { "elm/toolbar/item/light_view";
- inherit: "elm/toolbar/item/tabbar_with_title";
- parts {
- rect { "bg_base";
- scale;
- desc { "default";
- rel1.to: "base";
- rel2.to: "base";
- min: TABBAR_COMMON_DEFAULT_ITEM_SIZE_INC;
- color_class: "toolbar_item/light_view/bg";
- }
- desc { "land";
- inherit: "default";
- min: TABBAR_COMMON_LANDSCAPE_DEFAULT_ITEM_SIZE_INC;
- }
- desc { "scroll";
- inherit: "default";
- min: TABBAR_COMMON_SCROLL_ITEM_SIZE_INC;
- }
- desc { "land_scroll";
- inherit: "default";
- min: TABBAR_COMMON_LANDSCAPE_SCROLL_ITEM_SIZE_INC;
- }
- }
- rect { "bg_cover";
- scale;
- desc { "default";
- rel1.to: "base";
- rel2.to: "base";
- hid;
- }
- desc { "pressed";
- inherit: "default";
- vis;
- color_class: "toolbar_item/light_view/effect";
- }
- desc { "disabled";
- inherit: "default";
- hid;
- }
- desc { "selected";
- inherit: "default";
- hid;
- }
- }
- part { "padding_left_top";
- type: SPACER;
- scale;
- nomouse;
- desc { state: "default";
- align: 0.0 0.0;
- rel2.relative: 0.0 0.0;
- min: 0 0;
- fixed: 1 1;
- }
- desc { state: "text";
- inherit: "default";
- min: TABBAR_LIGHT_VIEW_TEXT_LEFT_TOP_PADDING_SIZE_INC;
- }
- }
- part { "padding_right_bottom";
- type: SPACER;
- scale;
- nomouse;
- desc { state: "default";
- align: 1.0 1.0;
- rel1.relative: 1.0 1.0;
- fixed: 1 1;
- }
- desc { state: "text";
- inherit: "default";
- min: TABBAR_LIGHT_VIEW_TEXT_RIGHT_BOTTOM_PADDING_SIZE_INC;
- }
- }
- part { "padding_selected_line_top";
- type: SPACER;
- scale;
- nomouse;
- desc { state: "default";
- rel1 {
- to: "elm.text";
- relative: 0.0 1.0;
- }
- rel2 {
- to: "elm.text";
- relative: 1.0 1.0;
- }
- fixed: 0 1;
- min: TABBAR_LIGHT_VIEW_SELECTED_LINE_TOP_PADDING_SIZE_INC;
- align: 0.5 0.0;
- }
- }
- image { "selected_line";
- scale;
- desc { "default";
- min: 0 TABBAR_COMMON_SELECTED_LINE_HEIGHT_INC;
- max: 0 TABBAR_COMMON_SELECTED_LINE_HEIGHT_INC;
- rel1 {
- to: "padding_selected_line_top";
- relative: 0.0 1.0;
- }
- rel2 {
- to: "padding_selected_line_top";
- relative: 1.0 1.0;
- }
- image.normal: "core_tab_selectbar.#.png";
- fixed: 0 1;
- color: 255 255 255 0;
- color_class: "toolbar_item/light_view/underline";
- align: 0.5 0.0;
- }
- desc { "selected";
- inherit: "default";
- max: -1 TABBAR_COMMON_SELECTED_LINE_HEIGHT_INC;
- color: 255 255 255 255;
- }
- }
- part { "elm.text";
- type: TEXTBLOCK;
- nomouse;
- scale;
- clip: "clipper_elm.text";
- desc { state: "default";
- hid;
- min: TABBAR_LIGHT_VIEW_TEXT_SIZE_INC;
- max: TABBAR_LIGHT_VIEW_TEXT_SIZE_INC;
- rel1 {
- to: "padding_left_top";
- relative: 1.0 1.0;
- }
- rel2 {
- to: "padding_right_bottom";
- relative: 0.0 0.0;
- }
- fixed: 1 1;
- }
- desc { state: "text_normal";
- inherit: "default";
- vis;
- text {
- style: "tabbar_light_view_textblock_style";
- min: 0 1;
- max: 1 0;
- }
- }
- desc { state:"text_pressed";
- inherit: "text_normal";
- text.style: "tabbar_light_view_textblock_pressed_style";
- }
- desc { state:"text_selected";
- inherit: "text_normal";
- text.style: "tabbar_light_view_textblock_selected_style";
- }
- desc { state:"text_disabled";
- inherit: "text_normal";
- text.style: "tabbar_light_view_textblock_disabled_style";
- }
- desc { state: "icon_text";
- inherit: "default";
- vis;
- text {
- style: "tabbar_light_view_textblock_style";
- min: 0 1;
- max: 1 0;
- }
- }
- desc { state:"icon_text_pressed";
- inherit: "icon_text";
- text.style: "tabbar_light_view_textblock_pressed_style";
- }
- desc { state:"icon_text_selected";
- inherit: "icon_text";
- text.style: "tabbar_light_view_textblock_selected_style";
- }
- desc { state:"icon_text_disabled";
- inherit: "icon_text";
- text.style: "tabbar_light_view_textblock_disabled_style";
- }
- }
- part { "elm.text.slide";
- type: TEXTBLOCK;
- scale;
- clip: "clipper_elm.text.slide";
- desc { state: "default";
- fixed: 1 1;
- align: 0.0 0.5;
- min: TABBAR_LIGHT_VIEW_TEXT_SIZE_INC;
- max: TABBAR_LIGHT_VIEW_TEXT_SIZE_INC;
- rel1 {
- to: "padding_left_top";
- relative: 1.0 1.0;
- }
- rel2 {
- to: "padding_right_bottom";
- relative: 0.0 0.0;
- }
- text {
- style: "tabbar_light_view_textblock_selected_slide_style";
- min: 1 1;
- max: 1 0;
- }
- }
- desc { state: "slide_begin";
- inherit: "default";
- }
- desc { state: "slide_end";
- inherit: "default";
- align: 1.0 0.5;
- rel1 {
- to_x: "slide_text_gap";
- to_y: "padding_left_top";
- relative: 0.0 1.0;
- }
- rel2 {
- to_x: "slide_text_gap";
- to_y: "padding_right_bottom";
- relative: 1.0 0.0;
- }
- }
- desc { state: "icon_text";
- inherit: "default";
- text {
- style: "tabbar_light_view_textblock_selected_slide_style";
- min: 1 1;
- max: 1 0;
- }
- }
- desc { state: "icon_text_slide_begin";
- inherit: "icon_text";
- }
- desc { state: "icon_text_slide_end";
- inherit: "slide_end";
- }
- }
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-group { name: "elm/label/base/tooltip";
- styles {
- style { name: "tooltip_style";
- base: "font=Sans font_size=22 align=left color=#1d1d1d left_margin=21 right_margin=21 wrap=word";
- tag: "br" "\n";
- tag: "hilight" "+ font_weight=Bold";
- tag: "b" "+ font_weight=Bold";
- tag: "tab" "\t";
- }
- }
- parts {
- part { name: "elm.text";
- type: TEXTBLOCK;
- mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- text {
- style: "tooltip_style";
- min: 1 1;
- ellipsis: -1;
- }
- }
- }
- }
-}
-
-group { name: "elm/tooltip/base/default";
- min: 40 40;
- data {
- item: "pad_x" "20";
- item: "pad_y" "20";
- item: "pad_border_x" "10";
- item: "pad_border_y" "10";
- item: "hide_timeout" "0.35"; /**< tooltip is hidden after this amount, keep in sync with hide animations */
- }
- images {
- image: "tooltip_bg.png" COMP;
- image: "tooltip-edge-bottom-tip.png" COMP;
- image: "tooltip-edge-top-tip.png" COMP;
- }
- script {
- show_edge_top(Float:val) {
- set_state(PART:"clipper-edge-top", "visible", 0.0);
- set_drag(PART:"edge-drag-top", val, 0.0);
- }
- show_edge_bottom(Float:val) {
- set_state(PART:"clipper-edge-bottom", "visible", 0.0);
- set_drag(PART:"edge-drag-bottom", val, 0.0);
- }
-
- public message(Msg_Type:type, id, ...) {
- if ((type == MSG_FLOAT_SET) && (id == 1)) {
- new Float:x, Float:y;
-
- x = getfarg(2);
- y = getfarg(3);
-
- if (y < 0.0) show_edge_top(x);
- else if (y > 1.0) show_edge_bottom(x);
- }
- }
- }
- parts {
- part { name: "clipper"; type: RECT;
- description { state: "default" 0.0;
- color: 255 255 255 0;
- rel1 { to: "pop"; offset: -15 -15; }
- rel2 { to: "pop"; offset: 15 15; }
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 255;
- }
- }
- part { name: "pop"; mouse_events: 0;
- clip_to: "clipper";
- scale: 1;
- description { state: "default" 0.0;
- min: 60 60;
- rel1 {
- to: "elm.swallow.content";
- offset: -5 -4;
- }
- rel2 {
- to: "elm.swallow.content";
- offset: 4 5;
- }
- color: 255 255 255 230;
- image {
- normal: "tooltip_bg.png";
- border: 5 6 6 7;
- }
- }
- }
-
- #define TT_EDGE_HORIZ(name_, ry, ay, oy) \
- part { name: "clipper-edge-"name_; \
- type: RECT; \
- clip_to: "clipper"; \
- description { state: "default" 0.0; \
- color: 255 255 255 0; \
- visible: 0; \
- min: 14 14; \
- align: 0.5 ay; \
- fixed: 1 1; \
- rel1 { \
- relative: 0.0 ry; \
- offset: 0 oy; \
- to: "elm.swallow.content"; \
- } \
- rel2 { \
- relative: 1.0 ry; \
- offset: 0 oy; \
- to: "elm.swallow.content"; \
- } \
- } \
- description { state: "visible" 0.0; \
- inherit: "default" 0.0; \
- color: 255 255 255 255; \
- visible: 1; \
- } \
- } \
- part { name: "edge-area-"name_; \
- type: RECT; \
- mouse_events: 0; \
- clip_to: "clipper-edge-"name_; \
- description { state: "default" 0.0; \
- color: 0 0 0 0; \
- min: 14 14; \
- align: 0.5 ay; \
- fixed: 1 1; \
- rel1 { \
- relative: 0.0 ry; \
- offset: 0 oy; \
- to: "elm.swallow.content"; \
- } \
- rel2 { \
- relative: 1.0 ry; \
- offset: 0 oy; \
- to: "elm.swallow.content"; \
- } \
- } \
- } \
- part { name: "edge-drag-"name_; \
- type: RECT; \
- mouse_events: 0; \
- clip_to: "clipper-edge-"name_; \
- dragable { \
- x: 1 1 0; \
- y: 0 0 0; \
- confine: "edge-area-"name_; \
- } \
- description { state: "default" 0.0; \
- color: 0 0 0 0; \
- min: 14 14; \
- rel1.to: "edge-area-"name_; \
- rel2.to: "edge-area-"name_; \
- } \
- } \
- part { name: "edge-img-"name_; \
- type: IMAGE; \
- mouse_events: 0; \
- clip_to: "clipper-edge-"name_; \
- description { state: "default" 0.0; \
- min: 14 14; \
- max: 14 14; \
- align: 0.5 ay; \
- fixed: 1 1; \
- rel1.to: "edge-drag-"name_; \
- rel2.to: "edge-drag-"name_; \
- image.normal: "tooltip-edge-"name_"-tip.png"; \
- } \
- }
- TT_EDGE_HORIZ("top", 0, 1, -5);
- TT_EDGE_HORIZ("bottom", 1, 0, 2);
- #undef TT_EDGE_HORIZ
-
- part { name: "clipper_content";
- type: RECT;
- description { state: "default" 0.0;
- color: 255 255 255 0;
- rel1.to: "elm.swallow.content";
- rel1.offset: -64 -64;
- rel2.to: "elm.swallow.content";
- rel2.offset: 63 63;
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- color: 255 255 255 255;
- }
- }
- part { name: "elm.swallow.content"; type: SWALLOW;//this bring the tooltip up and down.
- clip_to: "clipper_content";
- description { state: "default" 0.0;
- rel1.offset: 10 20;
- rel2.offset: -10 -20;
- }
- }
- programs {
- program {
- name: "show0";
- signal: "elm,action,show";
- source: "elm";
- action: ACTION_STOP;
- target: "hide0";
- target: "hide2";
- target: "hide3";
- after: "show1";
- after: "show2";
- }
- program {
- name: "show1";
- action: STATE_SET "visible" 0.0;
- transition: LINEAR 0.15;
- target: "clipper";
- }
- program {
- name: "show2";
- in: 0.1 0.0;
- action: STATE_SET "visible" 0.0;
- transition: LINEAR 0.15;
- target: "clipper_content";
- }
-
- program {
- name: "hide0";
- signal: "elm,action,hide";
- source: "elm";
- action: ACTION_STOP;
- target: "show0";
- target: "show1";
- target: "show2";
- after: "hide2";
- after: "hide3";
- }
- program {
- name: "hide2";
- action: STATE_SET "default" 0.0;
- transition: LINEAR 0.1;
- target: "clipper_content";
- }
- program {
- name: "hide3";
- in: 0.1 0.0;
- action: STATE_SET "default" 0.0;
- transition: LINEAR 0.1;
- target: "clipper";
- }
- }
- }
-}
-group { name: "elm/tooltip/base/transparent";
- data {
- item: "pad_x" "10";
- item: "pad_y" "10";
- item: "transparent" "enabled";
- }
- parts {
- part { name: "elm.swallow.content";
- type: SWALLOW;
- mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0; }
- }
- }
-}
-%define DEV_VERSION beta-006
+%define DEV_VERSION beta-007
Name: elm-sharp
Summary: C# Binding for Elementary
ExcludeArch: aarch64
BuildRequires: dotnet-build-tools
-BuildRequires: edje-tools
%define Assemblies ElmSharp
%dotnet_pack $ASM/$ASM.nuspec %{version}%{?DEV_VERSION:-%{DEV_VERSION}}
done
-edje_cc -id ElmSharp/theme/%{profile}/HD/images/ \
- -id ElmSharp/theme/%{profile}/HD/images/Assist_Views \
- -id ElmSharp/theme/%{profile}/HD/images/User_Input_Elements \
- -id ElmSharp/theme/%{profile}/HD/images/Navigation_elements \
- ElmSharp/theme/%{profile}/elm-sharp-theme-%{profile}.edc ElmSharp/theme/elm-sharp-theme.edj
-
%install
for ASM in %{Assemblies}; do
%dotnet_install $ASM
done
-mkdir %{buildroot}%{_datadir}/edje/elm-sharp -p
-install -m 644 ElmSharp/theme/elm-sharp-theme.edj %{buildroot}%{_datadir}/edje/elm-sharp/
-
%files
%manifest %{name}.manifest
%license LICENSE
%attr(644,root,root) %{dotnet_assembly_files}
-%attr(644,root,root) %{_datadir}/edje/elm-sharp/*.edj