rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=90963ff9abdf8af9c6a1e16921e939866c397921

commit 90963ff9abdf8af9c6a1e16921e939866c397921
Author: Andrii Kroitor <an.kroi...@samsung.com>
Date:   Tue Feb 9 18:03:23 2016 +0200

    group_navigator: use separate style for items caption
---
 data/themes/default/widgets/genlist.edc | 184 ++++++++++++++++++++++++++++++++
 src/bin/ui/group_navigator.c            |   2 +-
 2 files changed, 185 insertions(+), 1 deletion(-)

diff --git a/data/themes/default/widgets/genlist.edc 
b/data/themes/default/widgets/genlist.edc
index 801e362..a602143 100644
--- a/data/themes/default/widgets/genlist.edc
+++ b/data/themes/default/widgets/genlist.edc
@@ -955,6 +955,190 @@ group { name: "elm/genlist/item/signal/default";
    }
 }
 
+group { name: "elm/genlist/tree/items_caption/default";
+   data {
+      item: "texts" "elm.text elm.text.end";
+      item: "treesize" "20";
+   }
+   parts {
+      part { name: "bg";
+         type: RECT;
+         description { state: "default" 0.0;
+            color: 0 0 0 0;
+            rel2 {
+               offset: -1 -2;
+            }
+         }
+         description { state: "selected" 0.0;
+            color_class: "select_dark";
+            rel2 {
+               offset: -1 -2;
+            }
+         }
+      }
+      part { name: "separator";
+         type: RECT;
+         description { state: "default" 0.0;
+            align: 0.5 1.0;
+            min: 0 1;
+            max: -1 1;
+            color: 68 68 68 255;
+         }
+      }
+      part { name: "elm.swallow.pad";
+         type: SWALLOW;
+         description { state: "default" 0.0;
+            align: 0.0 0.5;
+            rel2 {
+               relative: 0.0 1.0;
+            }
+         }
+      }
+      part { name: "elm.text";
+         type: TEXT;
+         repeat_events: 1;
+         description { state: "default" 0.0;
+            align: 0.0 0.5;
+            min: 0 26;
+            color_class: "main";
+            rel1 {
+               relative: 1.0 0.0;
+               offset: 6 0;
+               to_x: "arrow";
+            }
+            rel2 {
+               offset: -7 -1;
+            }
+            text {
+               font: "PT";
+               size: 12;
+               max: 1 0;
+               align: 0.0 0.5;
+            }
+         }
+      }
+      part { name: "elm.text.end";
+         type: TEXT;
+         repeat_events: 1;
+         description { state: "default" 0.0;
+            align: 0.0 0.5;
+            min: 0 26;
+            color_class: "select";
+            rel1 {
+               relative: 1.0 0.0;
+               offset: 6 0;
+               to_x: "elm.text";
+            }
+            rel2 {
+               offset: -7 -1;
+            }
+            text {
+               font: "PT";
+               size: 12;
+               align: 0.0 0.5;
+            }
+         }
+      }
+      part { name: "arrow";
+         type: IMAGE;
+         description { state: "default" 0.0;
+            align: 0.0 0.5;
+            max: 14 14;
+            color_class: "main";
+            rel1 {
+               relative: 1.0 0.0;
+               offset: 6 0;
+               to_x: "elm.swallow.pad";
+            }
+            image {
+               normal: "icon_arrow_right.png";
+               middle: DEFAULT;
+            }
+         }
+         description { state: "selected" 0.0;
+            align: 0.0 0.5;
+            max: 14 14;
+            color_class: "main";
+            rel1 {
+               relative: 1.0 0.0;
+               offset: 6 0;
+               to_x: "elm.swallow.pad";
+            }
+            image {
+               normal: "icon_arrow_down.png";
+               middle: DEFAULT;
+            }
+         }
+      }
+      part { name: "disclip";
+         type: RECT;
+         repeat_events: 1;
+         description { state: "default" 0.0;
+            color: 255 255 255 0;
+         }
+         description { state: "hide" 0.0;
+            visible: 0;
+            color: 255 255 255 0;
+         }
+      }
+   }
+   programs {
+      program { name: "selected";
+         signal: "elm,state,selected";
+         source: "elm";
+         action: STATE_SET "selected" 0.00;
+         target: "bg";
+      }
+      program { name: "unselected";
+         signal: "elm,state,unselected";
+         source: "elm";
+         action: STATE_SET "default" 0.00;
+         target: "bg";
+      }
+      program { name: "expanded_sig";
+         signal: "mouse,up,1";
+         source: "arrow";
+         action: SIGNAL_EMIT "elm,action,expand,toggle" "elm";
+      }
+      program { name: "arrow_expand";
+         signal: "elm,state,expanded";
+         source: "elm";
+         action: STATE_SET "selected" 0.00;
+         target: "arrow";
+      }
+      program { name: "arrow_conract";
+         signal: "elm,state,contracted";
+         source: "elm";
+         action: STATE_SET "default" 0.00;
+         target: "arrow";
+      }
+      program { name: "go_active";
+         signal: "elm,state,selected";
+         source: "elm";
+         action: STATE_SET "selected" 0.00;
+         target: "bg";
+      }
+      program { name: "go_passive";
+         signal: "elm,state,unselected";
+         source: "elm";
+         action: STATE_SET "default" 0.00;
+         target: "bg";
+      }
+      program { name: "go_disabled";
+         signal: "elm,state,disabled";
+         source: "elm";
+         action: STATE_SET "disabled" 0.00;
+         target: "disclip";
+      }
+      program { name: "go_enabled";
+         signal: "elm,state,enabled";
+         source: "elm";
+         action: STATE_SET "default" 0.00;
+         target: "disclip";
+      }
+   }
+}
+
 group { name: "elm/genlist/tree/item/default";
    data {
       item: "texts" "elm.text elm.text.end";
diff --git a/src/bin/ui/group_navigator.c b/src/bin/ui/group_navigator.c
index 87b1785..9839a45 100644
--- a/src/bin/ui/group_navigator.c
+++ b/src/bin/ui/group_navigator.c
@@ -1730,7 +1730,7 @@ group_navigator_add(Group *group)
    pl->itc_item->func.text_get = _item_label_get;
 
    pl->itc_item_caption = elm_genlist_item_class_new();
-   pl->itc_item_caption->item_style = "item";
+   pl->itc_item_caption->item_style = "items_caption";
    pl->itc_item_caption->func.text_get = _item_caption_label_get;
 
    TODO("create new style or fix default (we need to set number at the end)");

-- 


Reply via email to