[bubble] add new bubble style from genlist style
authorHyoyoung Chang <hyoyoung.chang@samsung.com>
Tue, 18 Oct 2011 02:20:08 +0000 (11:20 +0900)
committerHyoyoung Chang <hyoyoung.chang@samsung.com>
Tue, 18 Oct 2011 04:41:48 +0000 (13:41 +0900)
Change-Id: I981c090d452c15e80ce74f539e2c9e1fb5bf587c

themes/groups/bubble.edc

index 4e63986..4e08d60 100644 (file)
@@ -35,7 +35,8 @@ images {
        image: "07_message_bubble_sentmessage.png" COMP;
 }
 
-group { 
+// deprecated style
+group {
        name: "elm/bubble/base/default";
        alias: "elm/bubble/base/readmessage";
 
@@ -302,6 +303,7 @@ group {
        }
 }
 
+// deprecated style
 group { 
        name: "elm/bubble/base/sentmessage";
 
@@ -568,3 +570,329 @@ group {
        }
 }
 
+   group { name: "elm/layout/bubble/readmessage/default";
+      parts {
+         part { name: "base";
+            type: RECT;
+            repeat_events: 1;
+            description { state: "default" 0.0;
+               color: GENLIST_BUBBLE_BG_COLOR_INC;
+            }
+         }
+         part { name: "elm.padding.left";
+            type: RECT;
+            scale: 1;
+            description { state: "default" 0.0;
+               min: GENLIST_PADDING_3_INC 0;
+               fixed: 1 0;
+               visible: 0;
+               rel1.relative: 0.0 0.0;
+               rel2 {
+                  relative: 0.0 1.0;
+                  to_y: "elm.padding.bottom";
+               }
+               align: 0.0 0.0;
+            }
+         }
+         part { name: "elm.swallow.select_icon";
+            clip_to: "disclip";
+            type: SWALLOW;
+            scale: 1;
+            description { state: "default" 0.0;
+               fixed: 1 1;
+               align: 0.0 0.5;
+               visible: 0;
+               rel1 {
+                  relative: 1.0 0.0;
+                  to_x: "elm.padding.left";
+               }
+               rel2 {
+                  relative: 1.0 0.0;
+                  to_x: "elm.padding.left";
+                  to_y: "elm.padding.bottom";
+               }
+            }
+            description { state: "selectview" 0.0;
+               inherit: "default" 0.0;
+               visible: 1;
+            }
+         }
+         part { name: "elm.padding.icon1.right";
+            type: RECT;
+            scale: 1;
+            description { state: "default" 0.0;
+               min: GENLIST_PADDING_3_INC 0;
+               fixed: 1 0;
+               visible: 0;
+               color: 0 255 255 255;
+               rel1 {
+                  relative: 1.0 0.0;
+                  to_x: "elm.swallow.select_icon";
+               }
+               rel2 {
+                  relative: 1.0 0.0;
+                  to_x: "elm.swallow.select_icon";
+                  to_y: "elm.padding.bottom";
+               }
+               align: 0.0 0.0;
+            }
+         }
+         part { name: "elm.icon";
+            clip_to: "disclip";
+            type: SWALLOW;
+            scale: 1;
+            description { state: "default" 0.0;
+               rel2 {
+                  relative: 0.76 0.0;
+                  to_y: "elm.padding.bottom";
+               }
+            }
+            description { state: "selectview" 0.0;
+               inherit: "default" 0.0;
+               align: 1.0 0.0;
+               rel1 {
+                  relative: 1.0 0.0;
+                  to_x: "elm.padding.icon1.right";
+               }
+               rel2 {
+                  relative: 0.86 0.0;
+                  to_y: "elm.padding.bottom";
+               }
+            }
+         }
+         part { name: "elm.swallow.button1";
+            clip_to: "disclip";
+            type: SWALLOW;
+            scale: 1;
+            description { state: "default" 0.0;
+               align: 0.0 1.0;
+               fixed: 1 1;
+               rel1 { relative: 0.80 0.80; to_y: "elm.icon"; }
+               rel2 { relative: 0.88 0.95; to_y: "elm.icon"; }
+            }
+         }
+         part { name: "elm.swallow.button2";
+            clip_to: "disclip";
+            type: SWALLOW;
+            scale: 1;
+            description { state: "default" 0.0;
+               align: 0.0 1.0;
+               fixed: 1 1;
+               rel1 { relative: 0.89 0.80; to_y: "elm.icon"; }
+               rel2 { relative: 0.97 0.95; to_y: "elm.icon"; }
+            }
+         }
+         part { name: "elm.padding.bottom";
+              type: RECT;
+              scale: 1;
+              description { state: "default" 0.0;
+                 min: 0 GENLIST_PADDING_15_INC;
+                 fixed: 0 1;
+                 visible: 0;
+                 rel1.relative: 0.0 1.0;
+                 align: 0.0 1.0;
+              }
+         }
+         part { name: "disclip";
+             type: RECT;
+             description { state: "default" 0.0;
+             }
+             description { state: "disabled" 0.0;
+                inherit: "default" 0.0;
+                color: GENLIST_PART_DISCLIP_COLOR_INC;
+             }
+         }
+      }
+      programs {
+         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_defaultview";
+            signal: "elm,state,select,disable";
+            source: "elm";
+            action: STATE_SET "default" 0.0;
+            //transition: DECELERATE 0.7;
+           target: "elm.swallow.select_icon";
+            target: "elm.icon";
+         }
+         program { name: "go_selectview";
+            signal: "elm,state,select,enable";
+            source: "elm";
+            action: STATE_SET "selectview" 0.0;
+            transition: DECELERATE 0.7;
+            target: "elm.swallow.select_icon";
+            target: "elm.icon";
+         }
+      }
+   }
+
+   group { name: "elm/layout/bubble/sentmessage/default";
+      parts {
+         part { name: "base";
+            type: RECT;
+            repeat_events: 1;
+            description { state: "default" 0.0;
+               color: GENLIST_BUBBLE_BG_COLOR_INC;
+            }
+         }
+         part { name: "elm.padding.left";
+            type: RECT;
+            scale: 1;
+            description { state: "default" 0.0;
+               min: GENLIST_PADDING_3_INC 0;
+               fixed: 1 0;
+               visible: 0;
+               rel1.relative: 0.0 0.0;
+               rel2 {
+                  relative: 0.0 1.0;
+                  to_y: "elm.padding.bottom";
+               }
+               align: 0.0 0.0;
+            }
+         }
+         part { name: "elm.swallow.select_icon";
+            clip_to: "disclip";
+            type: SWALLOW;
+            scale: 1;
+            description { state: "default" 0.0;
+               fixed: 1 1;
+               align: 0.0 0.5;
+               visible: 0;
+               rel1 {
+                  relative: 1.0 0.0;
+                  to_x: "elm.padding.left";
+               }
+               rel2 {
+                  relative: 1.0 0.0;
+                  to_x: "elm.padding.left";
+                  to_y: "elm.padding.bottom";
+               }
+            }
+            description { state: "selectview" 0.0;
+               inherit: "default" 0.0;
+               visible: 1;
+            }
+         }
+         part { name: "elm.padding.icon1.right";
+            type: RECT;
+            scale: 1;
+            description { state: "default" 0.0;
+               min: GENLIST_PADDING_3_INC 0;
+               fixed: 1 0;
+               visible: 0;
+               color: 0 255 255 255;
+               rel1 {
+                  relative: 1.0 0.0;
+                  to_x: "elm.swallow.select_icon";
+               }
+               rel2 {
+                  relative: 1.0 0.0;
+                  to_x: "elm.swallow.select_icon";
+                  to_y: "elm.padding.bottom";
+               }
+               align: 0.0 0.0;
+            }
+         }
+         part { name: "elm.icon";
+            clip_to: "disclip";
+            type: SWALLOW;
+            scale: 1;
+            description { state: "default" 0.0;
+               rel1.relative: 0.24 0.0; //to_y: "elm.rect.top.pad"; }
+               rel2 {
+                  relative: 1.0 0.0;
+                  to_y: "elm.padding.bottom";
+               }
+            }
+            description { state: "selectview" 0.0;
+               inherit: "default" 0.0;
+               align: 1.0 0.0;
+               rel1 {
+                  relative: 0.28 0.0;
+               }
+            }
+         }
+         part { name: "elm.swallow.button1";
+            clip_to: "disclip";
+            type: SWALLOW;
+            scale: 1;
+            description { state: "default" 0.0;
+               align: 0.0 1.0;
+               fixed: 1 1;
+               max: 40 40;
+               rel1 { relative: 0.03 0.80; to_y: "elm.icon"; }
+               rel2 { relative: 0.11 0.95; to_y: "elm.icon"; }
+            }
+         }
+         part { name: "elm.swallow.button2";
+            clip_to: "disclip";
+            type: SWALLOW;
+            scale: 1;
+            description { state: "default" 0.0;
+               align: 0.0 1.0;
+               fixed: 1 1;
+               max: 40 40;
+               rel1 { relative: 0.12 0.80; to_y: "elm.icon"; }
+               rel2 { relative: 0.20 0.95; to_y: "elm.icon"; }
+            }
+         }
+         part { name: "elm.padding.bottom";
+              type: RECT;
+              scale: 1;
+              description { state: "default" 0.0;
+                 min: 0 GENLIST_PADDING_15_INC;
+                 fixed: 0 1;
+                 visible: 0;
+                 rel1.relative: 0.0 1.0;
+                 align: 0.0 1.0;
+              }
+         }
+         part { name: "disclip";
+             type: RECT;
+             description { state: "default" 0.0;
+             }
+             description { state: "disabled" 0.0;
+                inherit: "default" 0.0;
+                color: GENLIST_PART_DISCLIP_COLOR_INC;
+             }
+         }
+      }
+      programs {
+         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_defaultview";
+            signal: "elm,state,select,disable";
+            source: "elm";
+            action: STATE_SET "default" 0.0;
+            target: "elm.swallow.select_icon";
+            target: "elm.icon";
+         }
+         program { name: "go_selectview";
+            signal: "elm,state,select,enable";
+            source: "elm";
+            action: STATE_SET "selectview" 0.0;
+            target: "elm.swallow.select_icon";
+            target: "elm.icon";
+         }
+      }
+   }
+