summaryrefslogtreecommitdiff
path: root/lib/edc/dialer_theme.edc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/edc/dialer_theme.edc')
-rw-r--r--lib/edc/dialer_theme.edc278
1 files changed, 278 insertions, 0 deletions
diff --git a/lib/edc/dialer_theme.edc b/lib/edc/dialer_theme.edc
new file mode 100644
index 0000000..273ff3f
--- /dev/null
+++ b/lib/edc/dialer_theme.edc
@@ -0,0 +1,278 @@
+/*
+ * Copyright 2012 Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Flora License, Version 1.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.tizenopensource.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 ITEM_H 128
+#define DIALER_TEXTBLOCK_TEXT_SIZE 35
+
+collections {
+ styles {
+ style {
+ name: "dialer_textblock_style";
+ base: "font=SLP text_class=slp font_size=35 align=left color=#737373 wrap=word ellipsis=1.0";
+ tag: "color80" "+ color=#24c4ff";
+ tag: "color01" "+ color=#ffffff";
+ tag: "gray" "+ color=#808080";
+ tag: "m" "+ font=SLP:style=Medium text_class=slp_medium";
+ tag: "b" "+ font=SLP:style=Bold text_class=slp_bold";
+ tag: "hilight" "+ font=SLP:style=Medium text_class=slp_medium";
+ }
+ }
+
+#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: 31 31 31 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: 65 65 65 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: 15 0; to: "bg"; } \
+ rel2 { relative: 1.0 0.5; offset: -15 0; to: "bg"; } \
+ color: 255 255 255 255; \
+ text { min: 0 1; style: "dialer_textblock_style"; } \
+ } \
+ } \
+ part { \
+ name: "elm.text.left.number"; \
+ type: TEXT; \
+ scale: 1; \
+ mouse_events: 0; \
+ description { \
+ state: "default" 0.0; \
+ rel1 { relative: 0.0 0.5; offset: 15 0; to: "bg"; } \
+ rel2 { relative: 1.0 1.0; offset: -15 0; to: "bg"; } \
+ color: 255 255 255 255; \
+ text { \
+ font: "SLP:style=Medium"; \
+ text_class: "slp_medium"; \
+ size: DIALER_TEXTBLOCK_TEXT_SIZE; \
+ min: 0 1; \
+ align: 0.0 0.5; \
+ } \
+ } \
+ }
+
+#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: 15 0; to: "bg"; } \
+ rel2 { relative: 1.0 0.5; offset: -15 0; to: "bg"; } \
+ color: 255 255 255 255; \
+ text { \
+ font: "SLP:style=Medium"; \
+ text_class: "slp_medium"; \
+ size: DIALER_TEXTBLOCK_TEXT_SIZE; \
+ min: 0 1; \
+ align: 0.0 0.5; \
+ } \
+ } \
+ } \
+ part { \
+ name: "elm.text.left.number"; \
+ type: TEXTBLOCK; \
+ scale: 1; \
+ mouse_events: 0; \
+ description { \
+ state: "default" 0.0; \
+ rel1 { relative: 0.0 0.5; offset: 15 0; to: "bg"; } \
+ rel2 { relative: 1.0 1.0; offset: -15 0; to: "bg"; } \
+ color: 255 255 255 255; \
+ text { min: 0 1;style: "dialer_textblock_style"; } \
+ } \
+ }
+
+#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: 15 0; to: "bg"; } \
+ rel2 { relative: 1.0 0.75; offset: -15 0; to: "bg"; } \
+ color: 255 255 255 255; \
+ text { min: 0 1;style: "dialer_textblock_style"; } \
+ } \
+ }
+
+#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: "treesize" "20";
+ parts {
+ COMMON_BASE_STYLE
+ COMMON_BG
+ COMMON_NUM_TEXTBLOCK
+ COMMON_DISCLIP
+ COMMON_BOTTOM_LINE
+ }
+ programs {
+ COMMON_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: "treesize" "20";
+ parts {
+ COMMON_BASE_STYLE
+ COMMON_BG
+ COMMON_NAME_TEXTBLOCK
+ COMMON_DISCLIP
+ COMMON_BOTTOM_LINE
+ }
+ programs {
+ COMMON_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
+ }
+ }
+}
+