hermet pushed a commit to branch master.

commit 0700de9b9fee439032906d07e9f65314f76634c5
Author: ChunEon Park <[email protected]>
Date:   Tue Jul 23 22:38:38 2013 +0900

    themes/dark - more elaborate dayselector texts
---
 edje/edc/elm/dayselector.edc | 106 +++++++++++++++++++++++++------------------
 1 file changed, 63 insertions(+), 43 deletions(-)

diff --git a/edje/edc/elm/dayselector.edc b/edje/edc/elm/dayselector.edc
index 18e3a1d..d50ab0c 100644
--- a/edje/edc/elm/dayselector.edc
+++ b/edje/edc/elm/dayselector.edc
@@ -181,15 +181,22 @@ group { name: "elm/check/base/dayselector/default";
          }
       }
       public check_text_show() {
-        if(get_int(check_state) == DAYSELECOR_DAY_STATE_SELECTED)
+        if(get_int(check_state) == DAYSELECOR_DAY_STATE_SELECTED) {
           set_state(PART:"elm.text", "selected", 0.0);
-        else {
-          if(get_int(check_type) == DAYSELECOR_DAY_TYPE_WEEKDAY)
+          set_state(PART:"text2", "selected", 0.0);
+        } else {
+          if(get_int(check_type) == DAYSELECOR_DAY_TYPE_WEEKDAY) {
             set_state(PART:"elm.text", "default", 0.0);
-          else if (get_int(check_type) == DAYSELECOR_DAY_TYPE_WEEKEND_DEFAULT)
+            set_state(PART:"text2", "default", 0.0);
+          } else if (get_int(check_type) ==
+                     DAYSELECOR_DAY_TYPE_WEEKEND_DEFAULT) {
             set_state(PART:"elm.text", "weekend_default", 0.0);
-          else if (get_int(check_type) == DAYSELECOR_DAY_TYPE_WEEKEND_STYLE1)
+            set_state(PART:"text2", "weekend_default", 0.0);
+          }
+          else if (get_int(check_type) == DAYSELECOR_DAY_TYPE_WEEKEND_STYLE1) {
             set_state(PART:"elm.text", "weekend_style1", 0.0);
+            set_state(PART:"text2", "weekend_style1", 0.0);
+          }
         }
       }
    }
@@ -200,7 +207,12 @@ group { name: "elm/check/base/dayselector/default";
          scale: 1;
          description {
             state: "default" 0.0;
+            image {
+               normal: "day_middle_normal.png";
+               border: 1 1 2 4;
+            }
          }
+         /* default */
          description { state: "default_left" 0.0;
             inherit: "default" 0.0;
             image {
@@ -222,6 +234,7 @@ group { name: "elm/check/base/dayselector/default";
                border: 1 1 2 4;
             }
          }
+         /* pressed */
          description { state: "pressed_left" 0.0;
             inherit: "default" 0.0;
             image {
@@ -243,6 +256,7 @@ group { name: "elm/check/base/dayselector/default";
                border: 1 0 2 3;
             }
          }
+         /* selected */
          description { state: "selected_left" 0.0;
             inherit: "default" 0.0;
             image {
@@ -267,12 +281,10 @@ group { name: "elm/check/base/dayselector/default";
       }
       part {
          name: "left_padding";
-         type: RECT;
-         mouse_events: 0;
+         type: SPACER;
          scale: 1;
          description { state: "default" 0.0;
             min: 5 0;
-            visible: 0;
             fixed: 1 0;
             align: 0.0 0.5;
             rel2.relative: 0.0 1.0;
@@ -280,11 +292,9 @@ group { name: "elm/check/base/dayselector/default";
       }
       part {
          name: "right_padding";
-         type: RECT;
-         mouse_events: 0;
+         type: SPACER;
          scale: 1;
          description { state: "default" 0.0;
-            visible: 0;
             min: 5 0;
             fixed: 1 0;
             align: 1.0 0.5;
@@ -296,9 +306,8 @@ group { name: "elm/check/base/dayselector/default";
          type: TEXT;
          mouse_events: 0;
          scale: 1;
-         effect: GLOW;
-         description {
-            state: "default" 0.0;
+         effect: SHADOW BOTTOM;
+         description { state: "default" 0.0;
             rel1 {
                to: "left_padding";
                relative: 1.0 0.0;
@@ -311,31 +320,22 @@ group { name: "elm/check/base/dayselector/default";
                font: FN;
                size: 10;
                min: 1 1;
+               text_class: "button";
             }
             color: 255 255 255 255;
-            color2: 255 255 255 0;
-            color3: 255 255 255 0;
+            color3: 0 0 0 128;
          }
-         description {
-            state: "weekend_default" 0.0;
+         description { state: "weekend_default" 0.0;
             inherit: "default" 0.0;
-            color: 51 153 255 255;
-            color2: 51 153 255 24;
-            color3: 51 153 255 18;
+            visible: 0;
          }
-         description {
-            state: "weekend_style1" 0.0;
+         description { state: "weekend_style1" 0.0;
             inherit: "default" 0.0;
-            color: 51 153 255 255;
-            color2: 51 153 255 24;
-            color3: 51 153 255 18;
+            visible: 0;
          }
-         description {
-            state: "selected" 0.0;
+         description { state: "selected" 0.0;
             inherit: "default" 0.0;
-            color: 255 255 255 255;
-            color2: 255 255 255 24;
-            color3: 255 255 255 18;
+            visible: 0;
          }
       }
       part {
@@ -343,24 +343,44 @@ group { name: "elm/check/base/dayselector/default";
          type: TEXT;
          mouse_events: 0;
          scale: 1;
-         effect: SHADOW BOTTOM;
-         description {
-            state: "default" 0.0;
-            rel1 {
-               to: "left_padding";
-               relative: 1.0 0.0;
-            }
-            rel2 {
-               to: "right_padding";
-               relative: 0.0 1.0;
-            }
+         effect: GLOW;
+         description { state: "default" 0.0;
+            rel1.to: "elm.text";
+            rel1.offset: 0 -1;
+            rel2.to: "elm.text";
+            rel2.offset: -1 -2;
             text {
                font: FN;
                size: 10;
                min: 1 1;
+               text_source: "elm.text";
+               text_class: "button";
             }
+            color: 51 153 255 255;
+            color2: 51 153 255 24;
+            color3: 51 153 255 18;
+            visible: 0;
+         }
+         description {
+            state: "weekend_default" 0.0;
+            inherit: "default" 0.0;
+            visible: 1;
+         }
+         description {
+            state: "weekend_style1" 0.0;
+            inherit: "default" 0.0;
             color: 255 255 255 255;
-            color3: 0 0 0 128;
+            color2: 255 255 255 24;
+            color3: 255 255 255 18;
+            visible: 1;
+         }
+         description {
+            state: "selected" 0.0;
+            inherit: "default" 0.0;
+            color: 255 255 255 255;
+            color2: 255 255 255 24;
+            color3: 255 255 255 18;
+            visible: 1;
          }
       }
       part {

-- 

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk

Reply via email to