summaryrefslogtreecommitdiff
path: root/lib/edc/dialer_theme.edc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/edc/dialer_theme.edc')
-rwxr-xr-xlib/edc/dialer_theme.edc387
1 files changed, 387 insertions, 0 deletions
diff --git a/lib/edc/dialer_theme.edc b/lib/edc/dialer_theme.edc
new file mode 100755
index 0000000..ed25e17
--- /dev/null
+++ b/lib/edc/dialer_theme.edc
@@ -0,0 +1,387 @@
+/*
+* Copyright 2012 Samsung Electronics Co., Ltd
+*
+* Licensed under the Flora License, Version 1.1 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://floralicense.org/license/
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+
+#define MAIN_W (720)
+#define ITEM_H (140)
+#define DIALER_TEXTBLOCK_TEXT_SIZE_MAIN (44)
+#define DIALER_TEXTBLOCK_TEXT_SIZE_SUB (32)
+
+
+collections {
+ styles {
+ style {
+ name: "dialer_textblock_style_main";
+ base: "font=Tizen:style=Roman text_class=list_item font_size=44 align=left color=#000000 wrap=word ellipsis=1.0";
+ tag: "match" "+ color=#3b73b6";
+ }
+ style {
+ name: "dialer_textblock_style_main_selected";
+ base: "font=Tizen:style=Roman text_class=list_item font_size=44 align=left color=#F9F9F9FF wrap=word ellipsis=1.0";
+ tag: "match" "+ color=#F9F9F9FF";
+ }
+ style {
+ name: "dialer_textblock_style_sub";
+ base: "font=Tizen:style=Roman text_class=list_item font_size=32 align=left color=#999999 wrap=word ellipsis=1.0";
+ tag: "match" "+ color=#3b73b6";
+ }
+ style {
+ name: "dialer_textblock_style_sub_selected";
+ base: "font=Tizen:style=Roman text_class=list_item font_size=32 align=left color=#F9F9F9FF wrap=word ellipsis=1.0";
+ tag: "match" "+ color=#F9F9F9FF";
+ }
+ }
+
+#define COMMON_BASE_STYLE\
+ part { \
+ name: "base"; \
+ type: RECT; \
+ scale: 1; \
+ description { \
+ state: "default" 0.0; \
+ min: 0 ITEM_H; \
+ color: 31 31 31 255; \
+ rel1 { relative: 0.0 0.0; } \
+ rel2 { relative: 1.0 1.0; } \
+ } \
+ }
+
+#define COMMON_BG \
+ part { \
+ name: "bg"; \
+ clip_to: "disclip"; \
+ type: RECT; \
+ description { \
+ state: "default" 0.0; \
+ visible: 1; \
+ rel1 { relative: 0.0 0.0; } \
+ rel2 { relative: 1.0 1.0; } \
+ color: 255 255 255 255; \
+ } \
+ description { \
+ state: "selected" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 1; \
+ rel1 { relative: 0.0 0.0; } \
+ rel2 { relative: 1.0 1.0; } \
+ color: 73 137 174 255; \
+ } \
+ }
+
+#define COMMON_BOTTOM_LINE \
+ part { \
+ name: "bottom_line"; \
+ type: RECT; \
+ description { \
+ state: "default" 0.0; \
+ min: 0 1; \
+ fixed: 0 1; \
+ visible: 1; \
+ color: 81 81 81 255; \
+ rel1 { relative: 0.0 1.0; to: "base";} \
+ rel2 { relative: 1.0 1.0; to: "base";} \
+ align: 0.5 1.0; \
+ } \
+ }
+
+#define COMMON_DISCLIP \
+ part { \
+ name: "disclip"; \
+ type: RECT; \
+ scale: 1; \
+ description { \
+ state: "default" 0.0; \
+ rel1 { to: "bg"; } \
+ rel2 { to: "bg"; } \
+ } \
+ description { \
+ state: "disabled" 0.0; \
+ inherit: "default" 0.0; \
+ color: 255 255 255 64; \
+ } \
+ }
+
+#define COMMON_NAME_TEXTBLOCK\
+ part { \
+ name: "elm.text.left.name"; \
+ type: TEXTBLOCK; \
+ scale: 1; \
+ mouse_events: 0; \
+ description { \
+ state: "default" 0.0; \
+ rel1 { relative: 0.0 0.0; offset: 26 22; to: "bg"; } \
+ rel2 { relative: 1.0 76/ITEM_H; offset: -26 0; to: "bg"; } \
+ fixed: 1 1; \
+ color: 255 255 255 255; \
+ text { min: 0 1; style: "dialer_textblock_style_main"; } \
+ } \
+ description { \
+ state: "selected" 0.0; \
+ inherit: "default" 0.0; \
+ color: 255 255 255 255; \
+ text.style: "dialer_textblock_style_main_selected"; \
+ } \
+ } \
+ part { \
+ name: "elm.text.left.number"; \
+ type: TEXT; \
+ scale: 1; \
+ mouse_events: 0; \
+ description { \
+ state: "default" 0.0; \
+ rel1 { relative: 0.0 76/ITEM_H; offset: 26 0; to: "bg"; } \
+ rel2 { relative: 1.0 1.0; offset: -26 -22; to: "bg"; } \
+ color: 153 153 153 255; \
+ text { \
+ font: "SLP:style=Regular"; \
+ text_class: "slp"; \
+ size: DIALER_TEXTBLOCK_TEXT_SIZE_SUB; \
+ min: 0 1; \
+ align: 0.0 0.5; \
+ } \
+ } \
+ description { \
+ state: "selected" 0.0; \
+ inherit: "default" 0.0; \
+ color: 255 255 255 255; \
+ } \
+ }
+
+#define COMMON_NUM_TEXTBLOCK\
+ part { \
+ name: "elm.text.left.name"; \
+ type: TEXT; \
+ scale: 1; \
+ mouse_events: 0; \
+ description { \
+ state: "default" 0.0; \
+ rel1 { relative: 0.0 0.0; offset: 26 22; to: "bg"; } \
+ rel2 { relative: 1.0 76/ITEM_H; offset: -26 0; to: "bg"; } \
+ fixed: 1 1; \
+ color: 0 0 0 255; \
+ text { \
+ font: "SLP:style=Regular"; \
+ text_class: "slp"; \
+ size: DIALER_TEXTBLOCK_TEXT_SIZE_MAIN; \
+ min: 0 1; \
+ align: 0.0 0.5; \
+ } \
+ } \
+ description { \
+ state: "selected" 0.0; \
+ inherit: "default" 0.0; \
+ color: 255 255 255 255; \
+ } \
+ } \
+ part { \
+ name: "elm.text.left.number"; \
+ type: TEXTBLOCK; \
+ scale: 1; \
+ mouse_events: 0; \
+ description { \
+ state: "default" 0.0; \
+ rel1 { relative: 0.0 76/ITEM_H; offset: 26 0; to: "bg"; } \
+ rel2 { relative: 1.0 1.0; offset: -26 -22; to: "bg"; } \
+ color: 255 255 255 255; \
+ text { min: 0 1; style: "dialer_textblock_style_sub"; } \
+ } \
+ description { \
+ state: "selected" 0.0; \
+ inherit: "default" 0.0; \
+ text.style: "dialer_textblock_style_sub_selected"; \
+ } \
+ }
+
+#define COMMON_CALLERID_ICON\
+ part { \
+ name: "elm.icon.1"; \
+ type: SWALLOW; \
+ clip_to: "disclip"; \
+ scale: 1; \
+ description { \
+ state: "default" 0.0; \
+ min: 96 96; \
+ max: 96 96; \
+ fixed: 1 1; \
+ rel1 { \
+ relative: 1.0 0.0; offset: -16 16; \
+ to_x: "bg"; \
+ } \
+ rel2 { \
+ relative: 1.0 1.0; offset: -16 -16; \
+ to_x: "bg"; \
+ } \
+ align: 1.0 0.5; \
+ } \
+ }
+
+#define COMMON_NONAME_TEXTBLOCK\
+ part { \
+ name: "elm.text.left.number"; \
+ type: TEXTBLOCK; \
+ scale: 1; \
+ mouse_events: 0; \
+ description { \
+ state: "default" 0.0; \
+ rel1 { relative: 0.0 0.25; offset: 26 0; to: "bg"; } \
+ rel2 { relative: 1.0 0.75; offset: -26 0; to: "bg"; } \
+ color: 255 255 255 255; \
+ text { min: 0 1; style: "dialer_textblock_style_main"; } \
+ } \
+ description { \
+ state: "selected" 0.0; \
+ inherit: "default" 0.0; \
+ text.style: "dialer_textblock_style_main_selected"; \
+ } \
+ }
+
+#define NAME_PROGRAM \
+ program { \
+ name: "name_selected"; \
+ signal: "elm,state,selected"; \
+ source: "elm"; \
+ action: STATE_SET "selected" 0.0; \
+ target: "elm.text.left.name"; \
+ } \
+ program { \
+ name: "name_unselected"; \
+ signal: "elm,state,unselected"; \
+ source: "elm"; \
+ action: STATE_SET "default" 0.0; \
+ target: "elm.text.left.name"; \
+ transition: LINEAR 0.1; \
+ }
+
+
+#define NUMBER_PROGRAM \
+ program { \
+ name: "number_selected"; \
+ signal: "elm,state,selected"; \
+ source: "elm"; \
+ action: STATE_SET "selected" 0.0; \
+ target: "elm.text.left.number"; \
+ } \
+ program { \
+ name: "number_unselected"; \
+ signal: "elm,state,unselected"; \
+ source: "elm"; \
+ action: STATE_SET "default" 0.0; \
+ target: "elm.text.left.number"; \
+ transition: LINEAR 0.1; \
+ }
+
+#define COMMON_PROGRAM \
+ program { \
+ name: "go_active"; \
+ signal: "elm,state,selected"; \
+ source: "elm"; \
+ action: STATE_SET "selected" 0.0; \
+ target: "bg"; \
+ } \
+ program { \
+ name: "go_passive"; \
+ signal: "elm,state,unselected"; \
+ source: "elm"; \
+ action: STATE_SET "default" 0.0; \
+ target: "bg"; \
+ transition: LINEAR 0.1; \
+ } \
+ program { \
+ name: "go_disabled"; \
+ signal: "elm,state,disabled"; \
+ source: "elm"; \
+ action: STATE_SET "disabled" 0.0; \
+ target: "disclip"; \
+ } \
+ program { \
+ name: "go_enabled"; \
+ signal: "elm,state,enabled"; \
+ source: "elm"; \
+ action: STATE_SET "default" 0.0; \
+ target: "disclip"; \
+ }
+
+
+ /* Genlist */
+ group {
+ name: "elm/genlist/item/number_textblock/default";
+ alias: "elm/genlist/item_odd/number_textblock/default";
+ data.item: "stacking" "above";
+ data.item: "selectraise" "on";
+ data.item: "texts" "elm.text.left.name elm.text.left.number";
+ data.item: "contents" "elm.icon.1";
+ data.item: "treesize" "20";
+ parts {
+ COMMON_BASE_STYLE
+ COMMON_BG
+ COMMON_NUM_TEXTBLOCK
+// COMMON_CALLERID_ICON
+ COMMON_DISCLIP
+ COMMON_BOTTOM_LINE
+ }
+ programs {
+ COMMON_PROGRAM
+ NAME_PROGRAM
+ NUMBER_PROGRAM
+ }
+ }
+
+ /* Genlist */
+ group {
+ name: "elm/genlist/item/name_textblock/default";
+ alias: "elm/genlist/item_odd/name_textblock/default";
+ data.item: "stacking" "above";
+ data.item: "selectraise" "on";
+ data.item: "texts" "elm.text.left.name elm.text.left.number";
+ data.item: "contents" "elm.icon.1";
+ data.item: "treesize" "20";
+ parts {
+ COMMON_BASE_STYLE
+ COMMON_BG
+ COMMON_NAME_TEXTBLOCK
+// COMMON_CALLERID_ICON
+ COMMON_DISCLIP
+ COMMON_BOTTOM_LINE
+ }
+ programs {
+ COMMON_PROGRAM
+ NAME_PROGRAM
+ NUMBER_PROGRAM
+ }
+ }
+
+ /* Genlist */
+ group {
+ name: "elm/genlist/item/noname_textblock/default";
+ alias: "elm/genlist/item_odd/noname_textblock/default";
+ data.item: "stacking" "above";
+ data.item: "selectraise" "on";
+ data.item: "texts" "elm.text.left.number";
+ data.item: "treesize" "20";
+ parts {
+ COMMON_BASE_STYLE
+ COMMON_BG
+ COMMON_NONAME_TEXTBLOCK
+ COMMON_DISCLIP
+ COMMON_BOTTOM_LINE
+ }
+ programs {
+ COMMON_PROGRAM
+ NUMBER_PROGRAM
+ }
+ }
+}
+