cedric pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=66a3262f34aa4dbc4945c7b88e5392db9167a698

commit 66a3262f34aa4dbc4945c7b88e5392db9167a698
Author: woochan lee <wc0917....@samsung.com>
Date:   Mon Jan 4 14:35:09 2016 -0800

    datetime: add color classes and text classes.
    
    Summary:
    The following new color classes and text classes
    for datetime widget are added.
    
    "datetime_bg", "Datetime Background"
    "datetime_separator_text", "Datetime Separator Text"
    "datetime_separator_text_disabled", "Datetime Separator Disabled Text"
    
    @feature
    
    Reviewers: raster, cedric, kimcinoo, Hermet, woohyun
    
    Subscribers: SanghyeonLee, eagleeye, id213sin
    
    Differential Revision: https://phab.enlightenment.org/D3485
    
    Signed-off-by: Cedric BAIL <ced...@osg.samsung.com>
---
 data/themes/colorclasses.edc     | 12 ++++++++++++
 data/themes/edc/elm/datetime.edc | 15 +++++++++------
 src/lib/elm_config.c             |  5 +++++
 3 files changed, 26 insertions(+), 6 deletions(-)

diff --git a/data/themes/colorclasses.edc b/data/themes/colorclasses.edc
index 3d61f8a..5f92a14 100644
--- a/data/themes/colorclasses.edc
+++ b/data/themes/colorclasses.edc
@@ -166,6 +166,18 @@ color_classes {
       color: FN_COL_DISABLE;
       desc: "Text of a disabled checkbox's label when checked";
    }
+   color_class { name: "datetime_bg";
+      color: 0 0 0 0;
+      desc: "Background of a datetime widget";
+   }
+   color_class { name: "datetime_separator_text";
+      color: FN_COL_DEFAULT;
+      desc: "Text in a datetime separator area";
+   }
+   color_class { name: "datetime_separator_text_disabled";
+      color: FN_COL_DISABLE;
+      desc: "Text in a disabled datetime separator area";
+   }
    color_class { name: "entry_text";
       color: FN_COL_DEFAULT_BASIC;
       desc: "Text in an entry box";
diff --git a/data/themes/edc/elm/datetime.edc b/data/themes/edc/elm/datetime.edc
index a628a76..18ecf75 100644
--- a/data/themes/edc/elm/datetime.edc
+++ b/data/themes/edc/elm/datetime.edc
@@ -50,14 +50,13 @@
             relative: 1.0 1.0; \
             to: "field"#_after; \
          } \
-         color: FN_COL_DEFAULT; \
-         color_class: "datetime_text"; \
+         color_class: "datetime_separator_text"; \
          text { \
             font: "Sans"; size: 10; \
             min: 1 0; \
             ellipsis: -1; \
             align: 0.5 0.5; \
-            text_class: "datetime_text"; \
+            text_class: "datetime_separator_text"; \
          } \
       } \
       description { state: "enable" 0.0; \
@@ -75,12 +74,11 @@
          visible: 0; \
          rel1.to: "separator"#_pos; \
          rel2.to: "separator"#_pos; \
-         color: FN_COL_DISABLE; \
-         color_class: "datetime_text"; \
+         color_class: "datetime_separator_text_disabled"; \
          text { \
             text_source: "separator"#_pos; \
             font: "Sans"; size: 10; \
-            text_class: "datetime_text"; \
+            text_class: "datetime_separator_text_disabled"; \
          } \
       } \
       description { state: "enable" 0.0; \
@@ -104,6 +102,11 @@
    }
 group { name: "elm/datetime/base/default";
    parts {
+      part { name: "bg"; type: RECT;
+         description { state: "default" 0.0;
+            color_class: "datetime_bg";
+         }
+      }
       part { name: "clip"; type: RECT;
          description { state: "default" 0.0;
             rel1.to: "separator0";
diff --git a/src/lib/elm_config.c b/src/lib/elm_config.c
index beb144c..2618277 100644
--- a/src/lib/elm_config.c
+++ b/src/lib/elm_config.c
@@ -64,6 +64,8 @@ static const Elm_Text_Class _elm_text_classes[] = {
    {"calendar_day_text_holiday", "Holiday Text"},
    {"calendar_day_text_today", "Today Text"},
    {"calendar_day_text_disabled", "Disabled Day Text"},
+   {"datetime_separator_text", "Datetime Separator Text"},
+   {"datetime_separator_text_disabled", "Datetime Separator Disabled Text"},
    {"label", "Label"},
    {"entry", "Entry"},
    {"title_bar", "Title Bar"},
@@ -91,6 +93,9 @@ static const Elm_Color_Class _elm_color_classes[] = {
    {"calendar_day_selected", "Selected Day Effect"},
    {"calendar_day_highlighted", "Highlighted Day Effect"},
    {"calendar_day_checked", "Checked Day Effect"},
+   {"datetime_bg", "Datetime Background"},
+   {"datetime_separator_text", "Datetime Separator Text"},
+   {"datetime_separator_text_disabled", "Datetime Separator Disabled Text"},
    {"hoversel_item_active", "Hoversel Item Text"},
    {"hoversel_text_disabled", "Hoversel Item Disabled Text"},
    {"radio_text", "Radio Text"},

-- 


Reply via email to