Bit of an API break for themes. The icon to tell you something is set is now enlightenment/check and not enlightenment/e. This gives a more logical display that something is set. Ive added the changed to blingbling too to maintain an icon in that spot. Other themes will need to create an icon called e/icon/enlightenment/check to get this working. It is used in the Adv theme selector, profiles, colours, fonts and language.

SVN revision: 36142
This commit is contained in:
toma 2008-09-21 07:43:46 +00:00 committed by toma
parent d99104e0be
commit 4a16cd4191
7 changed files with 27 additions and 6 deletions

View File

@ -107,6 +107,8 @@ images {
image: "e17_icon_screensaver.png" COMP;
image: "e17_icon_window_remembers.png" COMP;
image: "e17_icon_check.png" COMP;
}
group {
@ -2270,6 +2272,25 @@ group {
}
}
group {
name: "e/icons/enlightenment/check";
max: 64 64;
parts {
part {
name: "icon";
mouse_events: 0;
description {
state: "default" 0.0;
aspect: 1.0 1.0;
aspect_preference: BOTH;
max: 64 64;
image {
normal: "e17_icon_check.png";
}
}
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

@ -501,7 +501,7 @@ _load_color_classes(Evas_Object *obj, E_Config_Dialog_Data *cfdata)
if (cfc->enabled)
{
icon = edje_object_add(evas_object_evas_get(obj));
e_util_edje_icon_set(icon, "enlightenment/e");
e_util_edje_icon_set(icon, "enlightenment/check");
}
else
icon = NULL;
@ -542,7 +542,7 @@ _radio_cb_change(void *data, Evas_Object *obj, void *event_info)
if (c->enabled)
{
icon = edje_object_add(evas_object_evas_get(cfdata->gui.ilist));
e_util_edje_icon_set(icon, "enlightenment/e");
e_util_edje_icon_set(icon, "enlightenment/check");
}
else
icon = NULL;

View File

@ -736,7 +736,7 @@ _class_list_load(E_Config_Dialog_Data *cfdata)
if (tc->enabled)
{
ic = edje_object_add(evas);
e_util_edje_icon_set(ic, "enlightenment/e");
e_util_edje_icon_set(ic, "enlightenment/check");
}
else
ic = NULL;

View File

@ -1358,7 +1358,7 @@ _lang_list_load(void *data)
Evas_Object *ic;
ic = edje_object_add(cfdata->evas);
e_util_edje_icon_set(ic, "enlightenment/e");
e_util_edje_icon_set(ic, "enlightenment/check");
e_widget_ilist_append(cfdata->gui.lang_list, ic, trans, NULL, NULL, ln->lang_code);
}
else

View File

@ -131,7 +131,7 @@ _ilist_fill(E_Config_Dialog_Data *cfdata)
e_widget_ilist_append(cfdata->o_list, ob, l->data, _ilist_cb_selected, cfdata, l->data);
if (!strcmp (cur_profile, l->data))
{
e_util_edje_icon_set(ob, "enlightenment/e");
e_util_edje_icon_set(ob, "enlightenment/check");
e_widget_ilist_selected_set(cfdata->o_list, e_widget_ilist_count(cfdata->o_list));
}
}

View File

@ -827,7 +827,7 @@ _fill_categories_ilist(E_Config_Dialog_Data *cfdata)
if (theme->file)
{
ic = edje_object_add(evas);
e_util_edje_icon_set(ic, "enlightenment/e");
e_util_edje_icon_set(ic, "enlightenment/check");
}
e_widget_ilist_append(o, ic, theme->category + 11, NULL, NULL, NULL);
themes = themes->next;