[Time picker button] created new style for time picker button.
authorAmit Kamboj <amit.kamboj@samsung.com>
Wed, 8 Aug 2012 08:16:56 +0000 (13:46 +0530)
committerAmit Kamboj <amit.kamboj@samsung.com>
Thu, 9 Aug 2012 08:39:03 +0000 (14:09 +0530)
Change-Id: Id80c010907a9d7e52dcc2a62436ac7b5e78cc8a1

themes/inc/tizen-hd-inc.edc
themes/widgets/button.edc

index 5fc4b22..5f3fbb8 100644 (file)
 #define BUTTON_CONTROLBAR_ITEM_BUTTON_TEXTBLOCK_COLOR_INC "#f9f9f9"
 #define BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC 56 56
 
+#define BUTTON_DATETIME_AMPM_BG_MIN_INC 120 60
+
 #define BUTTON_TEXT_STYLE1_BG_MIN_INC 100 74
 #define BUTTON_TEXT_STYLE1_VISIBLE_BG_MIN_INC 148 74
 #define BUTTON_TEXT_STYLE1_ICONONLY_BG_MIN_INC 74 74
index fd82345..38aca23 100644 (file)
 
 //////////////////////////////////////////////////////////////
    group { name: "elm/button/base/style1/auto_expand";
-      alias: "elm/button/base/datetime_ampm/default";
       images {
          image: "00_button_01_normal.png" COMP;
          image: "00_button_01_normal_press.png" COMP;
    }
 
 //////////////////////////////////////////////////////////////////////////////////////
+   group { name: "elm/button/base/datetime_ampm/default";
+      inherit: "elm/button/base/style1/auto_expand";
+      script {
+         public button_state = BUTTON_STATE_ENABLED;
+      }
+      parts {
+         part { name: "bg";
+            type: RECT;
+            scale: 1;
+            mouse_events: 0;
+            description { state: "default" 0.0;
+               min: 0 0;
+               visible: 0;
+            }
+            description { state: "visible" 0.0;
+               inherit: "default" 0.0;
+               min: BUTTON_DATETIME_AMPM_BG_MIN_INC;
+            }
+            description { state: "icononly" 0.0;
+               inherit: "default" 0.0;
+            }
+         }
+      }
+   }
+
+//////////////////////////////////////////////////////////////////////////////////////
    group { name: "elm/button/base/style1/multiline";
       images {
          image: "00_button_01_normal.png" COMP;