[elm_navigationbar]: back button support and center aligned text support.
authorShilpa Singh <shilpa.singh@samsung.com>
Fri, 25 Feb 2011 09:22:45 +0000 (14:52 +0530)
committerShilpa Singh <shilpa.singh@samsung.com>
Fri, 25 Feb 2011 09:28:01 +0000 (14:58 +0530)
Change-Id: I5b51fe9ee9a4d44accc8fc301210b331a72c6957

themes/groups/navigationbar.edc

index bac1199..1440c38 100644 (file)
@@ -83,7 +83,7 @@ group {
          name: "navigationitem";
          type: IMAGE;
          mouse_events: 0;
-         clip_to: "clip_title";         
+         clip_to: "clip_title";
          scale: 1;
          description {
             state: "default" 0.0;
@@ -98,6 +98,21 @@ group {
          }
       }
       part {
+         name: "elm.swallow.btn1";
+         type: SWALLOW;
+         clip_to: "clip_title";
+         scale: 1;
+         description {
+            fixed: 1 1;
+            min: 0 40;
+            max: MAX_ITEM_WIDTH 40;
+            state: "default" 0.0;
+            rel1 { relative: 0.0 0.0; to: "navigationitem"; }
+            rel2 { relative: 0.0 1.0; to: "navigationitem"; }
+            align: 0.0 0.5;
+         }
+      }
+      part {
          name: "elm.rect.pada";
          type: RECT;
          mouse_events: 0;
@@ -134,7 +149,7 @@ group {
          type: TEXT;
          effect: SHADOW;
          scale:1;
-         clip_to: "clip_title";        
+         clip_to: "clip_title";
          description {
             state: "default" 0.0;
             text {
@@ -142,27 +157,27 @@ group {
                size: 22;
                min: 0 0;
                align: 0.5 0.5;
-               max: 1 0;               
+               max: 1 0;
             }
             color: NAVIGATIONBAR_TITLE_TEXT_COLOR;
             color2: 0 0 0 255;
-            rel1 { relative: 1.0 0.0; to: "elm.rect.pada"; }  
+            rel1 { relative: 1.0 0.0; to: "elm.rect.pada"; }
             rel2 { relative: 0.0 1.0; to: "elm.rect.padb"; }
-            align: 0.0 0.0;            
+            align: 0.5 0.5;
          }
       }
-      part {
-        name: "events";
-        type: RECT;
-        clip_to: "clip_title";
-        ignore_flags: ON_HOLD;
-        description {
-           state: "default" 0.0;
-           rel1 { relative: 0.0 0.0; to: "navigationitem"; }
-           rel2 { relative: 0.3 1.0; to: "navigationitem"; }
-           color: 0 0 0 0;
-        }
-     }
+     part {
+          name: "events";
+          type: RECT;
+          clip_to: "clip_title";
+          ignore_flags: ON_HOLD;
+          description {
+             state: "default" 0.0;
+             rel1 { to: "elm.text"; }
+             rel2 { to: "elm.text"; }
+             color: 0 0 0 0;
+            }
+         }
      part {
          name: "naviarrow";
          type: IMAGE;
@@ -175,9 +190,9 @@ group {
             max: 15 11;
             visible: 0;
             fixed: 1 1;
-            rel1 { relative: 0.0 0.0; to: "navigationitem"; }
-            rel2 { relative: 1.0 1.0; to: "navigationitem"; }
-            align: 0.05 1.0;
+            rel1 { relative: 0.0 0.0; to: "elm.text"; }
+            rel2 { relative: 1.0 1.0; to: "elm.text"; }
+            align: 0.5 1.0;
             image {
                normal: "00_winset_control_top_arrow.png";
             }
@@ -192,7 +207,7 @@ group {
          name: "elm.swallow.title";
          type: SWALLOW;
          scale:1;
-         clip_to: "clip_title";        
+         clip_to: "clip_title";
          description {
             fixed: 0 1;
             min: 0 ITEM_HEIGHT;
@@ -277,21 +292,21 @@ group {
          source: "elm";
          action: STATE_SET "extended" 0.0;
          target: "naviarrow";
-      }     
+      }
       program {
          name: "hide_extended";
          signal: "elm,state,hide,extended";
          source: "elm";
          action: STATE_SET "default" 0.0;
          target: "naviarrow";
-      }       
+      }
       program {
          name: "default_titlearea";
          signal: "elm,state,hide,title";
          source: "elm";
          action: STATE_SET "default" 0.0;
          target: "base";
-         target: "elm.swallow.title";        
+         target: "elm.swallow.title";
       }
       program {
          name: "enable_rect";