[genlist] add email app styles(3text.5icon.2, 2text.1icon.14)
authorHyoyoung Chang <hyoyoung.chang@samsung.com>
Wed, 14 Dec 2011 01:41:25 +0000 (10:41 +0900)
committerHyoyoung Chang <hyoyoung.chang@samsung.com>
Wed, 14 Dec 2011 04:01:58 +0000 (13:01 +0900)
Change-Id: Ia22b94cc2dd888db04790c00a99e9eeecb609aef

themes/groups/genlist/genlist_normal.edc

index f1f1c36..168b674 100644 (file)
       }
    }
 
+   /* NOTE: This style is new mailbox style for email application. Otherwise do not use this. */
+   group { name: "elm/genlist/item/3text.5icon.2/default";
+      alias: "elm/genlist/item_odd/3text.5icon.2/default";
+      alias: "elm/genlist/item_compress/3text.5icon.2/default";
+      alias: "elm/genlist/item_compress_odd/3text.5icon.2/default";
+      data.item: "stacking" "above";
+      data.item: "selectraise" "on";
+      data.item: "labels" "elm.text.subject elm.text.name elm.text.date";
+      data.item: "icons" "elm.icon.important elm.icon.num elm.icon.attach elm.icon.colorbar elm.swallow.outbox.progress elm.icon.checkbox";
+      data.item: "renames" "elm.edit.rename";
+      images {
+         image: "00_list_bar_press_1x80.png" COMP;
+      }
+      parts {
+         GENLIST_PART_BASE( GENLIST_HEIGHT_81_INC )
+         GENLIST_PART_BG
+         GENLIST_PART_BG_IMAGE
+         GENLIST_PART_BOTTOM_LINE
+         GENLIST_PART_PADDING_TOP( GENLIST_PADDING_6_INC )
+         GENLIST_PART_PADDING_BOTTOM( GENLIST_PADDING_6_INC )
+         GENLIST_PART_PADDING_LEFT( GENLIST_PADDING_10_INC )
+         GENLIST_PART_PADDING_RIGHT( GENLIST_PADDING_10_INC )
+         part { name: "elm.icon.colorbar";
+            clip_to: "disclip";
+            type: SWALLOW;
+            scale: 1;
+            description { state: "default" 0.0;
+               min: GENLIST_SIZE_6_INC GENLIST_SIZE_13_INC;
+               fixed: 1 1;
+               rel2.relative: 0.0 0.0;
+               align: 0.0 0.0;
+            }
+         }
+         part { name: "elm.icon.checkbox";
+            clip_to: "disclip";
+            type: SWALLOW;
+            mouse_events: 1;
+            scale: 1;
+            description { state: "default" 0.0;
+               max: GENLIST_SIZE_26_INC 0;
+               fixed: 1 1;
+               rel1 {
+                  relative: 1.0 0.0;
+                  to_x: "elm.padding.left";
+                  to_y: "elm.padding.top";
+               }
+               rel2 {
+                  relative: 0.0 0.0;
+                  to_x: "elm.padding.right";
+                  to_y: "elm.padding.bottom";
+               }
+               align: 0.0 0.5;
+            }
+         }
+         part { name: "elm.text.date";
+            clip_to: "disclip";
+            type: TEXT;
+            mouse_events: 0;
+            scale: 1;
+            description { state: "default" 0.0;
+               min: GENLIST_SIZE_98_INC GENLIST_SIZE_38_INC;
+               fixed: 1 1;
+               rel1 {
+                  to_x: "elm.padding.right";
+                  to_y: "elm.padding.bottom";
+               }
+               rel2 {
+                  relative: 0.0 0.0;
+                  to_x: "elm.padding.right";
+                  to_y: "elm.padding.bottom";
+               }
+               align: 1.0 1.0;
+               color: GENLIST_PART_SUB_TEXT_COLOR_INC;
+               text {
+                  font: "SLP:style=Medium";
+                  size: GENLIST_FONT_20_INC;
+                  min: 0 1;
+                  align: 1.0 0.5;
+               }
+            }
+            description { state: "selected" 0.0;
+               inherit: "default" 0.0;
+               color: GENLIST_PART_TEXT_SELECTED_COLOR_INC;
+            }
+            GENLIST_DESCRIPTION_RENAME_ENABLED
+         }
+         part { name: "elm.icon.important";
+            clip_to: "disclip";
+            type: SWALLOW;
+            mouse_events: 1;
+            scale: 1;
+            description { state: "default" 0.0;
+               min: GENLIST_SIZE_35_INC GENLIST_SIZE_38_INC;
+               fixed: 1 1;
+               rel1 {
+                  relative: 0.0 1.0;
+                  to_x: "elm.padding.right";
+                  to_y: "elm.padding.top";
+               }
+               rel2 {
+                  relative: 0.0 0.0;
+                  to_x: "elm.padding.right";
+                  to_y: "elm.text.date";
+               }
+               align: 1.0 0.5;
+            }
+            GENLIST_DESCRIPTION_RENAME_ENABLED
+         }
+         part { name: "elm.padding.icon.important.left";
+            clip_to: "disclip";
+            type: RECT;
+            scale: 1;
+            description { state: "default" 0.0;
+               min: GENLIST_PADDING_10_INC 0;
+               fixed: 1 0;
+               rel1{
+                  relative: 0.0 1.0;
+                  to_x: "elm.icon.important";
+               }
+               rel2 {
+                  relative: 0.0 1.0;
+                  to_x: "elm.icon.important";
+               }
+               align: 1.0 0.0;
+               visible: 0;
+            }
+         }
+         part { name: "elm.padding.icon.checkbox.right";
+            clip_to: "disclip";
+            type: RECT;
+            scale: 1;
+            description { state: "default" 0.0;
+               min: GENLIST_PADDING_10_INC 0;
+               fixed: 1 0;
+               rel1 {
+                  relative: 1.0 0.0;
+                  to_x: "elm.icon.checkbox";
+                  to_y: "elm.padding.top";
+               }
+               rel2 {
+                  relative: 1.0 0.0;
+                  to_x:  "elm.icon.checkbox";
+                  to_y: "elm.padding.bottom";
+               }
+               align: 1.0 0.0;
+               visible: 0;
+            }
+         }
+         part { name: "elm.text.subject.rect";
+            clip_to: "disclip";
+            type: RECT;
+            scale: 1;
+            description { state: "default" 0.0;
+               min: 0 GENLIST_SIZE_38_INC;
+               fixed: 1 1;
+               rel1 {
+                  relative: 1.0 1.0;
+                  to_x: "elm.padding.icon.checkbox.right";
+                  to_y: "elm.padding.top";
+               }
+               rel2 {
+                  relative: 0.0 0.0;
+                  to_x: "elm.padding.icon.important.left";
+                  to_y: "elm.padding.top";
+               }
+               align: 0.0 0.0;
+               visible: 0;
+            }
+         }
+         part { name: "elm.text.subject";
+            clip_to: "disclip";
+            type: TEXTBLOCK;
+            mouse_events: 0;
+            scale: 1;
+            description { state: "default" 0.0;
+               fixed: 1 1;
+               rel1.to: "elm.text.subject.rect";
+               rel2.to: "elm.text.subject.rect";
+               align: 0.0 0.0;
+               text {
+                  style: "genlist_email_textblock_unread_style";
+                  min: 0 1;
+                  max: 0 1;
+                  align: 0.0 0.5;
+               }
+            }
+            description { state: "selected" 0.0;
+               inherit: "default" 0.0;
+               text.style: "genlist_email_textblock_selected_style";
+            }
+            description { state: "read" 0.0;
+               inherit: "default" 0.0;
+               text.style: "genlist_email_textblock_read_style";
+            }
+            description { state: "unread" 0.0;
+               inherit: "default" 0.0;
+               text.style: "genlist_email_textblock_unread_style";
+            }
+            description { state: "urgency_read" 0.0;
+               inherit: "default" 0.0;
+               text.style: "genlist_email_textblock_urgency_read_style";
+            }
+            description { state: "urgency_unread" 0.0;
+               inherit: "default" 0.0;
+               text.style: "genlist_email_textblock_urgency_unread_style";
+            }
+            GENLIST_DESCRIPTION_RENAME_ENABLED
+         }
+         part { name: "elm.text.name";
+            clip_to: "disclip";
+            type: TEXTBLOCK;
+            scale: 1;
+            description { state: "default" 0.0;
+               fixed: 1 1;
+               rel1 {
+                  relative: 1.0 1.0;
+                  to_x: "elm.padding.icon.checkbox.right";
+                  to_y: "elm.text.subject";
+               }
+               rel2 {
+                  relative: 0.0 0.0;
+                  to_x: "elm.padding.icon.num.left";
+                  to_y: "elm.padding.bottom";
+               }
+               align: 0.0 0.5;
+               text {
+                  style: "genlist_email_textblock2_style";
+                  min: 0 1;
+                  align: 0.0 0.5;
+               }
+            }
+            description { state: "selected" 0.0;
+               inherit: "default" 0.0;
+               text.style: "genlist_email_textblock2_selected_style";
+            }
+            GENLIST_DESCRIPTION_RENAME_ENABLED
+         }
+         part { name: "elm.padding.icon.num.left";
+            clip_to: "disclip";
+            type: RECT;
+            scale: 1;
+            description { state: "default" 0.0;
+               min: GENLIST_PADDING_10_INC 0;
+               fixed: 1 0;
+               rel1 {
+                  relative: 0.0 1.0;
+                  to_x: "elm.icon.num";
+                  to_y: "elm.text.subject";
+               }
+               rel2 {
+                  relative: 0.0 0.0;
+                  to_x: "elm.icon.num";
+                  to_y: "elm.padding.bottom";
+               }
+               align: 1.0 0.0;
+               visible: 0;
+            }
+         }
+         part { name: "elm.icon.num";
+            clip_to: "disclip";
+            type: SWALLOW;
+            mouse_events: 0;
+            scale: 1;
+            description { state: "default" 0.0;
+               min: GENLIST_SIZE_70_INC GENLIST_SIZE_28_INC;
+               max: GENLIST_SIZE_70_INC GENLIST_SIZE_28_INC;
+               fixed: 1 1;
+               rel1 {
+                  relative: 0.0 1.0;
+                  to_x: "elm.padding.icon.attach.left";
+                  to_y: "elm.text.subject";
+               }
+               rel2 {
+                  relative: 0.0 0.0;
+                  to_x: "elm.padding.icon.attach.left";
+                  to_y: "elm.padding.bottom";
+               }
+               align: 1.0 0.5;
+            }
+            GENLIST_DESCRIPTION_RENAME_ENABLED
+         }
+         part { name: "elm.padding.icon.attach.left";
+            clip_to: "disclip";
+            type: RECT;
+            scale: 1;
+            description { state: "default" 0.0;
+               min: GENLIST_PADDING_10_INC 0;
+               fixed: 1 0;
+               rel1 {
+                  relative: 0.0 1.0;
+                  to_x: "elm.icon.attach";
+                  to_y: "elm.text.subject";
+               }
+               rel2 {
+                  relative: 0.0 0.0;
+                  to_x: "elm.icon.attach";
+                  to_y: "elm.padding.bottom";
+               }
+               align: 1.0 0.0;
+               visible: 0;
+            }
+         }
+         part { name: "elm.icon.attach";
+            clip_to: "disclip";
+            type: SWALLOW;
+            scale: 1;
+            description { state: "default" 0.0;
+               min: GENLIST_SIZE_20_INC GENLIST_SIZE_20_INC;
+               max: GENLIST_SIZE_20_INC GENLIST_SIZE_20_INC;
+               fixed: 1 1;
+               rel1 {
+                  relative: 0.0 1.0;
+                  to_x: "elm.text.date";
+                  to_y: "elm.text.subject";
+               }
+               rel2 {
+                  relative: 0.0 0.0;
+                  to_x: "elm.text.date";
+                  to_y: "elm.padding.bottom";
+               }
+               align: 1.0 0.5;
+            }
+            GENLIST_DESCRIPTION_RENAME_ENABLED
+         }
+         part { name: "elm.swallow.outbox.progress";
+            type: SWALLOW;
+            scale: 1;
+            mouse_events: 1;
+            repeat_events: 0;
+            description { state: "default" 0.0;
+               min: GENLIST_SIZE_105_INC 0;
+               fixed: 1 1;
+               color: 0 0 0 0;
+               align: 1.0 0.5;
+               rel1 {
+                  relative: 0.0 1.0;
+                  offset: 0 0;
+                  to_x: "elm.padding.right";
+                  to_y: "elm.padding.top";
+               }
+               rel2 {
+                  relative: 0.0 0.0;
+                  offset: 0 0;
+                  to_x: "elm.padding.right";
+                  to_y: "elm.padding.bottom";
+               }
+            }
+         }
+         GENLIST_PART_RENAME
+         GENLIST_PART_DISCLIP
+      }
+      programs {
+         // signal: elm,state,%s,active
+         //   a "check" item named %s went active
+         // signal: elm,state,%s,passive
+         //   a "check" item named %s went passive
+         // default is passive
+         program { name: "go_active";
+            signal: "elm,state,selected";
+            source: "elm";
+            action: STATE_SET "selected" 0.0;
+            target: "bg_image";
+            target: "elm.text.subject";
+            target: "elm.text.name";
+            target: "elm.text.date";
+         }
+         program { name: "go_passive";
+            signal: "elm,state,unselected";
+            source: "elm";
+            action: STATE_SET "default" 0.0;
+            target: "bg_image";
+            target: "elm.text.subject";
+            target: "elm.text.name";
+            target: "elm.text.date";
+            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";
+         }
+         program { name: "go_read";
+            signal: "elm,state,read";
+            source: "elm";
+            action: STATE_SET "read" 0.0;
+            target: "elm.text.subject";
+         }
+         program { name: "go_unread";
+            signal: "elm,state,unread";
+            source: "elm";
+            action: STATE_SET "unread" 0.0;
+            target: "elm.text.subject";
+         }
+         program { name: "go_urgeny_unread";
+            signal: "elm,state,urgency_unread";
+            source: "elm";
+            action: STATE_SET "urgency_unread" 0.0;
+            target: "elm.text.subject";
+         }
+         program { name: "go_urgency_read";
+            signal: "elm,state,urgency_read";
+            source: "elm";
+            action: STATE_SET "urgency_read" 0.0;
+            target: "elm.text.subject";
+         }
+      }
+   }
+
    /* NOTE: This style is a temporary style for email application. Otherwise do not use this. */
    group { name: "elm/genlist/item/3text.6icon/default";
       alias: "elm/genlist/item_odd/3text.6icon/default";
       }
    }
 
