rimmed pushed a commit to branch master. http://git.enlightenment.org/tools/eflete.git/commit/?id=bb3903fcbfd2184c63b66b903e34de3648c49d0c
commit bb3903fcbfd2184c63b66b903e34de3648c49d0c Author: Vitalii Vorobiov <[email protected]> Date: Wed Jun 29 14:53:04 2016 +0300 property_group: combobox for color_class of TIZEN version --- data/themes/tizen/images/color_class_img.png | Bin 0 -> 127 bytes data/themes/tizen/widgets/combobox.edc | 432 +++++++++++++++++++++++++++ 2 files changed, 432 insertions(+) diff --git a/data/themes/tizen/images/color_class_img.png b/data/themes/tizen/images/color_class_img.png new file mode 100644 index 0000000..0272e99 Binary files /dev/null and b/data/themes/tizen/images/color_class_img.png differ diff --git a/data/themes/tizen/widgets/combobox.edc b/data/themes/tizen/widgets/combobox.edc index b683e0c..5965dd3 100644 --- a/data/themes/tizen/widgets/combobox.edc +++ b/data/themes/tizen/widgets/combobox.edc @@ -4,6 +4,7 @@ group { name: "elm/button/base/combobox_vertical/default"; images { image: "drop_arrow_nor.png" COMP; image: "drop_arrow_sel.png" COMP; + image: "color_class_img.png" COMP; } parts { part { name: "base"; @@ -155,6 +156,264 @@ group { name: "elm/button/base/combobox_vertical/default"; } } +group { name: "elm/button/base/combobox_vertical/color_class"; + min: 76 24; + max: 9999 24; + images { + image: "drop_arrow_nor.png" COMP; + image: "drop_arrow_sel.png" COMP; + } + parts { + part { name: "base"; + type: SPACER; + description { state: "default" 0.0; + max: -1 24; + } + } + part { name: "bg0"; + type: RECT; + description { state: "default" 0.0; + color: 174 174 174 255; + } + description { state: "focus" 0.0; + inherit: "default" 0.00; + color: 5 140 238 255; + } + } + part { name: "bg1"; + type: RECT; + description { state: "default" 0.0; + rel1.offset: 1 1; + rel2.offset: -2 -2; + } + } + rect { "icon_clip"; + desc { "default"; + } + desc { "disabled"; + inherit: "default"; + color: 255 255 255 180; + } + } + rect { "event"; + desc { "default"; + color: 0 0 0 0; + } + desc { "disabled"; + inherit: "default"; + visible: 0; + } + } + part { name: "left.offset"; + type: SPACER; + description { state: "default" 0.0; + align: 0.0 0.0; + min: 10 0; + max: 10 -1; + } + } + part { name: "right.offset"; + type: SPACER; + description { state: "default" 0.0; + align: 1.0 1.0; + min: 20 19; + max: 20 -1; + } + } + part { name: "elm.swallow.content"; + type: SWALLOW; + clip_to: "icon_clip"; + description { state: "default" 0.0; + align: 0.0 0.5; + rel1.offset: 5 0; + rel2 { + relative: 0.0 1.0; + to_x: "right.offset"; + to_y: "base"; + } + } + } + part { name: "select_line"; + type: IMAGE; + clip_to: "disabler"; + description { state: "default" 0.0; + max: 9 5; + image.normal: "drop_arrow_nor.png"; + rel1.to: "right.offset"; + rel2.to: "right.offset"; + } + description { state: "clicked" 0.0; + inherit: "default" 0.00; + max: 8 4; + image.normal: "drop_arrow_sel.png"; + } + } + part { name: "bg.color.color1"; + type: RECT; + description { state: "default" 0.0; + color: 142 142 142 255; + rel1.to: "bg.color1"; + rel2.to: "bg.color1"; + } + } + part { name: "bg.color.color2"; + type: RECT; + description { state: "default" 0.0; + color: 142 142 142 255; + rel1.to: "bg.color2"; + rel2.to: "bg.color2"; + } + } + part { name: "bg.color.color3"; + type: RECT; + description { state: "default" 0.0; + color: 142 142 142 255; + rel1.to: "bg.color3"; + rel2.to: "bg.color3"; + } + } + part { name: "bg.color3"; + type: IMAGE; + description { state: "default" 0.0; + align: 1.0 0.5; + min: 11 11; + max: 11 11; + image.normal: "color_class_img.png"; + fill.smooth: 0; + rel1.to: "base"; + rel2 { + relative: 0.0 1.0; + offset: -7 -1; + to_y: "base"; + } + } + } + part { name: "bg.color2"; + type: IMAGE; + description { state: "default" 0.0; + align: 1.0 0.5; + min: 11 11; + max: 11 11; + image.normal: "color_class_img.png"; + fill.smooth: 0; + rel1.to: "base"; + rel2 { + relative: 0.0 1.0; + offset: -6 -1; + to_x: "bg.color3"; + to_y: "base"; + } + } + } + part { name: "bg.color1"; + type: IMAGE; + description { state: "default" 0.0; + align: 1.0 0.5; + min: 11 11; + max: 11 11; + image.normal: "color_class_img.png"; + fill.smooth: 0; + rel1.to: "base"; + rel2 { + relative: 0.0 1.0; + offset: -6 -1; + to_x: "bg.color2"; + to_y: "base"; + } + } + } + part { name: "swallow.color1"; + type: SWALLOW; + description { state: "default" 0.0; + rel1.to: "bg.color1"; + rel1.offset: 1 1; + rel2.offset: -2 -2; + rel2.to: "bg.color1"; + } + } + part { name: "swallow.color2"; + type: SWALLOW; + description { state: "default" 0.0; + rel1.to: "bg.color2"; + rel1.offset: 1 1; + rel2.offset: -2 -2; + rel2.to: "bg.color2"; + } + } + part { name: "swallow.color3"; + type: SWALLOW; + description { state: "default" 0.0; + rel1.offset: 1 1; + rel2.offset: -2 -2; + rel1.to: "bg.color3"; + rel2.to: "bg.color3"; + } + } + part { name: "disabler"; + type: RECT; + description { state: "default" 0.0; + } + description { state: "active" 0.0; + inherit: "default" 0.00; + color: 64 64 64 225; + } + } + } + programs { + program { + signal: "mouse,down,1"; source: "event"; + action: SIGNAL_EMIT "elm,action,press" "elm"; + after: "button_click_anim"; + } + program { name: "button_click_anim"; + action: STATE_SET "clicked" 0.0; + target: "base"; + target: "select_line"; + } + program { name: "button_unclick"; + signal: "mouse,up,1"; source: "event"; + action: SIGNAL_EMIT "elm,action,unpress" "elm"; + after: "button_unclick_anim"; + } + program { name: "button_unclick_anim"; + action: STATE_SET "default" 0.0; + target: "base"; + target: "select_line"; + } + program { name: "buttonactivate"; + signal: "elm,anim,activate"; source: "elm"; + action: STATE_SET "clicked" 0.0; + target: "base"; + target: "select_line"; + after: "button_unpressed_anim"; + } + program { name: "button_unpressed_anim"; + action: STATE_SET "default" 0.0; + in: 0.5 0.0; + target: "base"; + target: "select_line"; + } + program { + signal: "mouse,clicked,1"; source: "event"; + action: SIGNAL_EMIT "elm,action,click" "elm"; + } + program { name: "button_state_disabled"; + signal: "elm,state,disabled"; source: "elm"; + action: STATE_SET "disabled" 0.0; + target: "icon_clip"; + target: "event"; + target: "disabler"; + } + program { name: "button_state_enabled"; + signal: "elm,state,enabled"; source: "elm"; + action: STATE_SET "default" 0.0; + target: "icon_clip"; + target: "event"; + target: "disabler"; + } + } +} + /* TODO: remove scripts, remake hover */ group { name: "elm/hover/base/combobox_vertical/default"; data.item: "dismiss" "on"; @@ -922,6 +1181,179 @@ group { name: "elm/genlist/base/combobox_vertical/default"; } } +group { name: "elm/genlist/item_compress/color_class/combobox_vertical/default"; + images.image: "color_class_img.png" COMP; + data { + item: "texts" "elm.text"; + item: "treesize" "20"; + item: "contents" "elm.swallow.icon elm.swallow.end"; + item: "stacking" "above"; + item: "selectraise" "on"; + } + parts { + part { name: "bg"; + type: RECT; + description { state: "default" 0.0; + color: 0 0 0 0; + min: 0 24; + max: -1 0; + } + description { state: "selected" 0.0; + color: 203 233 255 255; + min: 0 19; + max: -1 0; + } + } + part { name: "elm.text"; + type: TEXT; + repeat_events: 1; + description { state: "default" 0.0; + color: 85 85 85 255; + rel1 { + offset: 10 0; + } + rel2 { + offset: -11 -1; + } + text { + font: FN; + size: 15; + align: 0.0 0.5; + min: 1 1; + ellipsis: -1; + } + } + description { state: "hide" 0.0; + inherit: "default"; + visible: 0; + } + } + part { name: "bg.color.color1"; + type: RECT; + description { state: "default" 0.0; + color: 142 142 142 255; + rel1.to: "bg.color1"; + rel2.to: "bg.color1"; + } + } + part { name: "bg.color.color2"; + type: RECT; + description { state: "default" 0.0; + color: 142 142 142 255; + rel1.to: "bg.color2"; + rel2.to: "bg.color2"; + } + } + part { name: "bg.color.color3"; + type: RECT; + description { state: "default" 0.0; + color: 142 142 142 255; + rel1.to: "bg.color3"; + rel2.to: "bg.color3"; + } + } + part { name: "bg.color3"; + type: IMAGE; + description { state: "default" 0.0; + align: 1.0 0.5; + min: 11 11; + max: 11 11; + image.normal: "color_class_img.png"; + fill.smooth: 0; + rel2 { + relative: 0.0 1.0; + offset: -7 -1; + } + } + } + part { name: "bg.color2"; + type: IMAGE; + description { state: "default" 0.0; + align: 1.0 0.5; + min: 11 11; + max: 11 11; + image.normal: "color_class_img.png"; + fill.smooth: 0; + rel2 { + relative: 0.0 1.0; + offset: -6 -1; + to_x: "bg.color3"; + } + } + } + part { name: "bg.color1"; + type: IMAGE; + description { state: "default" 0.0; + align: 1.0 0.5; + min: 11 11; + max: 11 11; + image.normal: "color_class_img.png"; + fill.smooth: 0; + rel2 { + relative: 0.0 1.0; + offset: -6 -1; + to_x: "bg.color2"; + } + } + } + part { name: "swallow.color1"; + type: SWALLOW; + description { state: "default" 0.0; + rel1.to: "bg.color1"; + rel1.offset: 1 1; + rel2.offset: -2 -2; + rel2.to: "bg.color1"; + } + } + part { name: "swallow.color2"; + type: SWALLOW; + description { state: "default" 0.0; + rel1.to: "bg.color2"; + rel1.offset: 1 1; + rel2.offset: -2 -2; + rel2.to: "bg.color2"; + } + } + part { name: "swallow.color3"; + type: SWALLOW; + description { state: "default" 0.0; + rel1.offset: 1 1; + rel2.offset: -2 -2; + rel1.to: "bg.color3"; + rel2.to: "bg.color3"; + } + } + part { name: "disclip"; + type: RECT; + repeat_events: 1; + description { state: "default" 0.0; + color: 255 255 255 0; + } + } + } + programs { + program { name: "selected"; + signal: "mouse,in"; + source: "disclip"; + action: STATE_SET "selected" 0.00; + target: "bg"; + } + program { name: "unselected"; + signal: "mouse,out"; + source: "disclip"; + action: STATE_SET "default" 0.00; + target: "bg"; + } + program { name: "item_hide"; + signal: "elm,state,contract_flip"; + source: "elm"; + action: STATE_SET "hide" 0.00; + target: "elm.text"; + target: "disclip"; + } + } +} + group { name: "elm/genlist/item_compress/default/combobox_vertical/default"; data { item: "texts" "elm.text"; --
