discomfitor pushed a commit to branch master. http://git.enlightenment.org/themes/darkness.git/commit/?id=e08a06f73b1557f8fdb54490d6cab0c7c68d18a0
commit e08a06f73b1557f8fdb54490d6cab0c7c68d18a0 Author: discomfitor <michael.blumenkra...@gmail.com> Date: Thu Dec 26 15:53:08 2013 -0500 add one_icon genlist styles --- elm/macros/genlist.h | 2 + elm/widgets/genlist.edc | 119 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 121 insertions(+) diff --git a/elm/macros/genlist.h b/elm/macros/genlist.h index a4c096c..dc1eea1 100644 --- a/elm/macros/genlist.h +++ b/elm/macros/genlist.h @@ -74,6 +74,7 @@ state: "default" 0.0; \ fixed: 1 0; \ align: 0.0 0.5; \ + aspect: 1 1; \ rel1 { \ to_x: "elm.swallow.pad"; \ relative: 1.0 0.0; \ @@ -81,6 +82,7 @@ } \ rel2 { \ to_x: "elm.swallow.pad"; \ + relative: 1 1; \ offset: -1 -5; \ } \ } \ diff --git a/elm/widgets/genlist.edc b/elm/widgets/genlist.edc index 0b5ff99..2dad07a 100644 --- a/elm/widgets/genlist.edc +++ b/elm/widgets/genlist.edc @@ -81,6 +81,86 @@ } } } + group { name: "elm/genlist/item/one_icon/default"; + alias: "elm/genlist/item_odd/one_icon/default"; + data.item: "stacking" "above"; + data.item: "selectraise" "on"; + data.item: "texts" "elm.text"; + data.item: "contents" "elm.swallow.icon"; + data.item: "treesize" "20"; + images { + image: "slider_button.png" COMP; + image: "frame_label_over.png" COMP; + image: "menu_item_highlight.png" COMP; + image: "ilist_1.png" COMP; + image: "ilist_item_shadow.png" COMP; + } + parts { + LIST_PART_EVENT + part { name: "reorder_bg"; + mouse_events: 0; + description { state: "default" 0.0; + visible: 0; + color: 255 255 255 0; + rel1 { + relative: 0.0 0.0; + offset: -7 -7; + } + rel2 { + relative: 1.0 1.0; + offset: 9 9; + } + image { + normal: "frame_label_over.png"; + border: 6 6 6 6; + } + } + description { state: "enabled" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 255 255 255 255; + } + } + LIST_PART_BASE + GENLIST_PART_FG + GENLIST_PART_SWALLOW_PAD + GENLIST_PART_SWALLOW_ICON_REL_PAD + GENLIST_PART_TEXT( + rel1 { + to_x: "elm.swallow.icon"; + relative: 1.0 0.0; + offset: 0 4; + } + rel2 { + offset: -1 -5; + } + ) + FOCUS_GLOW(0.0, 0.0, 0, 0, "base", 1.0, 1.0, 3, -1, "base") + GENLIST_PART_DISCLIP("base") + } + GENLIST_PROGRAMS("base", + target: "fg1"; + target: "elm.text"; + ) + programs { + program { + name: "go_reorder_disabled"; + signal: "elm,state,reorder,disabled"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "reorder_bg"; + transition: DECELERATE 0.5; + } + program { + name: "go_reorder_enabled"; + signal: "elm,state,reorder,enabled"; + source: "elm"; + action: STATE_SET "enabled" 0.0; + target: "reorder_bg"; + transition: DECELERATE 0.5; + } + } + } group { name: "elm/genlist/item/group_index/default"; data.item: "stacking" "above"; data.item: "selectraise" "on"; @@ -277,6 +357,45 @@ target: "elm.text"; ) } + group { name: "elm/genlist/item_compress/one_icon/default"; + alias: "elm/genlist/item_compress_odd/one_icon/default"; + data.item: "stacking" "above"; + data.item: "selectraise" "on"; + data.item: "texts" "elm.text"; + data.item: "contents" "elm.swallow.icon"; + data.item: "treesize" "20"; +// data.item: "states" ""; + images { + image: "slider_button.png" COMP; + image: "menu_item_highlight.png" COMP; + image: "ilist_1.png" COMP; + image: "ilist_item_shadow.png" COMP; + } + parts { + LIST_PART_EVENT + LIST_PART_BASE + GENLIST_PART_FG + GENLIST_PART_SWALLOW_PAD + GENLIST_PART_SWALLOW_ICON_REL_PAD + GENLIST_PART_TEXT( + rel1 { + to_x: "elm.swallow.icon"; + relative: 1.0 0.0; + offset: 3 4; + } + rel2 { + offset: -1 -5; + } + text.text_class: "Label-char"; + ) + FOCUS_GLOW(0.0, 0.0, 0, 0, "base", 1.0, 1.0, 3, -1, "base") + GENLIST_PART_DISCLIP("base") + } + GENLIST_PROGRAMS("base", + target: "fg1"; + target: "elm.text"; + ) + } group { name: "elm/genlist/tree/default/default"; data.item: "stacking" "above"; --