[toolbar] Adjust icon size along with text etc.

As discussed on the mailing list elm should scale the whole UI
based on the scale value. Make toolbar icons match this.

@fix
This commit is contained in:
Andy Williams 2016-01-30 13:54:24 +00:00
parent 7c07651d61
commit bd291fe72a
1 changed files with 2 additions and 2 deletions

View File

@ -1284,8 +1284,8 @@ _item_theme_hook(Evas_Object *obj,
}
if (it->icon)
{
evas_object_size_hint_min_set(it->icon, icon_size, icon_size);
evas_object_size_hint_max_set(it->icon, icon_size, icon_size);
evas_object_size_hint_min_set(it->icon, icon_size * scale, icon_size * scale);
evas_object_size_hint_max_set(it->icon, icon_size * scale, icon_size * scale);
elm_layout_content_set(view, "elm.swallow.icon", it->icon);
elm_layout_signal_emit
(view, "elm,state,icon,visible", "elm");