datetime: add color classes and text classes.
authorwoochan lee <wc0917.lee@samsung.com>
Mon, 4 Jan 2016 22:35:09 +0000 (14:35 -0800)
committerCedric BAIL <cedric@osg.samsung.com>
Mon, 4 Jan 2016 22:37:51 +0000 (14:37 -0800)
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 <cedric@osg.samsung.com>
legacy/elementary/data/themes/colorclasses.edc
legacy/elementary/data/themes/edc/elm/datetime.edc
legacy/elementary/src/lib/elm_config.c

index 3d61f8a..5f92a14 100644 (file)
@@ -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";
index a628a76..18ecf75 100644 (file)
             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; \
          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; \
    }
 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";
index beb144c..2618277 100644 (file)
@@ -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"},