summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSungtaek Hong <sth253.hong@samsung.com>2017-01-11 17:03:37 +0900
committerSungtaek Hong <sth253.hong@samsung.com>2017-01-11 00:05:56 -0800
commit31a2bcdc7a1fe3cfe461bc915014522422efef90 (patch)
tree2b4ca0b2e830c273f6cf17e1c32af713b1fda99d
parent6e28c5ac9df60476feda5e13717bdaa6379fc044 (diff)
downloadelm-sharp-31a2bcdc7a1fe3cfe461bc915014522422efef90.tar.gz
elm-sharp-31a2bcdc7a1fe3cfe461bc915014522422efef90.tar.bz2
elm-sharp-31a2bcdc7a1fe3cfe461bc915014522422efef90.zip
theme: modify tv full, double_labe genlist item
Change-Id: Icc9f35de41fc3ae686f9b2e0bf3a64b3980edd29 Signed-off-by: Sungtaek Hong <sth253.hong@samsung.com>
-rw-r--r--ElmSharp/theme/tv/HD-inc.edc61
-rw-r--r--ElmSharp/theme/tv/color_classes.edc55
-rw-r--r--ElmSharp/theme/tv/widgets/genlist.edc192
3 files changed, 168 insertions, 140 deletions
diff --git a/ElmSharp/theme/tv/HD-inc.edc b/ElmSharp/theme/tv/HD-inc.edc
index 0171a4a..8d34a20 100644
--- a/ElmSharp/theme/tv/HD-inc.edc
+++ b/ElmSharp/theme/tv/HD-inc.edc
@@ -218,4 +218,65 @@ styles {
base: "color=#FFF color_class=check/on&off/text_pressed font=Tizen:weight=Light font_size=40 text_class=tizen ellipsis=1.0";
STYLE_TAGS
}
+ style { name: "list_group_index_text";
+ base: "color=#ffffff color_class=genlist_item/group_index/text font="FONT_M" font_size=30 text_class=list_item align=left";
+ STYLE_TAGS
+ STYLE_TAG_MATCH
+ }
+ style { name: "list_group_index_text_focused";
+ base: "color=#ffffff color_class=genlist_item/group_index/text_focused font="FONT_M" font_size=30 text_class=list_item align=left";
+ STYLE_TAGS
+ STYLE_TAG_MATCH
+ }
+ style { name: "list_group_index_text_disabled";
+ base: "color=#ffffff color_class=genlist_item/group_index/text_disabled font="FONT_M" font_size=30 text_class=list_item align=left";
+ STYLE_TAGS
+ STYLE_TAG_MATCH
+ }
+ style { name: "list_group_index_text_end";
+ base: "color=#ffffff color_class=genlist_item/group_index/text_end font="FONT_M" font_size=30 text_class=list_item align=right";
+ STYLE_TAGS
+ STYLE_TAG_MATCH
+ }
+ style { name: "list_group_index_text_end_focused";
+ base: "color=#ffffff color_class=genlist_item/group_index/text_end_focused font="FONT_M" font_size=30 text_class=list_item align=right";
+ STYLE_TAGS
+ STYLE_TAG_MATCH
+ }
+ style { name: "list_group_index_text_end_disabled";
+ base: "color=#ffffff color_class=genlist_item/group_index/text_end_disabled font="FONT_M" font_size=30 text_class=list_item align=right";
+ STYLE_TAGS
+ STYLE_TAG_MATCH
+ }
+ // ************* list double_label ********** //
+ style { name: "list_double_label_text";
+ base: "color=#ffffff color_class=genlist_item/double_label/text font=Tizen:weight=Light font_size=40 text_class=list_item ellipsis=1.0";
+ STYLE_TAGS
+ STYLE_TAG_MATCH
+ }
+ style { name: "list_double_label_text_pressed";
+ base: "color=#ffffff color_class=genlist_item/double_label/text_pressed font=Tizen:weight=Light font_size=40 text_class=list_item ellipsis=1.0";
+ STYLE_TAGS
+ STYLE_TAG_MATCH
+ }
+ style { name: "list_double_label_text_disabled";
+ base: "color=#ffffff color_class=genlist_item/double_label/text_disabled font=Tizen:weight=Light font_size=40 text_class=list_item ellipsis=1.0";
+ STYLE_TAGS
+ STYLE_TAG_MATCH
+ }
+ style { name: "list_double_label_text_sub";
+ base: "color=#ffffff color_class=genlist_item/double_label/text_sub font=Tizen:weight=Normal font_size=30 text_class=tizen ellipsis=1.0 align=left";
+ STYLE_TAGS
+ STYLE_TAG_MATCH
+ }
+ style { name: "list_double_label_text_sub_pressed";
+ base: "color=#ffffff color_class=genlist_item/double_label/text_sub_pressed font=Tizen:weight=Normal font_size=30 text_class=tizen ellipsis=1.0 align=left";
+ STYLE_TAGS
+ STYLE_TAG_MATCH
+ }
+ style { name: "list_double_label_text_sub_disabled";
+ base: "color=#ffffff color_class=genlist_item/double_label/text_sub_disabled font=Tizen:weight=Normal font_size=30 text_class=tizen ellipsis=1.0 align=left";
+ STYLE_TAGS
+ STYLE_TAG_MATCH
+ }
}
diff --git a/ElmSharp/theme/tv/color_classes.edc b/ElmSharp/theme/tv/color_classes.edc
index 83486bf..f574d58 100644
--- a/ElmSharp/theme/tv/color_classes.edc
+++ b/ElmSharp/theme/tv/color_classes.edc
@@ -197,19 +197,25 @@ color_classes {
color_class { "genlist_item/group_index/bg_focused";
color: 69 143 255 255;
}
- color_class { "genlist_item/group_index/bottomline";
- color: 222 222 222 222;
+ color_class { "genlist_item/group_index/text";
+ color: 255 255 255 204;
}
- color_class { "genlist_item/double_label/bg";
- color: 42 50 64 255;
+ color_class { "genlist_item/group_index/text_focused";
+ color: 255 255 255 255;
}
- color_class { "genlist_item/double_label/bg_selected";
- color: 69 143 255 255;
+ color_class { "genlist_item/group_index/text_disabled";
+ color: 50 50 50 255;
}
- color_class { "genlist_item/double_label/bg_focused";
- color: 69 143 255 255;
+ color_class { "genlist_item/group_index/text_end";
+ color: 255 255 255 204;
}
- color_class { "genlist_item/double_label/bottomline";
+ color_class { "genlist_item/group_index/text_end_focused";
+ color: 255 255 255 255;
+ }
+ color_class { "genlist_item/group_index/text_end_disabled";
+ color: 50 50 50 255;
+ }
+ color_class { "genlist_item/group_index/bottomline";
color: 222 222 222 222;
}
// Genlist-Type1
@@ -261,6 +267,37 @@ color_classes {
color_class { "genlist_item/type1/bottomline";
color: 204 204 204 255;
}
+ // Genlist-Double_Label
+ color_class { "genlist_item/double_label/bg";
+ color: 0 0 0 0;
+ }
+ color_class { "genlist_item/double_label/bg_pressed";
+ color: 0 0 0 10;
+ }
+ color_class { "genlist_item/double_label/bg_disabled";
+ color: 0 0 0 0;
+ }
+ color_class { "genlist_item/double_label/text";
+ color: 7 7 7 255;
+ }
+ color_class { "genlist_item/double_label/text_pressed";
+ color: 7 7 7 255;
+ }
+ color_class { "genlist_item/double_label/text_disabled";
+ color: 7 7 7 255;
+ }
+ color_class { "genlist_item/double_label/text_sub";
+ color: 115 115 115 255;
+ }
+ color_class { "genlist_item/double_label/text_sub_pressed";
+ color: 115 115 115 255;
+ }
+ color_class { "genlist_item/double_label/text_sub_disabled";
+ color: 115 115 115 163;
+ }
+ color_class { "genlist_item/double_label/bottomline";
+ color: 204 204 204 255;
+ }
color_class { "genlist_item/end_icon/bg";
color: 255 255 255 255;
}
diff --git a/ElmSharp/theme/tv/widgets/genlist.edc b/ElmSharp/theme/tv/widgets/genlist.edc
index 4381d53..0090c49 100644
--- a/ElmSharp/theme/tv/widgets/genlist.edc
+++ b/ElmSharp/theme/tv/widgets/genlist.edc
@@ -781,8 +781,8 @@ group { "elm/genlist/item/full/default"; nomouse; program_source: "elm";
data.item: "contents" "elm.swallow.content";
data.item: "focus_highlight" "on";
- target_group: "default" "base" "bottom_line" "elm.text";
- target_group: "disabled" "event" "elm.text";
+ target_group: "default" "base" "bottom_line";
+ target_group: "disabled" "event";
parts {
GENLIST_BASE_COLOR_CLASS("genlist_item/full/bg", "genlist_item/full/bg_selected", "genlist_item/full/bg_focused")
GENLIST_PAD(40, 40, 20, 20)
@@ -813,7 +813,7 @@ group { "elm/genlist/item/group_index/default"; nomouse; program_source: "elm";
GENLIST_PAD(70, 70, 20, 20)
GENLIST_BOTTOM_LINE_COLOR_CLASS("genlist_item/group_index/bottomline")
- text { "elm.text"; scale;
+ textblock { "elm.text"; scale;
desc { "default";
rel1.to: "pad.top.left";
rel1.relative: 1.0 1.0;
@@ -821,21 +821,22 @@ group { "elm/genlist/item/group_index/default"; nomouse; program_source: "elm";
rel2.to_y: "pad.bottom.right";
rel2.relative: 0.0 0.0;
color: 255 255 255 204; // 80%
- text { font: FONT_M; size: 30;
+ text {
min: 1 1;
- ellipsis: -1;
- align: 0.0 0.5;
+ style: "list_group_index_text";
}
}
desc { "focused"; inherit: "default";
color: 255 255 255 255;
+ text.style: "list_group_index_text_focused";
}
desc { "disabled"; inherit: "default";
color: 50 50 50 255;
+ text.style: "list_group_index_text_disabled";
}
}
- text { "elm.text.end"; scale;
+ textblock { "elm.text.end"; scale;
desc { "default";
rel1.to_x: "pad.center.right";
rel1.relative: 0.0 0.5;
@@ -844,17 +845,18 @@ group { "elm/genlist/item/group_index/default"; nomouse; program_source: "elm";
align: 1.0 0.5;
color: 255 255 255 204; // 80%
fixed: 1 1;
- text { font: FONT_M; size: 30;
+ text {
min: 1 1;
- ellipsis: -1;
- align: 1.0 0.5;
+ style: "list_group_index_text_end";
}
}
desc { "focused"; inherit: "default";
color: 255 255 255 255;
+ text.style: "list_group_index_text_end_focused";
}
desc { "disabled"; inherit: "default";
color: 50 50 50 255;
+ text.style: "list_group_index_text_end_disabled";
}
}
swallow { "elm.swallow.end"; mouse;
@@ -896,129 +898,8 @@ group { "elm/genlist/item/group_index/default"; nomouse; program_source: "elm";
programs {
GENLIST_PROGRAMS("default", "disabled")
}
-
}
-group { "elm/genlist/item/double_label/default"; nomouse; program_source: "elm";
- alias: "elm/genlist/item_compress/double_label/default";
- alias: "elm/genlist/tree/double_label/default";
- alias: "elm/genlist/tree_compress/double_label/default";
-
- data.item: "texts" "elm.text elm.text.sub";
- data.item: "contents" "elm.swallow.icon elm.swallow.end";
- data.item: "focus_highlight" "on";
- target_group: "default" "base" "bottom_line" "elm.text" "elm.text.sub";
- target_group: "disabled" "event" "elm.text" "elm.text.sub";
-
- parts {
- GENLIST_BASE_COLOR_CLASS("genlist_item/double_label/bg", "genlist_item/double_label/bg_selected", "genlist_item/double_label/bg_focused")
- GENLIST_PAD(32, 32, 29, 19)
- GENLIST_BOTTOM_LINE_COLOR_CLASS("genlist_item/double_label/bottomline")
- swallow { "elm.swallow.icon"; mouse; scale;
- desc { "default";
- rel1.to: "pad.top.left";
- rel1.relative: 1.0 1.0;
- rel2.to: "pad.top.left";
- rel2.relative: 1.0 1.0;
- min: 44 44;
- fixed: 1 1;
- align: 0.0 0.0;
- }
- }
- spacer { "pad.left.center"; scale;
- desc { "default";
- rel1.to: "elm.swallow.icon";
- rel1.relative: 0.0 1.0;
- rel2.to: "elm.swallow.icon";
- min: 0 3;
- fixed: 0 1;
- align: 0.5 0.0;
- }
- }
- text { "elm.text.sub"; scale;
- desc { "default";
- rel1.to: "pad.left.center";
- rel1.relative: 0.0 1.0;
- rel2.to_x: "pad.left.center";
- rel2.to_y: "pad.bottom.right";
- rel2.relative: 1.0 0.0;
- color: 211 211 211 255;
- min: 0 20;
- text { font: FONT_M; size: 24;
- min: 0 1;
- }
- }
- desc { "focused"; inherit: "default" 0.0;
- color: 255 255 255 255;
- }
- desc { "disabled"; inherit: "default" 0.0;
- color: 50 50 50 255;
- }
- }
- spacer { "pad.center"; scale;
- desc { "default";
- rel1.to: "elm.swallow.icon";
- rel1.relative: 1.0 0.0;
- rel2.to: "elm.swallow.icon";
- rel2.relative: 1.0 1.0;
- min: 19 0;
- fixed: 1 0;
- align: 0.0 0.5;
- }
- }
- text { "elm.text"; scale;
- desc { "default";
- rel1.to_x: "pad.center";
- rel1.relative: 1.0 0.5;
- rel2.to_x: "pad.center";
- rel2.relative: 1.0 0.5;
- align: 0.0 0.5;
- fixed: 1 1;
- color: 211 211 211 255;
- text { font: FONT_M; size: 24;
- min: 1 1;
- ellipsis: -1;
- }
- }
- desc { "focused"; inherit: "default" 0.0;
- color: 255 255 255 255;
- }
- desc { "disabled"; inherit: "default" 0.0;
- color: 50 50 50 255;
- }
- }
- spacer { "pad.center2"; scale;
- desc { "default";
- rel1.to_x: "elm.text";
- rel1.relative: 1.0 0.0;
- rel2.to_x: "elm.text";
- rel2.relative: 1.0 1.0;
- min: 14 0;
- fixed: 1 0;
- align: 0.0 0.5;
- }
- }
- //FIXME: with icon
- swallow { "elm.swallow.end"; mouse; scale;
- desc { "default";
- rel1.to_x: "pad.center2";
- rel1.relative: 1.0 0.0;
- rel2.to_x: "pad.bottom.right";
- rel2.relative: 0.0 1.0;
- min: 40 30;
- max: 40 30;
- fixed: 0 1;
- align: 0.0 0.5;
- }
- }
- }
- programs {
- GENLIST_PROGRAMS("default", "disabled")
- }
-}
-
-
-
group { "elm/genlist/item/event/default"
inherit_only: 1;
parts {
@@ -1600,6 +1481,55 @@ group { "elm/genlist/item/type1/default";
}
}
+group { "elm/genlist/item/double_label/default";
+ alias: "elm/genlist/item_compress/double_label/default";
+ alias: "elm/genlist/tree/double_label/default";
+ alias: "elm/genlist/tree_compress/double_label/default";
+ inherit: "elm/genlist/item/type1/default";
+ data.item: "texts" "elm.text elm.text.sub";
+ data.item: "contents" "elm.swallow.icon elm.swallow.end";
+ parts {
+ rect { "bg"; scale;
+ desc { "default";
+ color_class: "genlist_item/double_label/bg";
+ }
+ desc { "pressed"; inherit: "default";
+ color_class: "genlist_item/double_label/bg_pressed";
+ }
+ desc { "disabled"; inherit: "default";
+ color_class: "genlist_item/double_label/bg_disabled";
+ }
+ }
+ textblock { "elm.text.sub"; scale;
+ desc { "default";
+ text.style: "list_double_label_text_sub";
+ }
+ desc { "pressed"; inherit: "default";
+ text.style: "list_double_label_text_sub_pressed";
+ }
+ desc { "disabled"; inherit: "default";
+ text.style: "list_double_label_text_sub_disabled";
+ }
+ }
+ textblock { "elm.text"; scale;
+ desc { "default";
+ text.style: "list_double_label_text";
+ }
+ desc { "pressed"; inherit: "default";
+ text.style: "list_double_label_text_pressed";
+ }
+ desc { "disabled"; inherit: "default";
+ text.style: "list_double_label_text_disabled";
+ }
+ }
+ rect { "elm.bottomline"; scale;
+ desc { "default";
+ color_class: "genlist_item/double_label/bottomline";
+ }
+ }
+ }
+}
+
group { "elm/genlist/item/end_icon/default"; nomouse; program_source: "elm";
alias: "elm/genlist/item_compress/end_icon/default";
alias: "elm/genlist/tree/end_icon/default";