rimmed pushed a commit to branch master. http://git.enlightenment.org/tools/eflete.git/commit/?id=51f8a479252cd76b25b1f06005b15b75574d0f23
commit 51f8a479252cd76b25b1f06005b15b75574d0f23 Author: Vitalii Vorobiov <vi.vorob...@samsung.com> Date: Wed Jun 22 16:24:55 2016 +0300 TIZEN Styles: for elementary combobox --- data/themes/tizen/default.edc | 1 + data/themes/tizen/images/drop_arrow_nor.png | Bin 0 -> 956 bytes data/themes/tizen/images/drop_arrow_sel.png | Bin 0 -> 956 bytes data/themes/tizen/widgets/combobox.edc | 1092 +++++++++++++++++++++++++++ data/themes/tizen/widgets/styles.edc | 4 +- 5 files changed, 1096 insertions(+), 1 deletion(-) diff --git a/data/themes/tizen/default.edc b/data/themes/tizen/default.edc index 56f6f85..2ae0d65 100644 --- a/data/themes/tizen/default.edc +++ b/data/themes/tizen/default.edc @@ -13,6 +13,7 @@ collections { #include "widgets/inwin.edc" #include "widgets/genlist.edc" #include "widgets/gengrid.edc" + #include "widgets/combobox.edc" #include "widgets/genlist_property.edc" #include "widgets/entry.edc" #include "widgets/check.edc" diff --git a/data/themes/tizen/images/drop_arrow_nor.png b/data/themes/tizen/images/drop_arrow_nor.png new file mode 100644 index 0000000..55b5c64 Binary files /dev/null and b/data/themes/tizen/images/drop_arrow_nor.png differ diff --git a/data/themes/tizen/images/drop_arrow_sel.png b/data/themes/tizen/images/drop_arrow_sel.png new file mode 100644 index 0000000..1410bc5 Binary files /dev/null and b/data/themes/tizen/images/drop_arrow_sel.png differ diff --git a/data/themes/tizen/widgets/combobox.edc b/data/themes/tizen/widgets/combobox.edc new file mode 100644 index 0000000..b683e0c --- /dev/null +++ b/data/themes/tizen/widgets/combobox.edc @@ -0,0 +1,1092 @@ +group { name: "elm/button/base/combobox_vertical/default"; + 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: "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"; + // max_size limits the maximum size of expanded hoversel + // when it's scrollable. + //data.item: "max_size" "60"; + script { + public visible = 0; + public right = 0; + public on_dismiss = 0; + public topshow2() { + if (get_int(right) == 0) + run_program(PROGRAM:"topshow_default"); + else + run_program(PROGRAM:"topshow_right"); + set_int(visible, 1); + set_int(on_dismiss, 0); + } + public bottomshow2() { + if (get_int(right) == 0) + run_program(PROGRAM:"bottomshow_default"); + else + run_program(PROGRAM:"bottomshow_right"); + set_int(visible, 1); + set_int(on_dismiss, 0); + } + } + parts { + part { name: "elm.swallow.offset"; type: SWALLOW; + description { state: "default" 0.0; + align: 0.0 0.0; + fixed: 1 1; + rel1.relative: 0.0 0.0; + rel2.relative: 0.0 0.0; + } + } + part { name: "elm.swallow.size"; type: SWALLOW; + description { state: "default" 0.0; + align: 0.0 0.0; + fixed: 1 1; + rel1.to: "elm.swallow.offset"; + rel1.relative: 1.0 1.0; + rel2.to: "elm.swallow.offset"; + rel2.relative: 1.0 1.0; + } + } + part { name: "button_image"; + mouse_events: 1; + type: RECT; + description { state: "default" 0.0; + rel1.to_x: "limit0"; + rel1.to_y: "elm.swallow.slot.top"; + rel2.to_x: "limit1"; + rel2.to_y: "elm.swallow.slot.middle"; + rel2.relative: 1.0 0.0; + } + description { state: "bottom" 0.0; + rel1.to_x: "limit0"; + rel1.to_y: "elm.swallow.slot.middle"; + rel1.relative: 0.0 1.0; + rel2.to_x: "limit1"; + rel2.to_y: "elm.swallow.slot.bottom"; + } + } + part { name: "limit0"; type: SPACER; + description { state: "default" 0.0; + rel1.to_x: "elm.swallow.slot.top"; + rel1.offset: 1 0; + rel2.to_x: "elm.swallow.slot.middle"; + rel2.offset: 0 0; + rel2.relative: 0.0 1.0; + align: 0.0 0.5; + min: 1 1; + max: 1 99999; + } + description { state: "bottom" 0.0; + inherit: "default" 0.0; + rel1.to_x: "elm.swallow.slot.bottom"; + } + } + part { name: "limit1"; type: SPACER; + description { state: "default" 0.0; + rel1.to_x: "elm.swallow.slot.middle"; + rel1.offset: -1 0; + rel1.relative: 1.0 0.0; + rel2.to_x: "elm.swallow.slot.top"; + rel2.offset: -2 0; + align: 1.0 0.5; + min: 1 1; + max: 1 99999; + } + description { state: "bottom" 0.0; + inherit: "default" 0.0; + rel2.to_x: "elm.swallow.slot.bottom"; + } + } + part { name: "base"; type: RECT; + description { state: "default" 0.0; + color: 0 0 0 0; + } + description { state: "visible" 0.0; + inherit: "default" 0.0; + color: 0 0 0 0; + } + } + part { name: "topclip"; type: RECT; + description { state: "default" 0.0; + rel2.to_y: "button_image"; + } + } + part { name: "elm.swallow.slot.top"; type: SWALLOW; + clip_to: "topclip"; + description { state: "default" 0.0; + visible: 1; + align: 0.0 0.0; + fixed: 0 1; + rel1.to: "elm.swallow.slot.middle"; + rel1.relative: 0.0 0.0; + rel1.offset: 0 -1; + rel2.to: "elm.swallow.slot.middle"; + rel2.relative: 1.0 0.0; + } + description { state: "visible" 0.0; + inherit: "default" 0.0; + align: 0.0 1.0; + } + description { state: "right" 0.0; + inherit: "default" 0.0; + align: 1.0 0.0; + } + description { state: "right_visible" 0.0; + inherit: "default" 0.0; + align: 1.0 1.0; + } + } + part { name: "bottomclip"; type: RECT; + description { state: "default" 0.0; + rel1.to_y: "button_image"; + rel1.offset: 0 3; + } + } + part { name: "elm.swallow.slot.bottom"; type: SWALLOW; + clip_to: "bottomclip"; + description { state: "default" 0.0; + align: 0.0 1.0; + fixed: 0 1; + rel1.to: "elm.swallow.slot.middle"; + rel1.relative: 0.0 1.0; + rel1.offset: 0 0; + rel2.to: "elm.swallow.slot.middle"; + rel2.relative: 1.0 1.0; + } + description { state: "visible" 0.0; + inherit: "default" 0.0; + align: 0.0 0.0; + } + description { state: "right" 0.0; + inherit: "default" 0.0; + align: 1.0 1.0; + } + description { state: "right_visible" 0.0; + inherit: "default" 0.0; + align: 1.0 0.0; + } + } + part { name: "elm.swallow.slot.middle"; + type: SWALLOW; + description { state: "default" 0.0; + rel1.to: "elm.swallow.size"; + rel2.to: "elm.swallow.size"; + } + } + } + programs { + program { name: "end"; + signal: "mouse,up,*"; source: "base"; + script { + if (get_int(on_dismiss) == 0) { + emit("elm,action,dismiss", "elm"); + set_int(on_dismiss, 1); + } + } + } + program { name: "show"; + signal: "elm,action,show"; source: "elm"; + action: STATE_SET "visible" 0.0; + target: "base"; + } + program { name: "hide"; + signal: "elm,action,hide"; source: "elm"; + action: STATE_SET "default" 0.0; + transition: DECELERATE 0.5; + target: "base"; + after: "hidefinished"; + } + program { name: "hide_no_animate"; + signal: "elm,action,hide,no_animate"; source: "elm"; + action: STATE_SET "default" 0.0; + target: "base"; + after: "hidefinished"; + } + program { name: "hidefinished"; + script { + set_int(on_dismiss, 0); + emit("elm,action,hide,finished", "elm"); + } + } + program { name: "topshow"; + signal: "elm,action,slot,top,show"; source: "elm"; + script { + set_state(PART:"limit0", "default", 0.0); + set_state(PART:"limit1", "default", 0.0); + set_state(PART:"button_image", "default", 0.0); + topshow2(); + } + } + program { name: "topshow_default"; + action: STATE_SET "visible" 0.0; + target: "elm.swallow.slot.top"; + transition: DECELERATE 0.5; + } + program { name: "topshow_right"; + action: STATE_SET "right_visible" 0.0; + target: "elm.swallow.slot.top"; + transition: DECELERATE 0.5; + } + program { name: "tophide"; + signal: "elm,action,slot,top,hide"; + source: "elm"; + script { + if (get_int(right) == 0) + run_program(PROGRAM:"tophide_default"); + else + run_program(PROGRAM:"tophide_right"); + set_int(visible, 0); + } + } + program { name: "tophide_default"; + action: STATE_SET "default" 0.0; + target: "elm.swallow.slot.top"; + transition: DECELERATE 0.5; + } + program { name: "tophide_right"; + action: STATE_SET "right" 0.0; + target: "elm.swallow.slot.top"; + transition: DECELERATE 0.5; + } + program { name: "bottomshow"; + signal: "elm,action,slot,bottom,show"; source: "elm"; + script { + set_state(PART:"limit0", "bottom", 0.0); + set_state(PART:"limit1", "bottom", 0.0); + set_state(PART:"button_image", "bottom", 0.0); + bottomshow2(); + } + } + program { name: "bottomshow_default"; + action: STATE_SET "visible" 0.0; + target: "elm.swallow.slot.bottom"; + transition: DECELERATE 0.5; + } + program { name: "bottomshow_right"; + action: STATE_SET "right_visible" 0.0; + target: "elm.swallow.slot.bottom"; + transition: DECELERATE 0.5; + } + program { name: "bottomhide"; + signal: "elm,action,slot,bottom,hide"; source: "elm"; + script { + if (get_int(right) == 0) { + run_program(PROGRAM:"bottomhide_default"); + } + else { + run_program(PROGRAM:"bottomhide_right"); + } + set_int(visible, 0); + } + } + program { name: "bottomhide_default"; + action: STATE_SET "default" 0.0; + target: "elm.swallow.slot.bottom"; + transition: DECELERATE 0.5; + } + program { name: "bottomhide_right"; + action: STATE_SET "right" 0.0; + target: "elm.swallow.slot.bottom"; + transition: DECELERATE 0.5; + } + program { name: "align_right"; + signal: "elm,state,align,right"; source: "elm"; + script { + set_int(right, 1); + if (get_int(visible) == 0) { + set_state(PART:"elm.swallow.slot.top", "right", 0.0); + set_state(PART:"elm.swallow.slot.bottom", "right", 0.0); + } + else { + set_state(PART:"elm.swallow.slot.top", "right_visible", 0.0); + set_state(PART:"elm.swallow.slot.bottom", "right_visible", 0.0); + } + } + } + program { name: "align_default"; + signal: "elm,state,align,default"; source: "elm"; + script { + set_int(right, 0); + if (get_int(visible) == 0) { + set_state(PART:"elm.swallow.slot.top", "default", 0.0); + set_state(PART:"elm.swallow.slot.bottom", "default", 0.0); + } + else { + set_state(PART:"elm.swallow.slot.top", "visible", 0.0); + set_state(PART:"elm.swallow.slot.bottom", "visible", 0.0); + } + } + } + } +} + +group { name: "elm/genlist/base/combobox_vertical/default"; + images { + image: "scroll-indicator.png" COMP; + image: "scroll-area-dark.png" COMP; + image: "section-item-bg.png" COMP; + } + data.item: "focus_highlight" "on"; + + parts { + program { + name: "reload_on_load"; + signal: "load"; source: ""; + script { + emit("reload", "elm"); + } + } +// vert bar //////////////////////////////////////////////////////////////// + part { name: "sb_vbar_show"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + rel1.offset: -11 -11; + rel2.offset: 10 10; + } + description { state: "hidden" 0.0; + inherit: "default" 0.0; + visible: 0; + } + } + part { name: "sb_vbar"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + fixed: 1 0; + min: 8 8; + align: 1.0 0.0; + rel1 { + relative: 1.0 0.0; + offset: -1 0; + } + rel2 { + relative: 1.0 0.0; + to_y: "sb_hbar"; + offset: -1 -1; + } + } + description { state: "hidden" 0.0; + inherit: "default" 0.0; + min: 0 0; + } + } + part { name: "cross"; + type: RECT; + description { state: "default" 0.0; + color: 57 57 57 255; + rel1 { + to_x: "sb_vbar"; + to_y: "sb_hbar"; + } + rel2 { + to_x: "sb_vbar"; + to_y: "sb_hbar"; + } + } + } + part { name: "sb_vbar_base"; + type: RECT; + clip_to: "sb_vbar"; + description { state: "default" 0.0; + color: 0 0 0 0; + rel1 { + relative: 0.0 0.0; + to: "sb_vbar"; + } + rel2 { + relative: 1.0 1.0; + to: "sb_vbar"; + } + } + } + + part { name: "sb_vbar_p1"; + type: RECT; + clip_to: "sb_vbar"; + description { state: "default" 0.0; + color: 0 0 0 0; + rel1 { + relative: 0.0 0.0; + to: "sb_vbar"; + } + rel2 { + relative: 1.0 0.0; + to: "elm.dragable.vbar"; + } + } + } + part { name: "sb_vbar_p2"; + type: RECT; + clip_to: "sb_vbar"; + description { state: "default" 0.0; + color: 0 0 0 0; + rel1 { + relative: 0.0 1.0; + to: "elm.dragable.vbar"; + } + rel2 { + relative: 1.0 1.0; + to: "sb_vbar"; + } + } + } + part { name: "elm.dragable.vbar"; + type: RECT; + clip_to: "sb_vbar"; + scale: 1; + description { state: "default" 0.0; + fixed: 1 1; + min: 8 8; + max: 8 -1; + rel1 { + relative: 0.5 0.5; + to: "sb_vbar_base"; + } + rel2 { + relative: 0.5 0.5; + to: "sb_vbar_base"; + } + color: 0 0 0 0; + } + dragable { + x: 0 0 0; + y: 1 1 0; + confine: "sb_vbar_base"; + } + } +// horiz bar ///////////////////////////////////////////////////////////// + part { name: "sb_hbar_show"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + rel1.offset: -11 -11; + rel2.offset: 10 10; + } + description { state: "hidden" 0.0; + inherit: "default" 0.0; + visible: 0; + } + } + part { name: "sb_hbar"; + type: RECT; + mouse_events: 0; + scale: 1; + description { state: "default" 0.0; + fixed: 0 1; + min: 8 8; + align: 0.0 1.0; + rel1 { + relative: 0.0 1.0; + } + rel2 { + relative: 0.0 1.0; + to_x: "sb_vbar"; + } + } + description { state: "hidden" 0.0; + inherit: "default" 0.0; + min: 0 0; + } + } + part { name: "sb_hbar_base"; + type: RECT; + clip_to: "sb_hbar"; + description { state: "default" 0.0; + color: 0 0 0 0; + rel1 { + relative: 0.0 0.0; + to: "sb_hbar"; + } + rel2 { + relative: 1.0 1.0; + to: "sb_hbar"; + } + } + } + part { name: "sb_hbar_p1"; + type: RECT; + clip_to: "sb_hbar"; + description { state: "default" 0.0; + fixed: 1 1; + color: 0 0 0 0; + rel1 { + relative: 0.0 0.0; + to: "sb_hbar"; + } + rel2 { + relative: 0.0 1.0; + to: "elm.dragable.hbar"; + } + } + } + part { name: "sb_hbar_p2"; + type: RECT; + clip_to: "sb_hbar"; + description { state: "default" 0.0; + color: 0 0 0 0; + rel1 { + relative: 1.0 0.0; + to: "elm.dragable.hbar"; + } + rel2 { + relative: 1.0 1.0; + to: "sb_hbar"; + } + } + } + part { name: "elm.dragable.hbar"; + type: RECT; + clip_to: "sb_hbar"; + scale: 1; + description { state: "default" 0.0; + fixed: 1 1; + min: 8 8; + max: -1 8; + color: 0 0 0 0; + rel1 { + relative: 0.5 0.5; + to: "sb_hbar_base"; + } + rel2 { + relative: 0.5 0.5; + to: "sb_hbar_base"; + } + } + dragable { + x: 1 1 0; + y: 0 0 0; + confine: "sb_hbar_base"; + } + } + part { name: "bg"; + type: IMAGE; + description { state: "default" 0.0; + image.normal: "section-item-bg.png"; + image.border: 0 0 2 2; + rel1.to: "elm.swallow.background"; + rel2.to: "elm.swallow.background"; + color: 64 64 64 0; + } + } + part { name: "clipper"; + type: RECT; + description { state: "default" 0.0; + rel1.to: "elm.swallow.background"; + rel2.to: "elm.swallow.background"; + } + } + part { name: "elm.swallow.background"; + type: SWALLOW; + clip_to: "clipper"; + description { state: "default" 0.0; + rel2 { + relative: 0.0 0.0; + to_x: "sb_vbar"; + to_y: "sb_hbar"; + } + } + } + part { name: "elm.swallow.content"; + type: SWALLOW; + clip_to: "clipper"; + description { state: "default" 0.0; + rel2 { + relative: 0.0 0.0; + to_x: "sb_vbar"; + to_y: "sb_hbar"; + } + } + } + part { name: "elm.swallow.overlay"; + type: SWALLOW; + clip_to: "clipper"; + description { state: "default" 0.0; + rel1.to: "elm.swallow.content"; + rel2.to: "elm.swallow.content"; + } + } +/* FIXME: make bg fo bar is area-dark.png */ + part { name: "runner_vbar"; + mouse_events: 0; + clip_to: "sb_vbar_show"; + description { state: "default" 0.0; + visible: 0; + fixed: 1 1; + image { + normal: "scroll-area-dark.png"; + border: 2 2 2 2; + } + fill.smooth: 0; + max: 8 -1; + rel1.to: "sb_vbar_base"; + rel2 { + to: "sb_vbar_base"; + offset: 0 0; + } + } + } + part { name: "runner_hbar"; + mouse_events: 0; + clip_to: "sb_hbar_show"; + description { state: "default" 0.0; + visible: 0; + fixed: 1 1; + image { + normal: "scroll-area-dark.png"; + border: 2 2 2 2; + } + fill.smooth: 0; + max: -1 8; + rel1 { + to: "sb_hbar_base"; + } + rel2 { + to: "sb_hbar_base"; + } + } + } + part { name: "base_vbar"; + mouse_events: 0; + clip_to: "sb_vbar_show"; + description { state: "default" 0.0; + fixed: 1 0; + min: 8 8; + max: 8 -1; + color: 0 0 255 50; + image { + normal: "scroll-indicator.png"; + border: 2 2 2 2; + } + fill.smooth: 0; + rel1 { + offset: 0 0; + to: "elm.dragable.vbar"; + } + rel2 { + offset: 0 -1; + to: "elm.dragable.vbar"; + } + } + } + part { name: "base_hbar"; + mouse_events: 0; + clip_to: "sb_hbar_show"; + description { state: "default" 0.0; + fixed: 0 1; + image { + normal: "scroll-indicator.png"; + border: 2 2 2 2; + } + fill.smooth: 0; + min: 8 8; + max: -1 8; + rel1 { + offset: 0 0; + to: "elm.dragable.hbar"; + } + rel2 { + offset: 0 -1; + to: "elm.dragable.hbar"; + } + } + } + } + programs { + program { name: "v_mouse_down"; + signal: "mouse,down,1*"; source: "elm.dragable.vbar"; + action: STATE_SET "clicked" 0.0; + target: "elm.dragable.vbar"; + } + program { name: "v_mouse_up"; + signal: "mouse,up,1"; source: "elm.dragable.vbar"; + action: STATE_SET "default" 0.0; + target: "elm.dragable.vbar"; + } + program { name: "h_mouse_down"; + signal: "mouse,down,1*"; source: "elm.dragable.hbar"; + action: STATE_SET "clicked" 0.0; + target: "elm.dragable.hbar"; + } + program { name: "h_mouse_up"; + signal: "mouse,up,1"; source: "elm.dragable.hbar"; + action: STATE_SET "default" 0.0; + target: "elm.dragable.hbar"; + } + program { name: "show_horizontal_scroll"; + signal: "elm,action,show,hbar"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "sb_hbar"; + target: "sb_hbar_show"; + } + program { name: "hide_horizontal_scroll"; + signal: "elm,action,hide,hbar"; + source: "elm"; + action: STATE_SET "hidden" 0.0; + target: "sb_hbar"; + target: "sb_hbar_show"; + } + program { name: "horizontal_scroll_down"; + signal: "mouse,down,1*"; + source: "sb_hbar_p1"; + action: DRAG_VAL_PAGE -1.0 0.0; + target: "elm.dragable.hbar"; + } + program { name: "horizontal_scroll_up"; + signal: "mouse,down,1*"; + source: "sb_hbar_p2"; + action: DRAG_VAL_PAGE 1.0 0.0; + target: "elm.dragable.hbar"; + } + program { name: "show_vertical_scroll"; + signal: "elm,action,show,vbar"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "sb_vbar"; + target: "sb_vbar_show"; + } + program { name: "hide_vertical_scroll"; + signal: "elm,action,hide,vbar"; + source: "elm"; + action: STATE_SET "hidden" 0.0; + target: "sb_vbar"; + target: "sb_vbar_show"; + } + program { name: "vertical_scroll_down"; + signal: "mouse,down,1*"; + source: "sb_vbar_p1"; + action: DRAG_VAL_PAGE 0.0 -1.0; + target: "elm.dragable.vbar"; + } + program { name: "vertical_scroll_up"; + signal: "mouse,down,1*"; + source: "sb_vbar_p2"; + action: DRAG_VAL_PAGE 0.0 1.0; + target: "elm.dragable.vbar"; + } + } +} + +group { name: "elm/genlist/item_compress/default/combobox_vertical/default"; + 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: "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/scroller/entry_single/combobox_vertical/default"; + alias: "elm/scroller/entry_single/combobox_horizontal/default"; + parts { + part { name: "elm.swallow.content"; + type: SWALLOW; + description { state: "default" 0.0; + rel1.offset: 1 0; + rel2.offset: -5 -1; + } + } + } +} + + +group { name: "elm/entry/base-single/combobox_vertical/default"; + parts { + part { name: "elm.guide"; + type: TEXTBLOCK; + mouse_events: 0; + scale: 1; + description { state: "default" 0.0; + rel1.to: "elm.text"; + rel2.to: "elm.text"; + text.style: "eflete_text_guide_style"; + } + description { state: "hidden" 0.0; + inherit: "default" 0.0; + visible: 0; + } + } + part { name: "elm.text"; + type: TEXTBLOCK; + clip_to: "disabler"; + mouse_events: 1; + scale: 1; + entry_mode: EDITABLE; + cursor_mode: BEFORE; + multiline: 0; + source: "elm/entry/selection/default"; + source4: "elm/entry/cursor/default"; + source5: "elm/entry/anchor/default"; + description { state: "default" 0.0; + text { + style: "entry_main_combobox_text"; + min: 1 1; + ellipsis: -1; + } + } + } + part { name: "disabler"; + type: RECT; + description { state: "default" 0.0; + } + description { state: "active" 0.0; + color: 64 64 64 225; + } + } + } + programs { + program { name: "disable"; + signal: "elm,state,disabled"; + source: "elm"; + action: STATE_SET "active" 0.0; + target: "disabler"; + } + program { name: "enable"; + signal: "elm,state,enabled"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "disabler"; + } + program { name: "gdisable"; + signal: "elm,guide,disabled"; + source: "elm"; + action: STATE_SET "hidden" 0.0; + target: "elm.guide"; + } + program { name: "genable"; + signal: "elm,guide,enabled"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "elm.guide"; + } + program { name: "focus"; + signal: "load"; + source: ""; + action: FOCUS_SET; + target: "elm.text"; + } + } +} diff --git a/data/themes/tizen/widgets/styles.edc b/data/themes/tizen/widgets/styles.edc index ad1239f..3971d28 100644 --- a/data/themes/tizen/widgets/styles.edc +++ b/data/themes/tizen/widgets/styles.edc @@ -205,5 +205,7 @@ base: "font="FN_B" font_size=13 color=#d6d6d6 wrap=none text_class=label align=c base: "+ font=Breeze font_size=10 color=#727272ff underline_color=#FFF underline2_color=#FFF shadow_color=#FFF glow_color=#FFF glow2_color=#FFF backing_color=#FFF strikethrough_color=#FFF align=left wrap=word ellipsis=-1.0 underline_dash_color=#FFF"; TEXTBLOCK_TAGS_ENABLED } - + style { name: "entry_main_combobox_text"; + base: "font="FN" font_size=15 color=#585858 wrap=none text_class=entry"; + } } --