rimmed pushed a commit to branch master.

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

commit 291c4e070bc40e04f9460fa875861c8f09da71e9
Author: Vyacheslav Reutskiy <v.reuts...@samsung.com>
Date:   Mon Feb 8 15:57:16 2016 +0200

    gengrid.edc: update the group_index style, make it more light
    
    Change-Id: I9d2c035a00e3b1a885b001a3ba6cfce22d526dda
---
 .../default/images/group_index_decoration.png      | Bin 132 -> 0 bytes
 data/themes/default/widgets/gengrid.edc            | 110 ++++++---------------
 src/bin/ui/sound_manager.c                         |   6 +-
 3 files changed, 31 insertions(+), 85 deletions(-)

diff --git a/data/themes/default/images/group_index_decoration.png 
b/data/themes/default/images/group_index_decoration.png
deleted file mode 100644
index 9e80b6f..0000000
Binary files a/data/themes/default/images/group_index_decoration.png and 
/dev/null differ
diff --git a/data/themes/default/widgets/gengrid.edc 
b/data/themes/default/widgets/gengrid.edc
index 1090f85..7ab93b4 100644
--- a/data/themes/default/widgets/gengrid.edc
+++ b/data/themes/default/widgets/gengrid.edc
@@ -388,115 +388,61 @@ group { name: "elm/gengrid/item/sound_editor/default";
 #undef SOUND_EDITOR_HIGHLIGHT_COLOR
 #undef BORDER_PADDING
 
-#define GROUP_INDEX_H 25
-#define GROUP_INDEX_COLOR 9 130 194 255
-#define GROUP_INDEX_BG_COLOR 48 48 48 180
-
-group { "elm/gengrid/item/group_index/default";
-   images.image: "group_index_decoration.png" COMP;
-   data.item: "texts" "elm.text";
+group { name: "elm/gengrid/item/group_index/default";
+   data {
+      item: "texts" "elm.text";
+   }
    parts {
-      part { name: "left_spacer";
-         type: SPACER;
-         description { state: "default" 0.0;
-            SET_SIZE(4, GROUP_INDEX_H);
-            align: 0.0 0.0;
-         }
-      }
-      part { name: "right_spacer";
-         type: SPACER;
-         description { state: "default" 0.0;
-            SET_SIZE(4, GROUP_INDEX_H);
-            align: 1.0 1.0;
-         }
-      }
-      part { name: "base_bar";
+      part { name: "line_left";
          type: RECT;
          description { state: "default" 0.0;
-            color: GROUP_INDEX_BG_COLOR;
-            min: 5 GROUP_INDEX_H;
-            rel1 {
-               relative: 1.0 0.0;
-               to: "left_spacer";
-            }
-            rel2 {
-               relative: 0.0 1.0;
-               to: "right_spacer";
-            }
-         }
-      }
-      part { name: "left_deco";
-         description { state: "default" 0.0;
-            color: GROUP_INDEX_COLOR;
-            image.normal: "group_index_decoration.png";
             align: 0.0 0.5;
-            SET_SIZE(GROUP_INDEX_H, 2);
-            rel1.to: "base_bar";
-            rel2.to: "base_bar";
-         }
-      }
-      part { name: "left_text_spacer";
-         type: SPACER;
-         description { state: "default" 0.0;
-            align: 0.0 0.0;
-            SET_SIZE(5, 2);
+            min: 25 2;
+            max: 25 2;
+            color_class: "select";
             rel1 {
-               relative: 1.0 0.0;
-               to: "left_deco";
+               offset: 3 0;
             }
          }
       }
       part { name: "elm.text";
-         type: TEXTBLOCK;
-         scale: 1;
+         type: TEXT;
          description { state: "default" 0.0;
-            color: GROUP_INDEX_COLOR;
             align: 0.0 0.5;
-            max: 70 20;
-            text {
-               align: 0.0 0.5;
-               style: "eflete_header_textblock_style";
-               max: 1 1;
-            }
+            color_class: "select";
             rel1 {
-               to_x: "left_text_spacer";
                relative: 1.0 0.0;
+               offset: 3 0;
+               to_x: "line_left";
             }
-         }
-      }
-      part { name: "right_text_spacer";
-         type: SPACER;
-         description { state: "default" 0.0;
-            align: 0.0 0.0;
-            SET_SIZE(5, 2);
-            rel1 {
-               relative: 1.0 0.0;
-               to: "elm.text";
+            text {
+               font: "PT:style=bold";
+               size: 16;
+               min: 1 1;
+               max: 1 1;
+               elipsis: -1;
             }
          }
       }
-
-      part { name: "right_deco";
+      part { name: "line_right";
+         type: RECT;
          description { state: "default" 0.0;
-            color: GROUP_INDEX_COLOR;
-            image.normal: "group_index_decoration.png";
-            align: 1.0 0.5;
-            min: GROUP_INDEX_H 2;
+            min: 0 2;
             max: -1 2;
+            color_class: "select";
             rel1 {
-               to_x: "right_text_spacer";
                relative: 1.0 0.0;
+               offset: 3 0;
+               to_x: "elm.text";
+            }
+            rel2 {
+               offset: -4 -1;
             }
-            rel2.to: "base_bar";
          }
       }
    }
 }
 
-#undef GROUP_INDEX_H
-#undef GROUP_INDEX_COLOR
-#undef GROUP_INDEX_BG_COLOR
-
 group { name: "elm/gengrid/base/default";
    inherit: "elm/genlist/base/default";
 }
diff --git a/src/bin/ui/sound_manager.c b/src/bin/ui/sound_manager.c
index b16627b..ba685b1 100644
--- a/src/bin/ui/sound_manager.c
+++ b/src/bin/ui/sound_manager.c
@@ -150,7 +150,7 @@ _gengrid_content_fill(Sound_Editor *edit)
    assert(ap.project != NULL);
 
    snd = (Sound_Data *)mem_calloc(1, sizeof(Sound_Data));
-   snd->name = eina_stringshare_add(_("<b>Sound Samples</b>"));
+   snd->name = eina_stringshare_add(_("Sound Samples"));
    elm_gengrid_item_append(edit->gengrid, ggic, snd, NULL, NULL);
    EINA_LIST_FOREACH(ap.project->sounds, l, sample)
      {
@@ -163,7 +163,7 @@ _gengrid_content_fill(Sound_Editor *edit)
      }
 
    snd = (Sound_Data *)mem_calloc(1, sizeof(Sound_Data));
-   snd->name = eina_stringshare_add(_("<b>Sound Tones</b>"));
+   snd->name = eina_stringshare_add(_("Sound Tones"));
    edit->tone_header = elm_gengrid_item_append(edit->gengrid, ggic, snd, NULL, 
NULL);
    EINA_LIST_FOREACH(ap.project->tones, l, tone)
      {
@@ -195,7 +195,7 @@ _create_gengrid(Evas_Object *parent, Sound_Editor *editor)
 
    editor->gengrid = elm_gengrid_add(parent);
    elm_gengrid_item_size_set(editor->gengrid, ITEM_WIDTH, ITEM_HEIGHT);
-   elm_gengrid_group_item_size_set(editor->gengrid, ITEM_HEIGHT/5, 
ITEM_HEIGHT/5);
+   elm_gengrid_group_item_size_set(editor->gengrid, ITEM_HEIGHT/3, 
ITEM_HEIGHT/3);
    elm_gengrid_align_set(editor->gengrid, 0.0, 0.0);
    evas_object_smart_callback_add(editor->gengrid, "unselected", _grid_sel, 
editor);
    elm_scroller_policy_set(editor->gengrid, ELM_SCROLLER_POLICY_OFF, 
ELM_SCROLLER_POLICY_OFF);

-- 


Reply via email to