+   /* NOTE: This style is a temporary style for email application. Otherwise do not use this. */
+   group { name: "elm/genlist/item/2text.1icon.14/default";
+      alias: "elm/genlist/item_odd/2text.1icon.14/default";
+      alias: "elm/genlist/item_compress/2text.1icon.14/default";
+      alias: "elm/genlist/item_compress_odd/2text.1icon.14/default";
+      data.item: "stacking" "above";
+      data.item: "selectraise" "on";
+      data.item: "labels" "elm.text elm.text.msgcount";
+      data.item: "icons" "elm.check elm.icon";
+      data.item: "renames" "elm.edit.rename";
+      images {
+         image: "00_list_bar_press_1x80.png" COMP;
+      }
+      parts {
+         GENLIST_PART_BASE( GENLIST_HEIGHT_71_INC )
+         GENLIST_PART_BG
+         GENLIST_PART_BG_IMAGE
+         GENLIST_PART_BOTTOM_LINE
+         GENLIST_PART_PADDING_LEFT( GENLIST_PADDING_10_INC )
+         GENLIST_PART_PADDING_RIGHT( GENLIST_PADDING_10_INC )
+         part { name: "elm.check";
+            clip_to: "disclip";
+            type: SWALLOW;
+            mouse_events: 1;
+            scale: 1;
+            description { state: "default" 0.0;
+               max: GENLIST_SIZE_26_INC 0;
+               fixed: 1 1;
+               rel1 {
+                  relative: 1.0 0.0;
+                  to_x: "elm.padding.left";
+               }
+               rel2 {
+                  relative: 1.0 1.0;
+                  to_x: "elm.padding.left";
+               }
+               align: 0.0 0.5;
+            }
+            GENLIST_DESCRIPTION_RENAME_ENABLED
+         }
+
+         part { name: "elm.padding.icon.checkbox.right";
+            clip_to: "disclip";
+            type: RECT;
+            scale: 1;
+            description { state: "default" 0.0;
+               min: GENLIST_PADDING_10_INC 0;
+               fixed: 1 0;
+               rel1 {
+                  relative: 1.0 0.0;
+                  to_x: "elm.check";
+               }
+               rel2 {
+                  relative: 1.0 1.0;
+                  to_x:  "elm.check";
+               }
+               align: 1.0 0.0;
+               visible: 0;
+            }
+         }
+         part { name: "elm.icon";
+            clip_to: "disclip";
+            type: SWALLOW;
+            scale: 1;
+            description { state: "default" 0.0;
+               min: GENLIST_SIZE_40_INC GENLIST_SIZE_40_INC;
+               max: GENLIST_SIZE_40_INC GENLIST_SIZE_40_INC;
+               fixed: 1 1;
+               rel1 {
+                  relative: 1.0 0.0;
+                  to_x: "elm.padding.icon.checkbox.right";
+               }
+               rel2 {
+                  relative: 1.0 1.0;
+                  to_x: "elm.padding.icon.checkbox.right";
+               }
+               align: 0.0 0.5;
+            }
+            GENLIST_DESCRIPTION_RENAME_ENABLED
+         }
+         part { name: "elm.text.msgcount";
+            clip_to: "disclip";
+            type: TEXT;
+            mouse_events: 0;
+            scale: 1;
+            description {
+               state: "default" 0.0;
+               fixed: 1 1;
+               align: 0 0;
+               color: GENLIST_PART_EMAIL_MSGCOUNT_TEXT_COLOR_INC;
+               rel1.to: "elm.icon";
+               rel2.to: "elm.icon";
+               text {
+                  font: "SLP:style=Medium";
+                  size: GENLIST_FONT_18_INC;
+                  min: 0 1;
+                  align: 0.5 0.5;
+               }
+               align: 0.0 0.5;
+            }
+         }
+         part { name: "elm.padding.icon.right";
+            clip_to: "disclip";
+            type: RECT;
+            scale: 1;
+            description {
+               state: "default" 0.0;
+               min: GENLIST_SIZE_10_INC 0;
+               fixed: 1 0;
+               rel1 {
+                  relative: 1.0 0.0;
+                  to_x: "elm.icon";
+               }
+               rel2.to_x: "elm.icon";
+               visible: 0;
+            }
+         }
+         part { name: "elm.text";
+            clip_to: "disclip";
+            type: TEXTBLOCK;
+            mouse_events: 0;
+            scale: 1;
+            description { state: "default" 0.0;
+               rel1 {
+                  relative: 1.0 0.0;
+                  to_x: "elm.padding.icon.right";
+               }
+               rel2 {
+                  relative: 0.0 1.0;
+                  to_x: "elm.padding.right";
+               }
+               align: 0.0 0.5;
+               text {
+                  style: "genlist_email_textblock_unread_style";
+                  min: 0 1;
+                  max: 0 1;
+                  align: 0.0 0.5;
+               }
+            }
+            description { state: "selected" 0.0;
+               inherit: "default" 0.0;
+               color: GENLIST_PART_TEXT_SELECTED_COLOR_INC;
+            }
+            GENLIST_DESCRIPTION_RENAME_ENABLED
+         }
+         GENLIST_PART_RENAME
+         GENLIST_PART_DISCLIP
+      }
+      programs {
+         program { name: "go_active";
+            signal: "elm,state,selected";
+            source: "elm";
+            action: STATE_SET "selected" 0.0;
+            target: "bg_image";
+            target: "elm.text";
+         }
+         program { name: "go_passive";
+            signal: "elm,state,unselected";
+            source: "elm";
+            action: STATE_SET "default" 0.0;
+            target: "bg_image";
+            target: "elm.text";
+            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";
+         }
+      }
+   }
+
    group { name: "elm/genlist/item/2text.3icon/default";
       alias: "elm/genlist/item_odd/2text.3icon/default";
       alias: "elm/genlist/item_compress/2text.3icon/default";