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>
This commit is contained in:
woochan lee 2016-01-04 14:35:09 -08:00 committed by Cedric BAIL
parent 3a1bff6959
commit d2b291586e
3 changed files with 26 additions and 6 deletions

View 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";

View File

@ -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";

View 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"},