[multibuttonentry] Winset dark GUI v0.8
authorBora Hwang <bora1.hwang@samsung.com>
Fri, 28 Jun 2013 07:01:44 +0000 (16:01 +0900)
committerSungho Kwak <sungho1.kwak@samsung.com>
Mon, 1 Jul 2013 08:10:18 +0000 (17:10 +0900)
button dim images are added
button text shadow for dark theme is added

Change-Id: I58e84d0788cf44a410a51cec1ecfc2912dffaab0

themes/images/HD/dark/Controls/00_contacts_button_dim.png [new file with mode: 0755]
themes/images/HD/light/Controls/00_contacts_button_dim.png [new file with mode: 0755]
themes/inc/tizen-dark-inc.edc
themes/inc/tizen-light-inc.edc
themes/widgets/multibuttonentry.edc

diff --git a/themes/images/HD/dark/Controls/00_contacts_button_dim.png b/themes/images/HD/dark/Controls/00_contacts_button_dim.png
new file mode 100755 (executable)
index 0000000..3a0ed86
Binary files /dev/null and b/themes/images/HD/dark/Controls/00_contacts_button_dim.png differ
diff --git a/themes/images/HD/light/Controls/00_contacts_button_dim.png b/themes/images/HD/light/Controls/00_contacts_button_dim.png
new file mode 100755 (executable)
index 0000000..4217a47
Binary files /dev/null and b/themes/images/HD/light/Controls/00_contacts_button_dim.png differ
index a8e93ca..de627d5 100755 (executable)
 #define MULTIBUTTONENTRY_BUTTON_NINEPATCH_INC 8 8 17 17
 #define MULTIBUTTONENTRY_BUTTON_TEXT_SIZE_INC 32
 #define MULTIBUTTONENTRY_BUTTON_TEXT_COLOR_INC "#FAFAFA"
+#define MULTIBUTTONENTRY_BUTTON_TEXT_NORMAL_SHADOW_COLOR_INC "#000000BF"
+#define MULTIBUTTONENTRY_BUTTON_TEXT_PRESSED_SHADOW_COLOR_INC "#000000BF"
 #define MULTIBUTTONENTRY_NUMBER_TEXT_COLOR_INC 250 250 250 255 // same as multibuttonentry label
 #define MULTIBUTTONENTRY_CLOSEDBUTTON_SIZE_INC 64
 
index daa4547..9bc8969 100755 (executable)
 #define MULTIBUTTONENTRY_BUTTON_NINEPATCH_INC 8 8 17 17
 #define MULTIBUTTONENTRY_BUTTON_TEXT_SIZE_INC 32
 #define MULTIBUTTONENTRY_BUTTON_TEXT_COLOR_INC "#FAFAFA"
+#define MULTIBUTTONENTRY_BUTTON_TEXT_NORMAL_SHADOW_COLOR_INC "#00000000"
+#define MULTIBUTTONENTRY_BUTTON_TEXT_PRESSED_SHADOW_COLOR_INC "#00000000"
 #define MULTIBUTTONENTRY_NUMBER_TEXT_COLOR_INC 128 128 128 255 // same as multibuttonentry label
 #define MULTIBUTTONENTRY_CLOSEDBUTTON_SIZE_INC 64
 
