summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2016-05-01 16:52:45 +0200
committerDave Andreoli <dave@gurumeditation.it>2016-05-05 19:11:50 +0200
commit3c8597d3fc918aaafd30db2ceafbc06ea2cb261d (patch)
treeeacb9570df89b8da99c8f487507b191195baf069 /src
parent537b138a2328008c16cf54401dc442bd6c8d11c5 (diff)
Initial structure for a proper FDO compliant icon theme.
The idea here is to provide a "real" fdo icon theme along the icons in the elm edje theme. To minimize file redundancy the icons are profided directly in a fdo structure and picked in icon_fdo.edc. Also I'm using all the icons in svg format so that we don't need to provide all the creazy sizes as per fdo spec. More icons will comes in the next commits
Diffstat (limited to 'src')
-rw-r--r--src/bin/elementary/test_icon.c28
1 files changed, 15 insertions, 13 deletions
diff --git a/src/bin/elementary/test_icon.c b/src/bin/elementary/test_icon.c
index 3109bdd8e9..b776ac01b7 100644
--- a/src/bin/elementary/test_icon.c
+++ b/src/bin/elementary/test_icon.c
@@ -158,21 +158,23 @@ _standard_list_populate(Evas_Object *list, int size)
158 EINA_LIST_FREE(l, group) 158 EINA_LIST_FREE(l, group)
159 { 159 {
160 // group = "/elm/icon/standard-name/style/maybe_another_style??" 160 // group = "/elm/icon/standard-name/style/maybe_another_style??"
161 snprintf(name, sizeof(name), "%s", group + 9); 161 snprintf(name, sizeof(name), "%s", group + 9);
162 if ((p = strrchr(name, '/'))) 162 if ((p = strrchr(name, '/')))
163 *p = '\0'; 163 *p = '\0';
164 // printf("Found group:%s Name:%s\n", group, name); 164 // printf("Found group:%s Name:%s\n", group, name);
165 165
166 // quick hack to show only standard-compliant icons 166 // quick hack to show only standard-compliant icons
167 // apart from the "folder" one, all the others have "-" in the name 167 // apart from the "folder" one, all the others have "-" in the name
168 if ((strrchr(name, '-') != NULL) || !strcmp(name, "folder")) 168 // ...also do not show deprecated arrow-* icons
169 { 169 if (((strrchr(name, '-') != NULL) || !strcmp(name, "folder"))
170 ic = elm_icon_add(list); 170 && (strncmp(name, "arrow-", 6)))
171 elm_icon_standard_set(ic, name); 171 {
172 if (size) 172 ic = elm_icon_add(list);
173 evas_object_size_hint_min_set(ic, size, size); 173 elm_icon_standard_set(ic, name);
174 elm_list_item_append(list, name, ic, NULL, NULL, NULL); 174 if (size)
175 } 175 evas_object_size_hint_min_set(ic, size, size);
176 elm_list_item_append(list, name, ic, NULL, NULL, NULL);
177 }
176 178
177 eina_stringshare_del(group); 179 eina_stringshare_del(group);
178 } 180 }