diff options
author | woochan lee <wc0917.lee@samsung.com> | 2016-01-04 14:35:09 -0800 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2016-01-04 14:37:51 -0800 |
commit | 66a3262f34aa4dbc4945c7b88e5392db9167a698 (patch) | |
tree | f595244e5f187c6f223702590ff80ed60ea98802 | |
parent | fd142aa2fbd8b9f5a09c571ca91772142de1190e (diff) | |
download | elementary-66a3262f34aa4dbc4945c7b88e5392db9167a698.tar.gz |
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 <cedric@osg.samsung.com>
-rw-r--r-- | data/themes/colorclasses.edc | 12 | ||||
-rw-r--r-- | data/themes/edc/elm/datetime.edc | 15 | ||||
-rw-r--r-- | 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 3d61f8ad8..5f92a14cb 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 a628a760a..18ecf75d2 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 beb144c13..2618277d3 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"}, |