From 27afd77a2bc4b9f444c87a1881e4e7f36fb01b8e Mon Sep 17 00:00:00 2001 From: sumanth Date: Tue, 28 Feb 2012 18:36:40 +0530 Subject: [PATCH] [layout.edc] Nocontent styles of elm_layout are added. nocontents.edc file is removed. Change-Id: I35af03996344af7699b941292fd96678107b4957 --- themes/tizen.edc | 1 - themes/widgets/layout.edc | 460 ++++++++++++++++++++++++++++++++++++++++ themes/widgets/nocontents.edc | 473 ------------------------------------------ 3 files changed, 460 insertions(+), 474 deletions(-) delete mode 100644 themes/widgets/nocontents.edc diff --git a/themes/tizen.edc b/themes/tizen.edc index 201bf6f..9afce1b 100644 --- a/themes/tizen.edc +++ b/themes/tizen.edc @@ -76,7 +76,6 @@ collections { #include "widgets/multibuttonentry.edc" //#include "widgets/multisense_ui.edc" #include "widgets/naviframe.edc" -#include "widgets/nocontents.edc" #include "widgets/pagecontrol.edc" #include "widgets/panes.edc" #include "widgets/photocam.edc" diff --git a/themes/widgets/layout.edc b/themes/widgets/layout.edc index fa3cbf5..c7ab731 100644 --- a/themes/widgets/layout.edc +++ b/themes/widgets/layout.edc @@ -2286,3 +2286,463 @@ group { name: "elm/layout/searchbar/cancel_button"; } } +group { + name: "elm/layout/nocontents/full"; + alias: "elm/nocontents/base/full"; + alias: "elm/nocontents/base/default"; + styles{ + style { name: "nocontent_style"; + base: "font=SLP:style=Roman font_size="NOCONTENT_TEXT_BLOCK_TEXT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipsis=1.0"; + tag: "br" "\n"; + tag: "hilight" "+ font=SLP:style=Bold"; + tag: "b" "+ font=SLP:style=Bold"; + tag: "tab" "\t"; + } + } + images { + image: "00_winset_NoContents_image.png" COMP; + } + parts { + part { name: "bg"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + visible: 1; + min: 200 200; + rel1 { + relative: 0.0 0.0; + } + rel2 { + relative: 1.0 1.0; + } + color: NOCONTENT_BG_COLOR_INC; + } + } + part { name: "nocontents.image"; + description { state: "default" 0.0; + visible: 1; + align: 0.5 0.0; + rel1 { + relative: NOCONTENT_IMAGE_REL1_WIDTH_HEIGHT_INC; + to: "bg"; + } + rel2 { + relative: NOCONTENT_IMAGE_REL2_WIDTH_HEIGHT_INC; + to: "bg"; + } + image { + normal: "00_winset_NoContents_image.png"; + border: 1 1 1 1; + border_scale: 1; + } + aspect: 1.0 1.0; + aspect_preference: BOTH; + } + } + part { name: "middle.padding"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + visible: 0; + min: 1 NOCONTENT_MIDDLE_PADDING_INC; + max: 1 NOCONTENT_MIDDLE_PADDING_INC; + align: 0.5 0.0; + rel1 { + relative: 0.0 1.0; + to_y: "nocontents.image"; + } + } + } + part { name: "elm.text"; + type: TEXTBLOCK; + scale: 1; + description { state: "default" 0.0; + min: NOCONTENT_TEXT_STYLE_BG_MIN_INC; + fixed: 0 1; + align: 0.5 0.5; + visible: 1; + rel1 { + relative: 0.0 1.0; + to_x: "bg"; + to_y: "middle.padding"; + } + rel2 { + relative: 1.0 1.0; + to_x: "bg"; + to_y: "middle.padding"; + } + color: NOCONTENT_TEXT_BLOCK_STYLE_COLOR_INC; + text { + style: "nocontent_style"; + align: 0.5 0.5; + min: 0 0; + max: 0 1; + } + } + } + } +} + +group { + name: "elm/layout/nocontents/multimedia"; + alias: "elm/nocontents/base/multimedia"; + images { + image: "00_winset_NoContents_multimedia.png" COMP; + } + parts { + part { name: "bg"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + visible: 1; + min: 200 200; + rel1 { + relative: 0.0 0.0; + } + rel2 { + relative: 1.0 1.0; + } + color: 0 0 0 0; + } + } + part { name: "nocontents.image"; + description { state: "default" 0.0; + visible: 1; + align: 0.5 0.0; + rel1 { + relative: NOCONTENT_IMAGE_REL1_WIDTH_HEIGHT_INC; + to: "bg"; + } + rel2 { + relative: NOCONTENT_IMAGE_REL2_WIDTH_HEIGHT_INC; + to: "bg"; + } + image { + normal: "00_winset_NoContents_multimedia.png"; + border: 1 1 1 1; + border_scale: 1; + } + aspect: 1.0 1.0; + aspect_preference: BOTH; + } + } + part { name: "middle.padding"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + visible: 0; + min: 1 NOCONTENT_MIDDLE_PADDING_INC; + max: 1 NOCONTENT_MIDDLE_PADDING_INC; + align: 0.5 0.0; + rel1 { + relative: 0.0 1.0; + to_y: "nocontents.image"; + } + } + } + part { name: "elm.text"; + type: TEXTBLOCK; + scale: 1; + description { state: "default" 0.0; + min: NOCONTENT_TEXT_STYLE_BG_MIN_INC; + fixed: 0 1; + align: 0.5 0.5; + visible: 1; + rel1 { + relative: 0.0 1.0; + to_x: "bg"; + to_y: "middle.padding"; + } + rel2 { + relative: 1.0 1.0; + to_x: "bg"; + to_y: "middle.padding"; + } + color: NOCONTENT_TEXT_BLOCK_STYLE_COLOR_INC; + text { + style: "nocontent_style"; + align: 0.5 0.5; + min: 0 0; + max: 0 1; + } + } + } + } +} + +group { + name: "elm/layout/nocontents/text"; + alias: "elm/nocontents/base/text"; + images { + image: "00_winset_NoContents_text.png" COMP; + } + parts { + part { name: "bg"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + visible: 1; + min: 200 200; + rel1 { + relative: 0.0 0.0; + } + rel2 { + relative: 1.0 1.0; + } + color: 0 0 0 0; + } + } + part { name: "nocontents.image"; + description { state: "default" 0.0; + visible: 1; + align: 0.5 0.0; + rel1 { + relative: NOCONTENT_IMAGE_REL1_WIDTH_HEIGHT_INC; + to: "bg"; + } + rel2 { + relative: NOCONTENT_IMAGE_REL2_WIDTH_HEIGHT_INC; + to: "bg"; + } + image { + normal: "00_winset_NoContents_text.png"; + border: 1 1 1 1; + border_scale: 1; + } + aspect: 1.0 1.0; + aspect_preference: BOTH; + } + } + part { name: "middle.padding"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + visible: 0; + min: 1 NOCONTENT_MIDDLE_PADDING_INC; + max: 1 NOCONTENT_MIDDLE_PADDING_INC; + align: 0.5 0.0; + rel1 { + relative: 0.0 1.0; + to_y: "nocontents.image"; + } + } + } + part { name: "elm.text"; + type: TEXTBLOCK; + scale: 1; + description { state: "default" 0.0; + min: NOCONTENT_TEXT_STYLE_BG_MIN_INC; + fixed: 0 1; + align: 0.5 0.5; + visible: 1; + rel1 { + relative: 0.0 1.0; + to_x: "bg"; + to_y: "middle.padding"; + } + rel2 { + relative: 1.0 1.0; + to_x: "bg"; + to_y: "middle.padding"; + } + color: NOCONTENT_TEXT_BLOCK_STYLE_COLOR_INC; + text { + style: "nocontent_style"; + align: 0.5 0.5; + min: 0 0; + max: 0 1; + } + } + } + } +} + +group { + name: "elm/layout/nocontents/unnamed"; + alias: "elm/nocontents/base/unnamed"; + images { + image: "00_winset_NoContents_unnamed.png" COMP; + } + parts { + part { name: "bg"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + visible: 1; + min: 200 200; + rel1 { + relative: 0.0 0.0; + } + rel2 { + relative: 1.0 1.0; + } + color: 0 0 0 0; + } + } + part { name: "nocontents.image"; + description { state: "default" 0.0; + visible: 1; + align: 0.5 0.0; + rel1 { + relative: NOCONTENT_IMAGE_REL1_WIDTH_HEIGHT_INC; + to: "bg"; + } + rel2 { + relative: NOCONTENT_IMAGE_REL2_WIDTH_HEIGHT_INC; + to: "bg"; + } + image { + normal: "00_winset_NoContents_unnamed.png"; + border: 1 1 1 1; + border_scale: 1; + } + aspect: 1.0 1.0; + aspect_preference: BOTH; + } + } + part { name: "middle.padding"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + visible: 0; + min: 1 NOCONTENT_MIDDLE_PADDING_INC; + max: 1 NOCONTENT_MIDDLE_PADDING_INC; + align: 0.5 0.0; + rel1 { + relative: 0.0 1.0; + to_y: "nocontents.image"; + } + } + } + part { name: "elm.text"; + type: TEXTBLOCK; + scale: 1; + description { state: "default" 0.0; + min: NOCONTENT_TEXT_STYLE_BG_MIN_INC; + fixed: 0 1; + align: 0.5 0.5; + visible: 1; + rel1 { + relative: 0.0 1.0; + to_x: "bg"; + to_y: "middle.padding"; + } + rel2 { + relative: 1.0 1.0; + to_x: "bg"; + to_y: "middle.padding"; + } + color: NOCONTENT_TEXT_BLOCK_STYLE_COLOR_INC; + text { + style: "nocontent_style"; + align: 0.5 0.5; + min: 0 0; + max: 0 1; + } + } + } + } +} + +group { + name: "elm/layout/nocontents/search"; + alias: "elm/nocontents/base/search"; + parts { + part { name: "bg"; + mouse_events: 0; + type: RECT; + description { state: "default" 0.0; + visible: 1; + rel1 { + relative: 0.0 0.0; + } + rel2 { + relative: 1.0 1.0; + } + color: 0 0 0 0; + } + } + part { name: "top_padding"; + mouse_events: 0; + type: RECT; + scale: 1; + description { state: "default" 0.0; + min: 0 NOCONTENT_BASE_SEARCH_PADDING_INC; + fixed: 0 1; + align: 0 0; + visible: 1; + rel1 { + relative: 0.0 0.0; + } + rel2 { + relative: 1.0 0.0; + } + color: 0 0 0 0; + } + } + part { name: "elm.text"; + mouse_events: 0; + type: TEXT; + scale: 1; + description { state: "default" 0.0; + //min: 0 30; + fixed: 0 1; + align: 0 0; + visible: 1; + rel1 { + relative: 0.0 1.0; + to:"top_padding"; + } + rel2 { + relative: 1.0 1.0; + to:"top_padding"; + } + color: NOCONTENT_TEXT_BLOCK_STYLE_COLOR_INC; + text { + font: "SLP:style=Roman"; + size: 30; + text: ""; + align: 0.5 0.5; + } + } + } + part { name: "text_bottom_padding"; + mouse_events: 0; + type: RECT; + scale: 1; + description { state: "default" 0.0; + min: 0 NOCONTENT_BASE_SEARCH_PADDING_INC; + fixed: 0 1; + align: 0 0; + visible: 0; + rel1 { + relative: 0.0 1.0; + to:"elm.text"; + } + rel2 { + relative: 1.0 1.0; + to:"elm.text"; + } + } + } + part { name: "custom"; + mouse_events: 1; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + min: 0 0; + fixed: 0 1; + align: 0 0; + visible: 1; + rel1 { + relative: 0.0 1.0; + to:"text_bottom_padding"; + } + rel2 { + relative: 1.0 1.0; + to:"text_bottom_padding"; + } + } + } + } +} diff --git a/themes/widgets/nocontents.edc b/themes/widgets/nocontents.edc deleted file mode 100644 index 09c82e5..0000000 --- a/themes/widgets/nocontents.edc +++ /dev/null @@ -1,473 +0,0 @@ -/* - * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved - * - * PROPRIETARY/CONFIDENTIAL - * - * This software is the confidential and proprietary information of SAMSUNG - * ELECTRONICS ("Confidential Information"). You agree and acknowledge that this - * software is owned by Samsung and you shall not disclose such Confidential - * Information and shall use it only in accordance with the terms of the license - * agreement you entered into with SAMSUNG ELECTRONICS. SAMSUNG make no - * representations or warranties about the suitability of the software, either - * express or implied, including but not limited to the implied warranties of - * merchantability, fitness for a particular purpose, or non-infringement. - * SAMSUNG shall not be liable for any damages suffered by licensee arising out - * of or releated to this software. - * - */ - - group { - name: "elm/nocontents/base/default"; - alias: "elm/nocontents/base/full"; - styles{ - style { name: "nocontent_style"; - base: "font=SLP:style=Roman font_size="NOCONTENT_TEXT_BLOCK_TEXT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipsis=1.0"; - tag: "br" "\n"; - tag: "hilight" "+ font=SLP:style=Bold"; - tag: "b" "+ font=SLP:style=Bold"; - tag: "tab" "\t"; - } - } - images { - image: "00_winset_NoContents_image.png" COMP; - } - parts { - part { name: "bg"; - type: RECT; - scale: 1; - description { state: "default" 0.0; - visible: 1; - min: 200 200; - rel1 { - relative: 0.0 0.0; - } - rel2 { - relative: 1.0 1.0; - } - color: NOCONTENT_BG_COLOR_INC; - } - } - part { name: "nocontents.image"; - description { state: "default" 0.0; - visible: 1; - align: 0.5 0.0; - rel1 { - relative: NOCONTENT_IMAGE_REL1_WIDTH_HEIGHT_INC; - to: "bg"; - } - rel2 { - relative: NOCONTENT_IMAGE_REL2_WIDTH_HEIGHT_INC; - to: "bg"; - } - image { - normal: "00_winset_NoContents_image.png"; - border: 1 1 1 1; - border_scale: 1; - } - aspect: 1.0 1.0; - aspect_preference: BOTH; - } - } - part { name: "middle.padding"; - type: RECT; - scale: 1; - description { state: "default" 0.0; - visible: 0; - min: 1 NOCONTENT_MIDDLE_PADDING_INC; - max: 1 NOCONTENT_MIDDLE_PADDING_INC; - align: 0.5 0.0; - rel1 { - relative: 0.0 1.0; - to_y: "nocontents.image"; - } - } - } - part { name: "elm.text"; - type: TEXTBLOCK; - scale: 1; - description { state: "default" 0.0; - min: NOCONTENT_TEXT_STYLE_BG_MIN_INC; - fixed: 0 1; - align: 0.5 0.5; - visible: 1; - rel1 { - relative: 0.0 1.0; - to_x: "bg"; - to_y: "middle.padding"; - } - rel2 { - relative: 1.0 1.0; - to_x: "bg"; - to_y: "middle.padding"; - } - color: NOCONTENT_TEXT_BLOCK_STYLE_COLOR_INC; - text { - style: "nocontent_style"; - align: 0.5 0.5; - min: 0 0; - max: 0 1; - } - } - } - } - } - - group { - name: "elm/nocontents/base/multimedia"; - images { - image: "00_winset_NoContents_multimedia.png" COMP; - } - parts { - part { name: "bg"; - type: RECT; - scale: 1; - description { state: "default" 0.0; - visible: 1; - min: 200 200; - rel1 { - relative: 0.0 0.0; - } - rel2 { - relative: 1.0 1.0; - } - color: 0 0 0 0; - } - } - part { name: "nocontents.image"; - description { state: "default" 0.0; - visible: 1; - align: 0.5 0.0; - rel1 { - relative: NOCONTENT_IMAGE_REL1_WIDTH_HEIGHT_INC; - to: "bg"; - } - rel2 { - relative: NOCONTENT_IMAGE_REL2_WIDTH_HEIGHT_INC; - to: "bg"; - } - image { - normal: "00_winset_NoContents_multimedia.png"; - border: 1 1 1 1; - border_scale: 1; - } - aspect: 1.0 1.0; - aspect_preference: BOTH; - } - } - part { name: "middle.padding"; - type: RECT; - scale: 1; - description { state: "default" 0.0; - visible: 0; - min: 1 NOCONTENT_MIDDLE_PADDING_INC; - max: 1 NOCONTENT_MIDDLE_PADDING_INC; - align: 0.5 0.0; - rel1 { - relative: 0.0 1.0; - to_y: "nocontents.image"; - } - } - } - part { name: "elm.text"; - type: TEXTBLOCK; - scale: 1; - description { state: "default" 0.0; - min: NOCONTENT_TEXT_STYLE_BG_MIN_INC; - fixed: 0 1; - align: 0.5 0.5; - visible: 1; - rel1 { - relative: 0.0 1.0; - to_x: "bg"; - to_y: "middle.padding"; - } - rel2 { - relative: 1.0 1.0; - to_x: "bg"; - to_y: "middle.padding"; - } - color: NOCONTENT_TEXT_BLOCK_STYLE_COLOR_INC; - text { - style: "nocontent_style"; - align: 0.5 0.5; - min: 0 0; - max: 0 1; - } - } - } - } - } - - group { - name: "elm/nocontents/base/text"; - images { - image: "00_winset_NoContents_text.png" COMP; - } - parts { - part { name: "bg"; - type: RECT; - scale: 1; - description { state: "default" 0.0; - visible: 1; - min: 200 200; - rel1 { - relative: 0.0 0.0; - } - rel2 { - relative: 1.0 1.0; - } - color: 0 0 0 0; - } - } - part { name: "nocontents.image"; - description { state: "default" 0.0; - visible: 1; - align: 0.5 0.0; - rel1 { - relative: NOCONTENT_IMAGE_REL1_WIDTH_HEIGHT_INC; - to: "bg"; - } - rel2 { - relative: NOCONTENT_IMAGE_REL2_WIDTH_HEIGHT_INC; - to: "bg"; - } - image { - normal: "00_winset_NoContents_text.png"; - border: 1 1 1 1; - border_scale: 1; - } - aspect: 1.0 1.0; - aspect_preference: BOTH; - } - } - part { name: "middle.padding"; - type: RECT; - scale: 1; - description { state: "default" 0.0; - visible: 0; - min: 1 NOCONTENT_MIDDLE_PADDING_INC; - max: 1 NOCONTENT_MIDDLE_PADDING_INC; - align: 0.5 0.0; - rel1 { - relative: 0.0 1.0; - to_y: "nocontents.image"; - } - } - } - part { name: "elm.text"; - type: TEXTBLOCK; - scale: 1; - description { state: "default" 0.0; - min: NOCONTENT_TEXT_STYLE_BG_MIN_INC; - fixed: 0 1; - align: 0.5 0.5; - visible: 1; - rel1 { - relative: 0.0 1.0; - to_x: "bg"; - to_y: "middle.padding"; - } - rel2 { - relative: 1.0 1.0; - to_x: "bg"; - to_y: "middle.padding"; - } - color: NOCONTENT_TEXT_BLOCK_STYLE_COLOR_INC; - text { - style: "nocontent_style"; - align: 0.5 0.5; - min: 0 0; - max: 0 1; - } - } - } - } - } - - group { - name: "elm/nocontents/base/unnamed"; - images { - image: "00_winset_NoContents_unnamed.png" COMP; - } - parts { - part { name: "bg"; - type: RECT; - scale: 1; - description { state: "default" 0.0; - visible: 1; - min: 200 200; - rel1 { - relative: 0.0 0.0; - } - rel2 { - relative: 1.0 1.0; - } - color: 0 0 0 0; - } - } - part { name: "nocontents.image"; - description { state: "default" 0.0; - visible: 1; - align: 0.5 0.0; - rel1 { - relative: NOCONTENT_IMAGE_REL1_WIDTH_HEIGHT_INC; - to: "bg"; - } - rel2 { - relative: NOCONTENT_IMAGE_REL2_WIDTH_HEIGHT_INC; - to: "bg"; - } - image { - normal: "00_winset_NoContents_unnamed.png"; - border: 1 1 1 1; - border_scale: 1; - } - aspect: 1.0 1.0; - aspect_preference: BOTH; - } - } - part { name: "middle.padding"; - type: RECT; - scale: 1; - description { state: "default" 0.0; - visible: 0; - min: 1 NOCONTENT_MIDDLE_PADDING_INC; - max: 1 NOCONTENT_MIDDLE_PADDING_INC; - align: 0.5 0.0; - rel1 { - relative: 0.0 1.0; - to_y: "nocontents.image"; - } - } - } - part { name: "elm.text"; - type: TEXTBLOCK; - scale: 1; - description { state: "default" 0.0; - min: NOCONTENT_TEXT_STYLE_BG_MIN_INC; - fixed: 0 1; - align: 0.5 0.5; - visible: 1; - rel1 { - relative: 0.0 1.0; - to_x: "bg"; - to_y: "middle.padding"; - } - rel2 { - relative: 1.0 1.0; - to_x: "bg"; - to_y: "middle.padding"; - } - color: NOCONTENT_TEXT_BLOCK_STYLE_COLOR_INC; - text { - style: "nocontent_style"; - align: 0.5 0.5; - min: 0 0; - max: 0 1; - } - } - } - } - } - - group { - name: "elm/nocontents/base/search"; - parts { - part { name: "bg"; - mouse_events: 0; - type: RECT; - description { state: "default" 0.0; - visible: 1; - rel1 { - relative: 0.0 0.0; - } - rel2 { - relative: 1.0 1.0; - } - color: 0 0 0 0; - } - } - part { name: "top_padding"; - mouse_events: 0; - type: RECT; - scale: 1; - description { state: "default" 0.0; - min: 0 NOCONTENT_BASE_SEARCH_PADDING_INC; - fixed: 0 1; - align: 0 0; - visible: 1; - rel1 { - relative: 0.0 0.0; - } - rel2 { - relative: 1.0 0.0; - } - color: 0 0 0 0; - } - } - part { name: "elm.text"; - mouse_events: 0; - type: TEXT; - scale: 1; - description { state: "default" 0.0; - //min: 0 30; - fixed: 0 1; - align: 0 0; - visible: 1; - rel1 { - relative: 0.0 1.0; - to:"top_padding"; - } - rel2 { - relative: 1.0 1.0; - to:"top_padding"; - } - color: NOCONTENT_TEXT_BLOCK_STYLE_COLOR_INC; - text { - font: "SLP:style=Roman"; - size: 30; - text: ""; - align: 0.5 0.5; - } - } - } - part { name: "text_bottom_padding"; - mouse_events: 0; - type: RECT; - scale: 1; - description { state: "default" 0.0; - min: 0 NOCONTENT_BASE_SEARCH_PADDING_INC; - fixed: 0 1; - align: 0 0; - visible: 0; - rel1 { - relative: 0.0 1.0; - to:"elm.text"; - } - rel2 { - relative: 1.0 1.0; - to:"elm.text"; - } - } - } - part { name: "custom"; - mouse_events: 1; - type: SWALLOW; - scale: 1; - description { state: "default" 0.0; - min: 0 0; - fixed: 0 1; - align: 0 0; - visible: 1; - rel1 { - relative: 0.0 1.0; - to:"text_bottom_padding"; - } - rel2 { - relative: 1.0 1.0; - to:"text_bottom_padding"; - } - } - } - } - } -- 2.7.4