index a7decfd..201c514 100644 (file)
@@ -147,17 +147,26 @@ group {
    styles {
       style {
          name: "multibuttonentry_btn_text_style";
-         base: "font=Tizen:style=Regular font_size="MULTIBUTTONENTRY_BUTTON_TEXT_SIZE_INC" color="MULTIBUTTONENTRY_BUTTON_TEXT_COLOR_INC" text_class=tizen";
+         base: "font=Tizen:style=Regular font_size="MULTIBUTTONENTRY_BUTTON_TEXT_SIZE_INC" color="MULTIBUTTONENTRY_BUTTON_TEXT_COLOR_INC" style=far_shadow, bottom shadow_color="MULTIBUTTONENTRY_BUTTON_TEXT_NORMAL_SHADOW_COLOR_INC" text_class=tizen";
+      }
+      style {
+         name: "multibuttonentry_btn_text_pressed_style";
+         base: "font=Tizen:style=Regular font_size="MULTIBUTTONENTRY_BUTTON_TEXT_SIZE_INC" color="MULTIBUTTONENTRY_BUTTON_TEXT_COLOR_INC" style=far_shadow, top shadow_color="MULTIBUTTONENTRY_BUTTON_TEXT_PRESSED_SHADOW_COLOR_INC" text_class=tizen";
       }
       style {
          name: "multibuttonentry_btn_text_ellipsis_style";
-         base: "font=Tizen:style=Regular font_size="MULTIBUTTONENTRY_BUTTON_TEXT_SIZE_INC" color="MULTIBUTTONENTRY_BUTTON_TEXT_COLOR_INC" ellipsis=1 text_class=tizen";
+         base: "font=Tizen:style=Regular font_size="MULTIBUTTONENTRY_BUTTON_TEXT_SIZE_INC" color="MULTIBUTTONENTRY_BUTTON_TEXT_COLOR_INC" style=far_shadow, bottom shadow_color="MULTIBUTTONENTRY_BUTTON_TEXT_NORMAL_SHADOW_COLOR_INC" ellipsis=1 text_class=tizen";
+      }
+      style {
+         name: "multibuttonentry_btn_text_ellipsis_pressed_style";
+         base: "font=Tizen:style=Regular font_size="MULTIBUTTONENTRY_BUTTON_TEXT_SIZE_INC" color="MULTIBUTTONENTRY_BUTTON_TEXT_COLOR_INC" style=far_shadow, top shadow_color="MULTIBUTTONENTRY_BUTTON_TEXT_PRESSED_SHADOW_COLOR_INC" ellipsis=1 text_class=tizen";
       }
    }
 
    images {
       image: "00_contacts_button.png" COMP;
       image: "00_contacts_button_press.png" COMP;
+      image: "00_contacts_button_dim.png" COMP;
    }
 
    data.item: "button_left_pad" MULTIBUTTONENTRY_BUTTON_PAD_INC;
@@ -183,6 +192,11 @@ group {
             inherit: "default" 0.0;
             image.normal: "00_contacts_button_press.png";
          }
+         description {
+            state: "out_of_focus" 0.0;
+            inherit: "default" 0.0;
+            image.normal: "00_contacts_button_dim.png";
+         }
       }
       part {
          name: "left.padding";
@@ -234,6 +248,11 @@ group {
             }
          }
          description {
+            state: "focused" 0.0;
+            inherit: "default" 0.0;
+            text.style: "multibuttonentry_btn_text_pressed_style";
+         }
+         description {
             state: "ellipsis" 0.0;
             inherit: "default" 0.0;
             text {
@@ -241,6 +260,11 @@ group {
                min: 0 0;
             }
          }
+         description {
+            state: "ellipsis_focused" 0.0;
+            inherit: "ellipsis" 0.0;
+            text.style: "multibuttonentry_btn_text_ellipsis_pressed_style";
+         }
       }
       part { name: "events";
          type: RECT;
@@ -263,16 +287,50 @@ group {
          name: "focused";
          signal: "focused";
          source: "";
-         action: STATE_SET "focused" 0.0;
-         target: "elm.btn.bg";
+         script {
+            new st[31];
+            new Float:vl;
+            get_state(PART:"elm.btn.text", st, 30, vl);
+            if (!strcmp(st, "default"))
+              set_state(PART:"elm.btn.text", "focused", 0.0);
+            else
+              set_state(PART:"elm.btn.text", "ellipsis_focused", 0.0);
+
+            set_state(PART:"elm.btn.bg", "focused", 0.0);
+         }
          after: "selected";
       }
       program {
          name: "unfocused";
          signal: "default";
          source: "";
-         action: STATE_SET "default" 0.0;
-         target: "elm.btn.bg";
+         script {
+            new st[31];
+            new Float:vl;
+            get_state(PART:"elm.btn.text", st, 30, vl);
+            if (!strcmp(st, "focused"))
+              set_state(PART:"elm.btn.text", "default", 0.0);
+            else
+              set_state(PART:"elm.btn.text", "ellipsis", 0.0);
+
+            set_state(PART:"elm.btn.bg", "default", 0.0);
+         }
+      }
+      program {
+         name: "mbe_lose_focus";
+         signal: "lose_focus";
+         source: "";
+         script {
+            new st[31];
+            new Float:vl;
+            get_state(PART:"elm.btn.text", st, 30, vl);
+            if (!strcmp(st, "focused"))
+              set_state(PART:"elm.btn.text", "default", 0.0);
+            else
+              set_state(PART:"elm.btn.text", "ellipsis", 0.0);
+
+            set_state(PART:"elm.btn.bg", "out_of_focus", 0.0);
+         }
       }
       program {
          name: "clicked";