rimmed pushed a commit to branch master.

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

commit d6c6ee2dba83ba550c3fca68c35cf20fc637d899
Author: Mykyta Biliavskyi <m.biliavs...@samsung.com>
Date:   Fri Dec 30 09:09:39 2016 +0200

    Theme: add style for gengrid item.
    
    This style uses for Image Sets representation in Image manager.
---
 data/themes/default/widgets/gengrid.edc | 280 ++++++++++++++++++++++++++++++++
 1 file changed, 280 insertions(+)

diff --git a/data/themes/default/widgets/gengrid.edc 
b/data/themes/default/widgets/gengrid.edc
index f936290..0a2a300 100644
--- a/data/themes/default/widgets/gengrid.edc
+++ b/data/themes/default/widgets/gengrid.edc
@@ -412,3 +412,283 @@ group { name: "elm/gengrid/item/group_index/default";
 group { name: "elm/gengrid/base/default";
    inherit: "elm/genlist/base/default";
 }
+
+group { name: "elm/gengrid/item/image_set/default";
+   data {
+      item: "texts" "elm.text elm.text.count";
+      item: "contents" "elm.swallow.first elm.swallow.second elm.swallow.third 
elm.swallow.fouth elm.swallow.end";
+   }
+   parts {
+      part { name: "highlight_content";
+         type: RECT;
+         mouse_events: 0;
+         clip_to: "disclip";
+         description { state: "default" 0.00;
+            visible: 0;
+            color_class: "select";
+            rel1.to: "icon_border";
+            rel2.to: "icon_border";
+         }
+         description { state: "selected" 0.00;
+            inherit: "default" 0.00;
+            visible: 1;
+            rel1.offset: 1 1;
+            rel2.offset: -2 -2;
+         }
+      }
+      part { name: "highlight_text";
+         type: RECT;
+         description { state: "default" 0.00;
+            visible: 0;
+            color_class: "select";
+            rel1.to: "elm.text";
+            rel2.to: "elm.text";
+         }
+         description { state: "selected" 0.00;
+            inherit: "default" 0.00;
+            visible: 1;
+         }
+      }
+      part { name: "elm.swallow.pad";
+         type: SWALLOW;
+         description { state: "default" 0.00;
+            align: 0.00 1.00;
+            fixed: 1 0;
+            min: 0 2;
+            rel1.relative: 1.00 0.00;
+            rel2 {
+               relative: 1.00 0.00;
+               to_y: "elm.text";
+            }
+         }
+      }
+      part { name: "icon_border";
+         type: IMAGE;
+         description { state: "default" 0.00;
+            image {
+               normal: "image_border.png";
+               border: 1 1 1 1;
+               middle: NONE;
+            }
+            rel1.offset: 3 3;
+            rel2 {
+               relative: 1.00 0.00;
+               offset: -4 -4;
+               to_y: "elm.text";
+            }
+         }
+      }
+      part { name: "elm.swallow.first";
+         type: SWALLOW;
+         repeat_events: 1;
+         description { state: "default" 0.00;
+            fixed: 1 0;
+            rel1.to: "icon_border";
+            rel2 {
+               relative: 0.50 0.50;
+               to: "icon_border";
+            }
+         }
+      }
+      part { name: "elm.swallow.second";
+         type: SWALLOW;
+         repeat_events: 1;
+         clip_to: "disclip";
+         description { state: "default" 0.00;
+            fixed: 1 0;
+            rel1 {
+               relative: 0.50 0.00;
+               to: "icon_border";
+            }
+            rel2 {
+               relative: 1.00 0.50;
+               to: "icon_border";
+            }
+         }
+      }
+      part { name: "first_border";
+         type: IMAGE;
+         description { state: "default" 0.00;
+            image {
+               normal: "image_border.png";
+               border: 1 1 1 1;
+               middle: NONE;
+            }
+            rel1.to: "elm.swallow.first";
+            rel2.to: "elm.swallow.first";
+         }
+      }
+      part { name: "second_border";
+         type: IMAGE;
+         description { state: "default" 0.00;
+            image {
+               normal: "image_border.png";
+               border: 1 1 1 1;
+               middle: NONE;
+            }
+            rel1.to: "elm.swallow.second";
+            rel2.to: "elm.swallow.second";
+         }
+      }
+      part { name: "third_border";
+         type: IMAGE;
+         description { state: "default" 0.00;
+            image {
+               normal: "image_border.png";
+               border: 1 1 1 1;
+               middle: NONE;
+            }
+            rel1.to: "elm.swallow.third";
+            rel2.to: "elm.swallow.third";
+         }
+      }
+      part { name: "fouth_border";
+         type: IMAGE;
+         description { state: "default" 0.00;
+            image {
+               normal: "image_border.png";
+               border: 1 1 1 1;
+               middle: NONE;
+            }
+            rel1.to: "elm.swallow.fouth";
+            rel2.to: "elm.swallow.fouth";
+         }
+      }
+      part { name: "elm.swallow.third";
+         type: SWALLOW;
+         repeat_events: 1;
+         description { state: "default" 0.00;
+            fixed: 1 1;
+            rel1 {
+               relative: 0.00 0.50;
+               to: "icon_border";
+            }
+            rel2 {
+               relative: 0.50 1.00;
+               to: "icon_border";
+            }
+         }
+      }
+      part { name: "elm.swallow.fouth";
+         type: SWALLOW;
+         repeat_events: 1;
+         description { state: "default" 0.00;
+            fixed: 1 1;
+            rel1 {
+               relative: 0.50 0.50;
+               to: "icon_border";
+            }
+            rel2.to: "icon_border";
+         }
+      }
+      part { name: "elm.text.count";
+         type: TEXT;
+         scale: 1;
+         description { state: "default" 0.00;
+            color_class: "main";
+            text {
+               font: FN;
+               size: 16;
+               fit: 1 1;
+            }
+            rel1.to: "elm.swallow.fouth";
+            rel2.to: "elm.swallow.fouth";
+         }
+      }
+
+      part { name: "elm.swallow.end";
+         type: SWALLOW;
+         clip_to: "disclip";
+         description { state: "default" 0.00;
+            align: 1.00 0.00;
+            fixed: 1 1;
+            max: 16 16;
+            aspect_preference: HORIZONTAL;
+            rel1 {
+               offset: 0 1;
+               to: "icon_border";
+            }
+            rel2 {
+               offset: -2 -1;
+               to: "icon_border";
+            }
+         }
+      }
+      part { name: "elm.text";
+         type: TEXT;
+         scale: 1;
+         description { state: "default" 0.00;
+            align: 0.50 1.00;
+            color_class: "main";
+            text {
+               font: FN;
+               size: 11;
+               max: 0 1;
+            }
+            rel1 {
+               offset: 1 0;
+               to_x: "icon_border";
+            }
+            rel2 {
+               offset: -2 -4;
+               to_x: "icon_border";
+            }
+         }
+      }
+      part { name: "text_bottom";
+         type: SPACER;
+         description { state: "default" 0.00;
+            align: 1.00 1.00;
+            min: 2 2;
+            max: 2 2;
+         }
+      }
+      part { name: "event";
+         type: RECT;
+         description { state: "default" 0.00;
+            color: 0 0 0 0;
+         }
+      }
+      part { name: "disclip";
+         type: RECT;
+         mouse_events: 0;
+         repeat_events: 1;
+         description { state: "default" 0.00;
+            rel1.to: "highlight_content";
+            rel2.to: "highlight_content";
+         }
+         description { state: "disabled" 0.00;
+            inherit: "default" 0.00;
+            color: 255 255 255 0;
+         }
+      }
+   }
+   programs {
+      program { name: "go_active";
+         signal: "elm,state,selected";
+         source: "elm";
+         action: STATE_SET "selected" 0.00;
+         target: "highlight_content";
+         target: "highlight_text";
+      }
+      program { name: "go_passive";
+         signal: "elm,state,unselected";
+         source: "elm";
+         action: STATE_SET "default" 0.00;
+         target: "highlight_content";
+         target: "highlight_text";
+      }
+      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";
+      }
+   }
+}

-- 


Reply via email to